/* -------------------------- */
/* GLOBAL VAR				  */
/* -------------------------- */
var nocache = 0;
var pageGlobal='none';
var idTask_global;
var idUser_global;

/* ---------------------------- */
/* XMLHTTPRequest Enable		*/
/* ---------------------------- */
function createObject() {
var request_type;
var browser = navigator.appName;
if(browser == "Microsoft Internet Explorer"){
request_type = new ActiveXObject("Microsoft.XMLHTTP");
}else{
request_type = new XMLHttpRequest();
}
return request_type;
}

var http = createObject();
function bulbReset() {
	nocache = Math.random();
	http.open('get', '/listBox.ajax.php?step=1&nocache = '+nocache);
	http.onreadystatechange = bulbsChange;
	http.send(null);
}
function bulbsChange() {
	if(http.readyState == 4){
		var response = http.responseText;
		document.getElementById('make_container').innerHTML = response;
	}
}

function makeChange() {
	descTask1=document.getElementById('make_ajax').value;
	nocache = Math.random();
	http.open('get', '/listBox.ajax.php?step=2&make='+descTask1+'&nocache = '+nocache);
	http.onreadystatechange = makeHTML;
	http.send(null);
}
function makeHTML() {
	if(http.readyState == 4){
		var response = http.responseText;
		document.getElementById('type_container').innerHTML = response;
	}
}