function ajaxFunction(loc,act,opt)
{
var xmlHttp;
try
{
xmlHttp=new XMLHttpRequest();
}
catch (e)
{
try
{
xmlHttp=new ActiveXObject("Msxml2.XMLHTTP");
}
catch (e)
{
try
  {
  xmlHttp=new ActiveXObject("Microsoft.XMLHTTP");
  }
catch (e)
  {
  alert("Your browser does not support AJAX!");
  return false;
  }
}
}
xmlHttp.onreadystatechange=function()
{
if(xmlHttp.readyState==4)
  {
  //document.myForm.time.value=xmlHttp.responseText;
  if(act=="js"){
  	eval(xmlHttp.responseText);
  }
  if(act=="jsa"){
  	eval(alert(xmlHttp.responseText));
  }
  if(act=="div"){
  	x1=document.getElementById(opt);
  	x1.innerHTML=xmlHttp.responseText;
  }
  //alert(xmlHttp.responseText);
  //return xmlHttp.responseText;
  }
}
xmlHttp.open("GET",loc,true);
xmlHttp.send(null);
}

function inn(opt,txt){
x1=document.getElementById(opt);
x1.innerHTML=txt;
}

function shows(mydiv,state,opt){
	if (document.all) {
		if(state=="toggle"){
			if(eval("document.all." + mydiv + ".style.visibility")=="hidden"){
				state = "visible";
				opt = "relative";
			}
			if(eval("document.all." + mydiv + ".style.visibility")=="visible"){
				state = "hidden";
				opt = "absolute";
			}
		}
		eval( "document.all." + mydiv + ".style.visibility = state");
		eval( "document.all." + mydiv + ".style.position = opt");
	}
	if (document.layers) {
		document.layers[mydiv].visibility = state;
		document.layers[mydiv].position = opt;
	}
	if (document.getElementById && !document.all) {
		maxwell_smart = document.getElementById(mydiv);
		if(state=="toggle"){
			if(maxwell_smart.style.visibility=="hidden"){
				state = "visible";
				opt = "relative";
			}
			if(maxwell_smart.style.visibility=="visible"){
				state = "hidden";
				opt = "absolute";
			}
		}
		maxwell_smart.style.position = opt;
		maxwell_smart.style.visibility = state;
	}
}