var thePnt;
ifVis=new Array("F","F","F");
pointRt=new Image();
pointRt.src="pntRight.jpg";
pointRt1=new Image();
pointRt1.src="pntRight.jpg";
pointRt2=new Image();
pointRt2.src="pntRight.jpg";
pointRt3=new Image();
pointRt3.src="pntRight.jpg";
pointDn=new Image();
pointDn.src="pntDown.jpg";

function lBlur(bid){
this.bid=bid;
document.getElementById(bid).blur();
}

function showMenu(wh)
{

tsmn1=document.getElementById("mn1");
tsmn1.innerHTML="";
tsmn1.style.border="0px";
document.getElementById("pointRt1").src="pntRight.jpg";
tsmn2=document.getElementById("mn2");
 tsmn2.innerHTML="";
tsmn2.style.border="0px";
document.getElementById("pointRt2").src="pntRight.jpg";
tsmn3=document.getElementById("mn3");
 tsmn3.innerHTML="";
tsmn3.style.border="0px";
document.getElementById("pointRt3").src="pntRight.jpg";
if(ifVis[wh]=="T"){
ifVis[wh]="F"
return;
}else{
ifVis[wh]="T";
}
switch(wh){
case 1:
tsmn=tsmn1;
document.getElementById("pointRt1").src="pntDown.jpg";

break;
case 2:
tsmn=tsmn2;
document.getElementById("pointRt2").src="pntDown.jpg";

break;
case 3:
tsmn=tsmn3;
document.getElementById("pointRt3").src="pntDown.jpg";

break;
}

xmlHttp=GetXmlHttpObject();
if (xmlHttp==null)
 {
 alert ("Browser does not support HTTP Request");
 return;
 }
var url="mnuphp.php";
url=url+"?mnNum="+wh;
url=url+"&sid=" + Math.random();
xmlHttp.onreadystatechange=stateChanged;
xmlHttp.open("GET",url,true);
xmlHttp.send(null);
}

function stateChanged() 
{ 
if(xmlHttp.readyState==4){
tsmn.innerHTML=xmlHttp.responseText;
}
}
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;
}
