
// JavaScript Document

function selectVisa(id)
{ 


xmlHttp=GetXmlHttpObject0();
if (xmlHttp==null)
 {
 alert ("Browser does not support HTTP Request");
 return;
 }
var url0="include/selectVisa.php";
url0=url0+"?id="+id;
url0=url0+"&sid="+Math.random();
//alert(url0);
visa(url0);ajaxwin.moveTo('200','middle', 'middle');
//xmlHttp.open("GET",url0,true);
//xmlHttp.send(null);
}

function stateChangedR2() 
{ 
if (xmlHttp.readyState==4 || xmlHttp.readyState=="complete")
 { 
 document.getElementById("txtReport").innerHTML=xmlHttp.responseText;
 } 
}






function showReport(id,value)
{ 
	if(document.getElementById('txtReport').style.display=='none')
	{
		document.getElementById('txtReport').style.display='block';
	}
	
	if(document.getElementById('txtResult').style.display=='none')
	{
		document.getElementById('txtResult').style.display='block';
	}

xmlHttp=GetXmlHttpObject0();
if (xmlHttp==null)
 {
 alert ("Browser does not support HTTP Request");
 return;
 }
var url1="include/showReport.php";
url1=url1+"?id="+id+"&value="+value;
url1=url1+"&sid="+Math.random();
report(url1);ajaxwin.moveTo('200','middle', 'middle');

/*xmlHttp.onreadystatechange=stateChanged2;

xmlHttp.open("GET",url1,true);
xmlHttp.send(null); */
}

function stateChanged2() 
{ 
if (xmlHttp.readyState==4 || xmlHttp.readyState=="complete")
 { 
 document.getElementById("txtResult").innerHTML=xmlHttp.responseText;
 } 
}



function GetXmlHttpObject0()
{
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;
}

