		window.onload = function sizePage() 
		{ verifi_login_div(); }
		
function userDetails(plan)
{
document.getElementById("travel_insurance_email").style.display="inline";

document.getElementById("plan").value=plan;

if(!(navigator.appName=="Microsoft Internet Explorer"))
{
document.getElementById("blockUI_footer").style.height = (document.body.scrollHeight)+10+'px';
document.getElementById("blockUI_footer").style.display="inline";
document.getElementById("blockUI_footer").style.height = document.height+10+'px'; 		
}
}
		
function send_service_email()
{
    
            document.getElementById("service_response").innerHTML="";
     
            var service_plan=document.getElementById("plan").value;
     		var service_customer_name=document.getElementById("service_customer_name").value;
			var service_customer_contactno=document.getElementById("service_customer_contactno").value;
			var service_customer_age=document.getElementById("service_customer_age").value;
			var service_customer_days=document.getElementById("service_customer_days").value;
			var service_customer_email=document.getElementById("service_customer_email").value;
			
	     
     var terms=document.getElementById("service_terms").value;
     
     if((service_customer_name=="") || (service_customer_contactno=="") || (service_customer_age=="") || (service_customer_days==""))
     {
       document.getElementById("service_response").innerHTML="All * mark fields are mandatory";
       return false;
     }
     
       if (document.TravelServiceUserSearchForm.service_terms.checked == false)	 
     {
       document.getElementById("service_response").innerHTML="Please accept terms and conditions";
       return false;
     }
     
     document.getElementById("sendInfoStatusBar").style.display="inline";
     var xmlHttp;
    try
  {
  // Firefox, Opera 8.0+, Safari
  xmlHttp=new XMLHttpRequest();
  }
catch (e)
  {
  // Internet Explorer
  try
    {
    xmlHttp=new ActiveXObject("Msxml2.XMLHTTP");
    }
  catch (e)
    {
    try
      {
      xmlHttp=new ActiveXObject("Microsoft.XMLHTTP");
      }
    catch (e)
      {
      alert("Your browser does not support AJAX!");
      return false;
      }
    }
  }
	
	    xmlHttp.onreadystatechange=function()
    	{
    	if(xmlHttp.readyState==4)
      	{
      	 
      	document.getElementById("ajax_service_response").innerHTML=xmlHttp.responseText;
      	document.getElementById("sendInfoStatusBar").style.display="none";
      	}
    	}
  		xmlHttp.open("Post","/TravelServiceUserSearch?action=email&service_customer_name="+service_customer_name+"&service_customer_contactno="+service_customer_contactno+"&service_customer_email="+service_customer_email+"&service_plan="+service_plan+"&age="+service_customer_age+"&days="+service_customer_days,true);
  		xmlHttp.send(null);  
}


function send_service_email_close()
{
  	document.getElementById("travel_insurance_email").style.display="none";
	document.getElementById("blockUI_footer").style.display="none";
}

