var xmlHttp;
var AdminResponse = "";
function showPkg(str)
 {
 xmlHttp=GetXmlHttpObject()
 if (xmlHttp==null)
  {
  alert ("Browser does not support HTTP Request");
  //return
  } 
 document.getElementById("pkg").value = str;
 var url="responsexml_pkg.php";
 url=url+"?package_type="+str;
 xmlHttp.onreadystatechange=stateChanged;
 xmlHttp.open("GET",url,true);
 xmlHttp.send(null);
 }
 function stateChanged() 
{ 
	if (xmlHttp.readyState==4 || xmlHttp.readyState=="complete")
	{
		document.getElementById('package').style.position = 'absolute';
 		document.getElementById("package").innerHTML=xmlHttp.responseText;
 	}
} 
function showPkgMO(str)
 {
 xmlHttp=GetXmlHttpObject()
 if (xmlHttp==null)
  {
  alert ("Browser does not support HTTP Request");
  //return
  } 
  document.getElementById('package').innerHTML = out;
 //document.getElementById("pkg").value = str;
 var url="responsexml_pkg.php";
 url=url+"?package_type="+str;
 xmlHttp.onreadystatechange=stateChanged4;
 xmlHttp.open("GET",url,true);
 xmlHttp.send(null);
 }
function stateChanged4() 
{ 
	if (xmlHttp.readyState==4 || xmlHttp.readyState=="complete")
	{
		document.getElementById('package').style.position = 'fixed';
 		document.getElementById("package").innerHTML=xmlHttp.responseText;
 	}
} 
function showRoom(val)
 { 
 xmlHttp=GetXmlHttpObject()
 if (xmlHttp==null)
  {
  alert ("Browser does not support HTTP Request");
  //return
  }
 var url="responsexml_room.php";
 url=url+"?room_title="+val;
 xmlHttp.onreadystatechange=stateChanged2;
 xmlHttp.open("GET",url,true);
 xmlHttp.send(null);
 }
 function stateChanged2() 
{ 
	if (xmlHttp.readyState==4 || xmlHttp.readyState=="complete")
	{
		document.getElementById('room').style.position = 'absolute';
		document.getElementById("room").innerHTML = xmlHttp.responseText;
 	}
} 
 function showRoomMO(val)
 { 
 xmlHttp=GetXmlHttpObject()
 if (xmlHttp==null)
  {
  alert ("Browser does not support HTTP Request");
  //return
  }
  document.getElementById('room').innerHTML = out;
 var url="responsexml_room.php";
 url=url+"?room_title="+val;
 xmlHttp.onreadystatechange=stateChanged5;
 xmlHttp.open("GET",url,true);
 xmlHttp.send(null);
 }
function stateChanged5() 
{ 
	if (xmlHttp.readyState==4 || xmlHttp.readyState=="complete")
	{
		document.getElementById('room').style.position = 'fixed';
		document.getElementById("room").innerHTML = xmlHttp.responseText;
 	}
} 
function showToDate()
{
    xmlHttp=GetXmlHttpObject()
    if (xmlHttp==null)
    {
        alert ("Browser does not support HTTP Request");
        return;
    }
	var dayf = document.getElementById("dayf").value;
	var monf = document.getElementById("monf").value;
	var yearf = document.getElementById("yearf").value;
	var pkg = document.getElementById("pkg").value;
	var url="responsexml_date.php";
 	url=url+"?dayf="+dayf+"&monf="+monf+"&yearf="+yearf+"&pkg="+pkg;
    xmlHttp.onreadystatechange=stateChanged3;
    xmlHttp.open("GET",url,true) ;
    xmlHttp.send(null);
}
function stateChanged3()
{
    if (xmlHttp.readyState==4 || xmlHttp.readyState=="complete")
    {
            document.getElementById("td").innerHTML= xmlHttp.responseText;
    }
}

var out = '';
function hidePkg()
{
	document.getElementById('package').innerHTML = out;
}

function hideRoom()
{
	document.getElementById('room').innerHTML = out;
}/**/
function viewVCC()
{
	popWin = window.open('images/cvv.jpg','cvv','width=292px,height=370px,left=200px,top=200px,resizable=yes');	
}
function GetXmlHttpObject()
 { 
 var objXMLHttp=null;
 if(window.XMLHttpRequest)
  {
  objXMLHttp=new XMLHttpRequest();
  }
 else if (window.ActiveXObject)
  {
  objXMLHttp=new ActiveXObject("Microsoft.XMLHTTP");
  }
  
 return objXMLHttp;
 }// JavaScript Document
