function delDef(oF)
{
	if(oF.value == oF.defaultValue )
		oF.value = "";
}

function setDef(oF)
{
	if(oF.value == "" )
		oF.value = oF.defaultValue;
}

function checkAll(oF)
{
	var lcField = oF.value;

	var oC = document.getElementsByTagName("input");
	for(var i=0; i<oC.length; i++)
	{
		if(oC[i].id.substr(0,lcField.length)==lcField)
			oC[i].checked = oF.checked;
	}
}

function lightOn(o){
  if (document.getElementById || (document.all)) {
    o.style.backgroundColor = "#DDE7EC";
  }
}

function lightOff(o){
  if(document.getElementById || (document.all)){
    o.style.backgroundColor = "";
  }
}

function openHrefPop(oHref, w, h)
{
	oWin = window.open(oHref.href, "infPop","width="+w+",height=" + h + ",scrollbars=yes");
	oWin.focus();
}

function GetXmlHttpObject()
{
	var xmlHttp=null;
	try
	{
		// Firefox, Opera 8.0+, Safari
		xmlHttp=new XMLHttpRequest();
	}
	catch (e)
	{
		//Internet Explorer
		try
		{
			xmlHttp=new ActiveXObject("Msxml2.XMLHTTP");
		}
		catch (e)
		{
			xmlHttp=new ActiveXObject("Microsoft.XMLHTTP");
		}
	}
	return xmlHttp;
} 

function getHttpResponse(url, async, onreadystate)
{
	xmlHttpT=GetXmlHttpObject()
	if (xmlHttpT==null)
	{
		//alert ("Browser does not support HTTP Request")
		return
	}
	url=url+'&rnd='+Math.random(); //prevent browse cashing 
	if(onreadystate)
	{
		xmlHttpT.onreadystatechange = onreadystate
	}
	if(! async)
		async = false;
	xmlHttpT.open("GET",url,async);
	xmlHttpT.send(null);
} 
