function getHTTPObject2 (){
	var userAgent = navigator.userAgent;
	if (userAgent.indexOf("MSIE") > -1){
    	return new ActiveXObject("Microsoft.XMLHTTP");
    }else{
    	return new XMLHttpRequest();
    }

    return null;
}

function ajaxRequest(url,divId,parentId){
	var x = getHTTPObject2();
	if(divId){
	  var div = document.getElementById(divId);
	  var parent=document.getElementById(parentId);
	}
	x.open ("GET", url, true);
	x.onreadystatechange = function (){
		if (x.readyState == 4){
			if(div){
				div.innerHTML = x.responseText;
				if(parent.style.display!='block'){
					parent.style.display='block';
				}
			}
		}
	}
	x.send(null);
}

function ajaxSend(url){
	var x = getHTTPObject2();
	x.open ("GET", url, true);
	x.onreadystatechange = function (){
		if (x.readyState == 4){
		}
	}
	x.send(null);
}

function hide(obj){
	html_obj=document.getElementById(obj);
	html_obj.style.display='none';
}
function show(obj){
	html_obj=document.getElementById(obj);
	html_obj.style.display='block';
}

function ask(question,url){
	q=confirm(question);	
	if(q) document.location.href=url;
}

function lGlow(obj){ obj.style.backgroundColor="#e8f1f7"; }
function luGlow(obj){ obj.style.backgroundColor="#ffffff"; }
