var xmlHttp
if(window.ActiveXObject)
{
xmlHttp=new ActiveXObject("Microsoft.XMLHTTP");
}
else if(window.XMLHtpRequest)
{
xmlHttp=new XMLHttpRequest();
}
xmlHttp.open("GET","DelPatan.aspx?PatanCode="+PatanID,true);
xmlHttp.onreadystatechange=function()
{
if(xmlHttp.readyState==4 && xmlHttp.status==200)
{
if (trim(xmlHttp.responseText)=="0")
{
window.location.href="SF_0011.aspx";
}
else
{
if (trim(xmlHttp.responseText).length < 400)
{
alert(xmlHttp.responseText);
}
window.location.href="SF_0011.aspx";
}
}
}
xmlHttp.send(null);