function printLog(code,ticketType)
{
return sendRequest('GET','http://www.railtourismindia.com/cgi-bin/dev1.dll/irctc/common/printLog.jsp?code='+code+'&ticketType='+ticketType);
}



function createRequestObject()
{
var req;
if(window.XMLHttpRequest){

req = new XMLHttpRequest();
}
else if(window.ActiveXObject)
{
req = new ActiveXObject('Microsoft.XMLHTTP');
}
else
{
alert('Your browser is not IE 5 or higher, or Firefox or Safari or Opera');
}

return req;
}


var http = createRequestObject();

function sendRequest(method, url){
	
	
if(method == 'get' || method == 'GET'){    
    
    //alert(" url:::"+ url);
    http.open(method,url);

http.onreadystatechange = handleResponse;

http.send(null);
}
}

function handleResponse(){//alert("4");
if(http.readyState == 4 && http.status == 200){//alert("5");
var response = http.responseText;
   

}
}

