// JScript source code

       
 //Function for ajax loading                        
function getVList(pn,preV)
 {  

  var xmlhttpV;
  
var inttxt="<table width='100%' height='100%'><tr ><td height='100px' width='200px'  style='text-align:center' valign='middle' >";
inttxt+="<img align='left' src='../../../../images/india/animated_preloader.gif' />";
inttxt+="</td></tr></table>";
document.getElementById("viruslistcontent").innerHTML=inttxt;
if (window.XMLHttpRequest)
  {
  // code for IE7+, Firefox, Chrome, Opera, Safari
  xmlhttpV=new XMLHttpRequest();
  }
else if (window.ActiveXObject)
  {
  // code for IE6, IE5
  xmlhttpV=new ActiveXObject("Microsoft.XMLHTTP");
  }
else
  {
  //window.location="unsuscribedetails.asp?emailid="+document.getElementById("txtEmail").value+"";
  //alert("Your browser does not support XMLHTTP!");
  }
  xmlhttpV.onreadystatechange=function()
  {
  if(xmlhttpV.readyState==4)
  {
  document.getElementById("viruslistcontent").innerHTML=xmlhttpV.responseText;
  document.getElementById("viruslistcontent").style.height="100%"
  }
  
 
  }
  
xmlhttpV.open("GET","viruslist.asp?page="+pn+"&strV="+preV+"",true);  
  
xmlhttpV.send(null);


 }
 
 
 
 function getVirusInfo(npage)
 {  
 strS=document.getElementById("txtsearch").value;
 if (strS=="")
 {
 alert("Please enter the name of virus you want to search.");
 return;
 
 }

  var xmlhttpV1;
  
var inttxt="<table width='100%' height='100%'><tr ><td height='100px' width='200px'  style='text-align:center' valign='middle' >";
inttxt+="<img align='left' src='../../../../images/india/animated_preloader.gif' />";
inttxt+="</td></tr></table>";
document.getElementById("vlistcontent").innerHTML=inttxt;
if (window.XMLHttpRequest)
  {
  // code for IE7+, Firefox, Chrome, Opera, Safari
  xmlhttpV1=new XMLHttpRequest();
  }
else if (window.ActiveXObject)
  {
  // code for IE6, IE5
  xmlhttpV1=new ActiveXObject("Microsoft.XMLHTTP");
  }
else
  {
  //window.location="unsuscribedetails.asp?emailid="+document.getElementById("txtEmail").value+"";
  //alert("Your browser does not support XMLHTTP!");
  }
  xmlhttpV1.onreadystatechange=function()
  {
  if(xmlhttpV1.readyState==4)
  {
  document.getElementById("vlistcontent").innerHTML=xmlhttpV1.responseText;
  document.getElementById("vlistcontent").style.height="100%"
  }
  
 
  }
  
xmlhttpV1.open("GET","virussearch.asp?page="+npage+"&strS="+strS+"",true);  
  
xmlhttpV1.send(null);


 }
