// JavaScript Document
var http=null; 
function gethttp(){try{http=new XMLHttpRequest();}catch(err1){try{http=new ActiveXObject("Msxml2.XMLHTTP");}catch(err2){try{http=new ActiveXObject("MICROSOFT.XMLHTTP");}catch(err3){http=null;alert('your browser doesnot support ajax');}}}}
var type1,type2,g1,g2,c1,c2;
function call(type1,type2){ gethttp();
http.onreadystatechange=function()
{  if(http.readyState!=4) document.getElementById(type1).innerHTML='Loading...';  
   if(http.readyState==4) document.getElementById(type1).innerHTML=http.responseText; } 
http.open('GET',type2,true);
http.send(null);}
function gold(g1,g2)
{
var https=null;
try{https=new XMLHttpRequest();}catch(err1){try{https=new ActiveXObject("Msxml2.XMLHTTP");}catch(err2){try{https=new ActiveXObject("MICROSOFT.XMLHTTP");}catch(err3){https=null;alert('your browser doesnot support ajax');}}}
https.onreadystatechange=function()
{  if(https.readyState!=4) document.getElementById(g1).innerHTML='Loading...';  
   if(https.readyState==4) document.getElementById(g1).innerHTML=https.responseText; } 
https.open('GET',g2,true);
https.send(null);
}
function curr(c1,c2)
{
var httpc=null;
try{httpc=new XMLHttpRequest();}catch(err1){try{httpc=new ActiveXObject("Msxml2.XMLHTTP");}catch(err2){try{httpc=new ActiveXObject("MICROSOFT.XMLHTTP");}catch(err3){httpc=null;alert('your browser doesnot support ajax');}}}
httpc.onreadystatechange=function()
{  if(httpc.readyState!=4) document.getElementById(c1).innerHTML='Loading...';  
   if(httpc.readyState==4) document.getElementById(c1).innerHTML=httpc.responseText; } 
httpc.open('GET',c2,true);
httpc.send(null);
}
