function defaultfun(val,val1)
{
	
if (window.XMLHttpRequest)
  {// code for IE7+, Firefox, Chrome, Opera, Safari
  xmlhttp=new XMLHttpRequest();
  }
else
  {// code for IE6, IE5
  xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");
  }
xmlhttp.onreadystatechange=function()
  {
  
  if (xmlhttp.readyState==4 && xmlhttp.status==200)
    {
	   stringall=xmlhttp.responseText ;
	 // alert(stringall);	   
	   
	   	strresponse=stringall.split('-');
	    price=strresponse[12];
	    ptype=strresponse[1];
		var	discprc=strresponse[14];
		//alert(discprc);
		
	  //deduction of the discount if any

		var rscontains = new String(stringall);
		strrscontains= rscontains.indexOf("Rs.");
		strrscontainsUS= rscontains.indexOf("US");

if (strrscontains !="-1")

{						
		prc=price.split('Rs.');
		prc1=prc[1];		
		dprc=discprc.split('Rs.');
		prc2=dprc[1];
							
		oriprice=(parseFloat(prc1));			
		var stroriprice = new String(oriprice);
		stroriprice1= stroriprice.indexOf(".");
		
		if (stroriprice1 !="-1")
		{
			oriprice = "Rs." + oriprice ;
		}
		else
		{
		oriprice = "Rs." + oriprice +".00";
		}
}

else if(strrscontainsUS !="-1")
{
		prc=price.split('$');
		prc1=prc[1];		
		dprc=discprc.split('$');
		prc2=dprc[1];
			
		oriprice=(parseFloat(prc1) - parseFloat(prc2));			
		var stroriprice = new String(oriprice);
		stroriprice1= stroriprice.indexOf(".");
		
		if (stroriprice1 !="-1")
		{
			oriprice = "US $" + oriprice ;
		}
		else
		{
		oriprice = "US $" + oriprice +".00";
		}			
}
		
	   strresponse=stringall.split("-");
	   priceAV=strresponse[0];
	   ptypeAV=strresponse[1];
	   discAV=strresponse[2];
	  
	  //deduction of the discount if any

if (strrscontains !="-1")
{  
	   prcAV=priceAV.split('Rs.');
	   prcAV1=prcAV[1];		
	   dprcAV=discAV.split('Rs.');
	   prcAV2=dprcAV[1];
								
	   priceAV=(parseFloat(prcAV1) - parseFloat(prcAV2));	
	     
	   var priceAV1 = new String(priceAV);
		strpriceAV1= priceAV1.indexOf(".");
		
		if (strpriceAV1 !="-1")
		{
			priceAV = "Rs." + priceAV ;
		}
		else
		{
		priceAV = "Rs." + priceAV +".00";
		}
}
else if(strrscontainsUS !="-1")
{
	   prcAV=priceAV.split('$');
	   prcAV1=prcAV[1];		
	   dprcAV=discAV.split('$');
	   prcAV2=dprcAV[1];
								
	   priceAV=(parseFloat(prcAV1) - parseFloat(prcAV2));	
     
	   var priceAV1 = new String(priceAV);
		strpriceAV1= priceAV1.indexOf(".");
	
		if (strpriceAV1 !="-1")
		{
			priceAV = "US $" + priceAV ;
		}
		else
		{
		priceAV = "US $" + priceAV +".00";
		}						
}		
	   
	   priceIS=strresponse[3];
	   ptypeIS=strresponse[4];
   	   discIS=strresponse[5];

	  //deduction of the discount if any

if (strrscontains !="-1")
{ 
	   prcIS=priceIS.split('Rs.');
	   prcIS1=prcIS[1];		
	   dprcIS=discIS.split('Rs.');
	   prcIS2=dprcIS[1];
								
	   priceIS=(parseFloat(prcIS1) - parseFloat(prcIS2));	
	     
	   var priceIS1 = new String(priceIS);
		strpriceIS1= priceIS1.indexOf(".");
		
		if (strpriceIS1 !="-1")
		{
			priceIS = "Rs." + priceIS ;
		}
		else
		{
		priceIS = "Rs." + priceIS +".00";
		}
		
}
else if(strrscontainsUS !="-1")
{
	  prcIS=priceIS.split('$');
	   prcIS1=prcIS[1];		
	   dprcIS=discIS.split('$');
	   prcIS2=dprcIS[1];
								
	   priceIS=(parseFloat(prcIS1) - parseFloat(prcIS2));	
	     
	   var priceIS1 = new String(priceIS);
		strpriceIS1= priceIS1.indexOf(".");
		
		if (strpriceIS1 !="-1")
		{
			priceIS = "US $" + priceIS ;
		}
		else
		{
		priceIS = "US $" + priceIS +".00";
		}					
}		

   	   priceTS=strresponse[6];
	   ptypeTS=strresponse[7];
	   discTS=strresponse[8];

	  //deduction of the discount if any

if (strrscontains !="-1")
{ 
	   prcTS=priceTS.split('Rs.');
	   prcTS1=prcTS[1];		
	   dprcTS=discTS.split('Rs.');
	   prcTS2=dprcTS[1];
								
	   priceTS=(parseFloat(prcTS1) - parseFloat(prcTS2));	
	     
	   var priceTS1 = new String(priceTS);
		strpriceTS1= priceTS1.indexOf(".");
		
		if (strpriceTS1 !="-1")
		{
			priceTS = "Rs." + priceTS ;
		}
		else
		{
		priceTS = "Rs." + priceTS +".00";
		}
}

else if(strrscontainsUS !="-1")
{
	   prcTS=priceTS.split('$');
	   prcTS1=prcTS[1];		
	   dprcTS=discTS.split('$');
	   prcTS2=dprcTS[1];
								
	   priceTS=(parseFloat(prcTS1) - parseFloat(prcTS2));	
	     
	   var priceTS1 = new String(priceTS);
		strpriceTS1= priceTS1.indexOf(".");
		
		if (strpriceTS1 !="-1")
		{
			priceTS = "US $" + priceTS ;
		}
		else
		{
		priceTS = "US $" + priceTS +".00";
		}
}		

   	   priceSE=strresponse[9];
	   ptypeSE=strresponse[10];
   	   discSE=strresponse[11];

	  //deduction of the discount if any
  
	   
if (strrscontains !="-1")
{ 	
	   prcSE=priceSE.split('Rs.');
	   prcSE1=prcSE[1];		
	   dprcSE=discSE.split('Rs.');
	   prcSE2=dprcSE[1];
	   							
	   priceSE=(parseFloat(prcSE1) - parseFloat(prcSE2));	
	     
	   var priceSE1 = new String(priceSE);
		strpriceSE1= priceSE1.indexOf(".");
		
		if (strpriceSE1 !="-1")
		{
			priceSE = "Rs." + priceSE ;
		}
		else
		{
		priceSE = "Rs." + priceSE +".00";
		}

}

else if(strrscontainsUS !="-1")
{
	   prcSE=priceSE.split('$');
	   prcSE1=prcSE[1];		
	   dprcSE=discSE.split('$');
	   prcSE2=dprcSE[1];
	   
	   priceSE=(parseFloat(prcSE1) - parseFloat(prcSE2));	
	   var priceSE1 = new String(priceSE);
		strpriceSE1= priceSE1.indexOf(".");
		
		if (strpriceSE1 !="-1")
		{
			priceSE = "US $" + priceSE ;
		}
		else
		{
		priceSE = "US $" + priceSE +".00";
		}
}		

   	   priceandr=strresponse[18];
	   ptypeandr=strresponse[19];
   	   discandr=strresponse[20];

	  //deduction of the discount if any
  
	   
if (strrscontains !="-1")
{ 	
	   prcandr=priceandr.split('Rs.');
	   prcandr1=prcandr[1];		
	   dprcandr=discandr.split('Rs.');
	   prcandr2=dprcandr[1];

	   							
	   priceandr=(parseFloat(prcandr1) - parseFloat(prcandr2));	

     
	   var priceandr1 = new String(priceandr);
		strpriceandr1= priceandr1.indexOf(".");


		
		if (strpriceandr1 !="-1")
		{
			priceandr = "Rs." + priceandr ;
		}
		else
		{
		priceandr = "Rs." + priceandr +".00";
		}
		
	var discpriceandr1 = new String(prcandr2);
		strdiscpriceandr1= discpriceandr1.indexOf(".");

		if (strdiscpriceandr1 !="-1")
		{
			prcandr2 = "Rs." + prcandr2 ;
		}
		else
		{
		prcandr2 = "Rs." + prcandr2 +".00";
		}

	var oripriceandr1 = new String(prcandr1);
		stroripriceandr1= oripriceandr1.indexOf(".");

		if (stroripriceandr1 !="-1")
		{
			prcandr1 = "Rs." + prcandr1 ;
		}
		else
		{
		prcandr1 = "Rs." + prcandr1 +".00";
		}
}


else if(strrscontainsUS !="-1")
{
	   prcandr=priceandr.split('$');
	   prcandr1=prcandr[1];		
	   dprcandr=discandr.split('$');
	   prcandr2=dprcandr[1];
	   
	   priceandr=(parseFloat(prcandr1) - parseFloat(prcandr2));	
	   var priceandr1 = new String(priceandr);
		strpriceandr1= priceandr1.indexOf(".");
		
		if (strpriceandr1 !="-1")
		{
			priceandr = "US $" + priceandr ;
		}
		else
		{
		priceandr = "US $" + priceandr +".00";
		}
		
		
		var discpriceandr1 = new String(prcandr2);
		strdiscpriceandr1= discpriceandr1.indexOf(".");

		if (strdiscpriceandr1 !="-1")
		{
			prcandr2 = "US $" + prcandr2 ;
		}
		else
		{
		prcandr2 = "US $" + prcandr2 +".00";
		}

	var oripriceandr1 = new String(prcandr1);
		stroripriceandr1= oripriceandr1.indexOf(".");

		if (stroripriceandr1 !="-1")
		{
			prcandr1 = "US $" + prcandr1 ;
		}
		else
		{
		prcandr1 = "US $" + prcandr1 +".00";
		}
		
}		



   	   pricePCT=strresponse[12];
	   ptypePCT=strresponse[13];
	   discPCT=strresponse[14];


if (strrscontains !="-1")
{ 	
	   prcPCT=pricePCT.split('Rs.');
	   prcPCT1=prcPCT[1];		
	   dprcPCT=discPCT.split('Rs.');
	   prcPCT2=dprcPCT[1];
	   							
	   pricePCT=(parseFloat(prcPCT1) - parseFloat(prcPCT2));	
	     
	   var pricePCT1 = new String(pricePCT);
		strpricePCT1= pricePCT1.indexOf(".");
		
		if (strpricePCT1 !="-1")
		{
			pricePCT = "Rs." + pricePCT ;
		}
		else
		{
		pricePCT = "Rs." + pricePCT +".00";
		}

}

else if(strrscontainsUS !="-1")
{
	   prcPCT=pricePCT.split('$');
	   prcPCT1=prcPCT[1];		
	   dprcPCT=discPCT.split('$');
	   prcPCT2=dprcPCT[1];
	   
	   pricePCT=(parseFloat(prcPCT1) - parseFloat(prcPCT2));	
	   var pricePCT1 = new String(pricePCT);
		strpricePCT1= pricePCT1.indexOf(".");
		
		if (strpricePCT1 !="-1")
		{
			pricePCT = "US $" + pricePCT ;
		}
		else
		{
		pricePCT = "US $" + pricePCT +".00";
		}
}


   	   priceAVL=strresponse[15];
	   ptypeAVL=strresponse[16];
   	   discAVL=strresponse[17];

	if(val1 !='prod')
	{
	   document.frmbuynow.ptype.value = ptypeAV;
	   document.frmbuynow.price.value = priceAV;

	   document.frmBuyNowIS.ptype.value = ptypeIS;
	   document.frmBuyNowIS.price.value = priceIS;

	   document.frmBuyNowTS.ptype.value = ptypeTS;
	   document.frmBuyNowTS.price.value = priceTS;

	   document.frmBuyNowAVSvr.ptype.value = ptypeSE;
	   document.frmBuyNowAVSvr.price.value = priceSE;

	   document.frmBuyNowPCT.ptype.value = ptypePCT;
	   document.frmBuyNowPCT.price.value = pricePCT;
	   
	   document.frmBuyNowAandr.ptype.value = ptypeandr;
	   document.frmBuyNowAandr.price.value = priceandr;	   

	}	 
	 
		if(document.getElementById("tdPriceAV")!=null)
		{
		  document.getElementById("tdPriceAV").innerHTML=priceAV;
		  document.getElementById("buynowav").style.display="inline";
		}	 
		if(document.getElementById("tdPriceIS")!=null)
		{	   	   
	   	  document.getElementById("tdPriceIS").innerHTML=priceIS;
		  document.getElementById("buynowis").style.display="inline";
		  	   
		}
		if(document.getElementById("tdPriceTS")!=null)
		{   
		  document.getElementById("tdPriceTS").innerHTML=priceTS;
		  document.getElementById("buynowts").style.display="inline";
		  	   
		}		
		if (document.getElementById("tdPricePCT")!=null)	   
		{	  	
		  document.getElementById("tdPricePCT").innerHTML=pricePCT;	
		  document.getElementById("buynowpct").style.display="inline";
		     	
		}
		if (document.getElementById("tdPricediscPCT")!=null)	   
		{	  	
		  document.getElementById("tdPricediscPCT").innerHTML=discprc;	   	
		}
		if (document.getElementById("tdoripricePCT")!=null)	   
		{	  	
		  document.getElementById("tdoripricePCT").innerHTML=oriprice;	   	
		}
					   	
		if (document.getElementById("tdPriceAVSvr")!=null)
		{
		  document.getElementById("tdPriceAVSvr").innerHTML=priceSE;
		  document.getElementById("buynowavser").style.display="inline";
		  
		}	    
	 	if(document.getElementById("tdPriceLinuxAV") !=null)
	 	{   
	      document.getElementById("tdPriceLinuxAV").innerHTML=priceAVL;      	   
	    }  
		
		if (document.getElementById("tdPricediscAndr")!=null)	   
		{	  	
		  document.getElementById("tdPricediscAndr").innerHTML=prcandr2;	   	
		}
		if (document.getElementById("tdoripriceAndr")!=null)	   
		{	  	
		  document.getElementById("tdoripriceAndr").innerHTML=prcandr1;	   	
		}		
		if(document.getElementById("tdPriceAndr") !=null)
	 	{   
	      document.getElementById("tdPriceAndr").innerHTML=priceandr;  
		  document.getElementById("buynowandr").style.display="inline";
		      	   
	    }   
		 
    }
  }  
  
  if(val=='True')
  {
  	var ctr='True';
  }
  else
  {
   	var ctr='US';
  }
xmlhttp.open("GET","includefiles/gethint.asp?prd1=AV&ctr1="+ctr+"&prd2=IS&ctr2="+ctr+"&prd3=TS&ctr3="+ctr+"&prd4=AVSer&ctr4="+ctr+"&prd5=PCT&ctr5="+ctr+"&prd6=AVLinux&ctr6="+ctr+"&prd7=android&ctr7="+ctr+"" ,true);

xmlhttp.send();
}

function showHint(user,prd,ctr,dur)
{
if (window.XMLHttpRequest)
  {// code for IE7+, Firefox, Chrome, Opera, Safari
  xmlhttp=new XMLHttpRequest();
  }
else
  {// code for IE6, IE5
  xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");
  }
xmlhttp.onreadystatechange=function()
  {
  
  if (xmlhttp.readyState==4 && xmlhttp.status==200)
    {
	    string=xmlhttp.responseText ;
		//alert(string);
		strresponse=string.split('-');
	    price=strresponse[0];
	    ptype=strresponse[1];
		discprc=strresponse[2];		
		
	  //deduction of the discount if any

		var rscontains = new String(string);
		strrscontains= rscontains.indexOf("Rs.");

if (strrscontains !="-1")

{	  
	   prcd=price.split('Rs.');
	   prcd11=prcd[1];		
	   dprc=discprc.split('Rs.');
	   dprc11=dprc[1];

	   price=(parseFloat(prcd11) - parseFloat(dprc11));	
	 
	   var price11 = new String(price);
		strprice11= price11.indexOf(".");
		
		if (strprice11 !="-1")
		{
			price = "Rs." + price ;
		}
		else
		{
		price = "Rs." + price +".00";
		}

}
else if(strrscontainsUS !="-1")
{
	   prcd=price.split('$');
	   prcd11=prcd[1];		
	   dprc=discprc.split('$');
	   dprc11=dprc[1];
								
	   price=(parseFloat(prcd11) - parseFloat(dprc11));	
     
	   var price11 = new String(price);
		strprice11= price11.indexOf(".");
		
		if (strprice11 !="-1")
		{
			price = "US $" + price ;
		}
		else
		{
		price = "US $" + price +".00";
		}		
}		

	   
	   if(ptype=='NQHAVD01U12' || ptype=='NQHAVD02U12' || ptype=='NQHAVD03U12')
	   {
 	  	 document.frmbuynow.ptype.value = ptype;
 	 	 document.frmbuynow.price.value = price;
 		 document.getElementById("tdPriceAV").innerHTML=price;
	   }	   
	   else if(ptype=='NQHISD01U12' || ptype=='NQHISD01U36' || ptype=='NQHISD02U12' || ptype=='NQHISD02U36' || ptype=='NQHISD03U12' || ptype=='NQHISD03U36')
	   {
	    document.frmBuyNowIS.ptype.value = ptype;
	    document.frmBuyNowIS.price.value = price;
	    document.getElementById("tdPriceIS").innerHTML=price;
	   }

	   else if(ptype=='NQHTSD01U12' || ptype=='NQHTSD01U36' || ptype=='NQHTSD02U12' || ptype=='NQHTSD02U36' || ptype=='NQHTSD03U12' || ptype=='NQHTSD03U36')
	   {
	    document.frmBuyNowTS.ptype.value = ptype;
	    document.frmBuyNowTS.price.value = price;
	    document.getElementById("tdPriceTS").innerHTML=price;
	   }

	   else if(ptype=='NQHAVS01U12' || ptype=='NQHAVS01U36')
	   {
	    document.frmBuyNowAVSvr.ptype.value = ptype;
	    document.frmBuyNowAVSvr.price.value = price;
	    document.getElementById("tdPriceAVSvr").innerHTML=price;
	   }

	   else if(ptype=='NQHPCT01U00')
	   {
	    document.frmBuyNowPCT.ptype.value = ptype;
	    document.frmBuyNowPCT.price.value = price;
	    document.getElementById("tdPricePCT").innerHTML=price;
		
		if (document.getElementById("tdPricediscPCT")!=null)	   
		{	
			document.getElementById("tdPricediscPCT").innerHTML=discprc;
		}		
		if (document.getElementById("tdoripricePCT")!=null)	   
		{	
			document.getElementById("tdoripricePCT").innerHTML=oriprice;
		}	

	   }	   
	   else if(ptype=='NQHAVL01U12')	   
	   {		   
	   document.getElementById("tdPriceLinuxAV").innerHTML=price;   
	   }
	   
	   else if(ptype=='NQHMAB01U60')
	   {
	   document.frmBuyNowAandr.ptype.value = ptype;
	   document.frmBuyNowAandr.price.value = price;	   
	   document.getElementById("tdPriceAndr").innerHTML=price;   
	   }	   
    }
  }  
  
 
// var myTextField = document.getElementById('ChkUserAV');
// var strUser = myTextField.options[myTextField.selectedIndex].value; 
 if(ctr=='True')
 	{  
 	
 		if(prd=='AV')
 		{
			 media=document.getElementById('media').checked; 			
 		} 		
	    else if(prd=='IS')
 		{
			 media=document.getElementById('media1').checked; 			
 		}	 			
	    else if(prd=='TS')
 		{
			 media=document.getElementById('media2').checked; 			
 		}		
	    else if(prd=='AVSer')
 		{
			 media=document.getElementById('media3').checked; 			
 		}		
	    else if(prd=='PCT')
 		{
			 media=document.getElementById('media4').checked; 		 
			 
 		}	
		else if(prd=='android')
 		{
			 media=document.getElementById('media5').checked; 		 
			 
 		}				 
	}
	else	
	{
	 var media='No';
	}
		
xmlhttp.open("GET","includefiles/gethint.asp?user="+user+ "&prd="+prd+ "&ctr="+ctr+ "&dura="+dur+ "&media="+media,true);
xmlhttp.send();
}


function showHint1(user,prd,ctr,dur)
{
if (window.XMLHttpRequest)
  {// code for IE7+, Firefox, Chrome, Opera, Safari
  xmlhttp=new XMLHttpRequest();
  }
else
  {// code for IE6, IE5
  xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");
  }
xmlhttp.onreadystatechange=function()
  {
  
  if (xmlhttp.readyState==4 && xmlhttp.status==200)
    {
	    string=xmlhttp.responseText ; 	    	    


	   	strresponse=string.split('-');
	    price=strresponse[0];
	    ptype=strresponse[1];
		var	discprc=strresponse[2];
	  //deduction of the discount if any

		var rscontains = new String(string);
		strrscontains= rscontains.indexOf("Rs.");
		strrscontainsUS= rscontains.indexOf("US");

   	   pricePCT=price;
	   ptypePCT=ptype;
	   discPCT=discprc;
	   

if (strrscontains !="-1")
{ 	
	   prcPCT=pricePCT.split('Rs.');
	   prcPCT1=prcPCT[1];		
	   dprcPCT=discPCT.split('Rs.');
	   prcPCT2=dprcPCT[1];
	   							
	   pricePCT=(parseFloat(prcPCT1));	
	   price = (parseFloat(prcPCT1)) - (parseFloat(prcPCT2));
	     
	   var pricePCT1 = new String(pricePCT);
		strpricePCT1= pricePCT1.indexOf(".");
		
		if (strpricePCT1 !="-1")
		{
			oriprice = "Rs." + pricePCT ;				
			price = "Rs." + price ;				
		}
		else
		{
		oriprice = "Rs." + pricePCT +".00";	
		price = "Rs." + price +".00";		
	
		}

}

else if(strrscontainsUS !="-1")
{
	   prcPCT=pricePCT.split('$');
	   prcPCT1=prcPCT[1];		
	   dprcPCT=discPCT.split('$');
	   prcPCT2=dprcPCT[1];
	   
	   pricePCT=(parseFloat(prcPCT1) - parseFloat(prcPCT2));	
	   var pricePCT1 = new String(pricePCT);
		strpricePCT1= pricePCT1.indexOf(".");
		
		if (strpricePCT1 !="-1")
		{
			price = "US $" + pricePCT ;
		}
		else
		{
		price = "US $" + pricePCT +".00";
		}
}
	   
   
	   if(ptype=='NQHAVD01U12')
	   {
 		 document.getElementById("tdPriceAV").innerHTML=price;
	   }	   
	   else if(ptype=='NQHISD01U12')
	   {
	    document.getElementById("tdPriceIS").innerHTML=price;
	   }

	   else if(ptype=='NQHTSD01U12')
	   {
	    document.getElementById("tdPriceTS").innerHTML=price;
	   }

	   else if(ptype=='NQHAVS01U12')
	   {
	    document.getElementById("tdPriceAVSvr").innerHTML=price;
	   }

	   else if(ptype=='NQHPCT01U00')
	   {
	    document.getElementById("tdPricePCT").innerHTML=price;
    	document.getElementById("buynowpct").style.display="inline";		
		
		if (document.getElementById("tdPricediscPCT")!=null)	   
		{
			document.getElementById("tdPricediscPCT").innerHTML=discprc;
		}
		if (document.getElementById("tdoripricePCT")!=null)	   
		{
			document.getElementById("tdoripricePCT").innerHTML=oriprice;		
		}
		
	   }	   
	   else if(ptype=='NQHAVL01U12')
	   {
	   document.getElementById("tdPriceLinuxAV").innerHTML=price;   
	   }
	  
	   else if(ptype=='NQHMAB01U60')
	   {	   
	   document.getElementById("tdPriceAndr").innerHTML=price;   
	   }		   
    }
  }  
  
  var media="No";
// var myTextField = document.getElementById('ChkUserAV');
// var strUser = myTextField.options[myTextField.selectedIndex].value; 
 		
xmlhttp.open("GET","includefiles/gethint.asp?user="+user+ "&prd="+prd+ "&ctr="+ctr+ "&dura="+dur+ "&media="+media,true);
xmlhttp.send();
}


function defaultrenwalfun(val)
{

if (window.XMLHttpRequest)
  {// code for IE7+, Firefox, Chrome, Opera, Safari
  xmlhttp=new XMLHttpRequest();
  }
else
  {// code for IE6, IE5
  xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");
  }
xmlhttp.onreadystatechange=function()
  {
  
  if (xmlhttp.readyState==4 && xmlhttp.status==200)
    {
	   stringR=xmlhttp.responseText ;
	   	  //alert(stringR);
 
	   strresponse=stringR.split("-");

	   priceRAV1=strresponse[0];
	   ptypeRAV1=strresponse[1];	   
	   priceRAV3=strresponse[2];
	   ptypeRAV3=strresponse[3];

	   priceRIS1=strresponse[4];
	   ptypeRIS1=strresponse[5];	   
	   priceRIS3=strresponse[6];
	   ptypeRIS3=strresponse[7];

   	   priceRTS1=strresponse[8];
	   ptypeRTS1=strresponse[9];
   	   priceRTS3=strresponse[10];
	   ptypeRTS3=strresponse[11];
	   
   	   priceRSE1=strresponse[12];
	   ptypeRSE1=strresponse[13];
   	   priceRSE3=strresponse[14];
	   ptypeRSE3=strresponse[15];
		
		if(document.getElementById("tdPriceAV1")!=null)
		{	   	   
	   	  document.getElementById("tdPriceAV1").innerHTML=priceRAV1;
		  document.getElementById("buynowav1").style.display="inline";		

		}
		
		if(document.getElementById("tdPriceAV3")!=null)
		{	   	   
	   	  document.getElementById("tdPriceAV3").innerHTML=priceRAV3;
		  document.getElementById("buynowav3").style.display="inline";
		}		

		if(document.getElementById("tdPriceIS1")!=null)
		{	   	   
	   	  document.getElementById("tdPriceIS1").innerHTML=priceRIS1;
		  document.getElementById("buynowis1").style.display="inline";
		}
		
		if(document.getElementById("tdPriceIS3")!=null)
		{	   	   
	   	  document.getElementById("tdPriceIS3").innerHTML=priceRIS3;
		  document.getElementById("buynowis3").style.display="inline";
		}		
		
		if(document.getElementById("tdPriceTS1")!=null)
		{   
		  document.getElementById("tdPriceTS1").innerHTML=priceRTS1;
		  document.getElementById("buynowts1").style.display="inline";
		}		

  		if(document.getElementById("tdPriceTS3")!=null)
		{   
		  document.getElementById("tdPriceTS3").innerHTML=priceRTS3;
		  document.getElementById("buynowts3").style.display="inline";
		}
		
		if(document.getElementById("tdPriceAVS1")!=null)
		{	   	   
	   	  document.getElementById("tdPriceAVS1").innerHTML=priceRSE1;
		  document.getElementById("buynowavser1").style.display="inline";
		}
		
		if(document.getElementById("tdPriceAVS3")!=null)
		{	   	   
	   	  document.getElementById("tdPriceAVS3").innerHTML=priceRSE3;
		  document.getElementById("buynowavser3").style.display="inline";
		}
    }
  }    
  
  if(val=='True')
  {
  	var ctr='True';
  }
  else
  {
   	var ctr='US';
  }
xmlhttp.open("GET","includefiles/gethint.asp?prd1=RAV&ctr1="+ctr+"&prd2=RIS&ctr2="+ctr+"&prd3=RTS&ctr3="+ctr+"&prd4=RAVSer&ctr4="+ctr+"" ,true);

xmlhttp.send();
}

