// JavaScript Document

var doc = null;

function ajax() {
	// Make a new XMLHttp object
	if (typeof window.ActiveXObject != 'undefined' ) doc = new ActiveXObject("Microsoft.XMLHTTP");
	else doc = new XMLHttpRequest();
}


function SelectBuzzer(buzzer_id){

/*
   	ajax();
		// Load the result from the response page
		// ** As far a I know firefox will only load a document on the SAME domain!!	
	    if (doc){
		   doc.open("GET", "./model_function.php?region=view_buzzer&buzzer_id=" + buzzer_id, false);
	       doc.send(null);
	    	// Write the response to the div
			document.getElementById('buzzer_div').innerHTML = doc.responseText;
 		 }
*/
url="model.php?show=show_audio&buzzer_id=" + buzzer_id;

window.open(url,'','fullscreen=1,location=0,menubar=0,resizable=0,scrollbars=1,status=0,titlebar=1,toolbar=0,width=300,height=50"');

}

function SelectBeep(beep_id){

/*
   	ajax();
		// Load the result from the response page
		// ** As far a I know firefox will only load a document on the SAME domain!!	
	    if (doc){
		   doc.open("GET", "./model_function.php?region=view_beep&beep_id=" + beep_id, false);
	       doc.send(null);
	    	// Write the response to the div
			document.getElementById('beep_div').innerHTML = doc.responseText;
 		 }
*/
url="model.php?show=show_audio&beep_id=" + beep_id;

window.open(url,'','fullscreen=1,location=0,menubar=0,resizable=0,scrollbars=1,status=0,titlebar=1,toolbar=0,width=300,height=50"');

}

function SelectTheme(theme_id){

   	ajax();
		// Load the result from the response page
		// ** As far a I know firefox will only load a document on the SAME domain!!	
	    if (doc){
		   doc.open("GET", "./model_function.php?region=view_theme&theme_id=" + theme_id, false);
	       doc.send(null);
	    	// Write the response to the div
			document.getElementById('theme_div').innerHTML = doc.responseText;
 		 }

}
