
jQuery.noConflict();


jQuery(document).ready(function(){
  		jQuery("#submenu1").hide();
        jQuery("#submenu2").hide();
        
        //
        

        //////////////////
        jQuery('#profile_a').click(
          function () {
             jQuery("#submenu1").slideToggle('normal');
             jQuery("#submenu2").hide();
          }
        );
        
        jQuery('#profile_a').mouseover(
          function () {
             jQuery("#submenu1").slideToggle('normal');
             jQuery("#submenu2").hide();
          }
        );
        
        jQuery(".profile-sub").click(
          function () {
             jQuery("#submenu1").hide();
          }
        );
        
        
        
        jQuery('#service_a').click(
          function () {
             jQuery("#submenu2").slideToggle('normal');
             jQuery("#submenu1").hide();
          }
        );
        
        jQuery('#service_a').mouseover(
          function () {
             jQuery("#submenu2").slideToggle('normal');
             jQuery("#submenu1").hide();
          }
        );
        
        jQuery(".service-sub").click(
          function () {
             jQuery("#submenu2").hide();
          }
        );
        
        jQuery("#middle-container").mouseover(
          function () {
             jQuery("#submenu1").hide();
             jQuery("#submenu2").hide();
          }
        );
        
        
       
        //////////////////////////
        jQuery("#tab_serviceProviders").attr('src', 'images/tab_serviceProviders.gif');
        jQuery("#tab_downloadProfile").attr('src', 'images/tab_downloadProfile.gif');
        jQuery("#tab_shareYourViews").attr('src', 'images/tab_shareYourViews.gif');
        jQuery("#tab_wishToFollowUs").attr('src', 'images/tab_wishToFollowUs.gif');
        
	   jQuery("#lic").hide();
	   jQuery("#tab_ourHelpLines").attr('src', 'images/tab_ourHelpLines1.gif');
	   jQuery("#our_help_lines-tab").show();
	   jQuery("#profile-download-tab").hide();
	   jQuery("#tab_subscribeNewsletters").attr('src', 'images/tab_subscribeNewsletters1.gif');
	   jQuery("#subscribe_newsletter-tab").show();
	   jQuery("#share_your_views-tab").hide();
	   jQuery("#tab_testimonials").attr('src', 'images/tab_testimonials1.gif');
	   jQuery("#testimonials-tab").show();
	   jQuery("#wish_to_follow_us-tab").hide();
	   ////////////////
	   
	   
	       jQuery("#service-providers-tab").click(
	          function () {
	          	    jQuery("#tab_ourHelpLines").attr('src', 'images/tab_ourHelpLines.gif');
			        jQuery("#tab_serviceProviders").attr('src', 'images/tab_serviceProviders.gif');
			        jQuery("#tab_subscribeNewsletters").attr('src', 'images/tab_subscribeNewsletters.gif');
			        jQuery("#tab_testimonials").attr('src', 'images/tab_testimonials.gif');
			        jQuery("#tab_downloadProfile").attr('src', 'images/tab_downloadProfile.gif');
			        jQuery("#tab_shareYourViews").attr('src', 'images/tab_shareYourViews.gif');
			        jQuery("#tab_wishToFollowUs").attr('src', 'images/tab_wishToFollowUs.gif');
        
	          	   jQuery("#tab_serviceProviders").attr('src', 'images/tab_serviceProviders1.gif');
				  // jQuery("#our_help_lines-tab").hide();
				   jQuery("#profile-download-tab").hide();
				  // jQuery("#subscribe_newsletter-tab").hide();
				   jQuery("#share_your_views-tab").hide();
				   //jQuery("#testimonials-tab").hide();
				   jQuery("#wish_to_follow_us-tab").hide();
	                jQuery("#lic").slideToggle('normal');
	                jQuery("#tab_serviceProviders").toggle(
	                	function(){ 
	                		jQuery("#lic").hide(); 
	                		jQuery(this).attr('src', 'images/tab_serviceProviders.gif'); 
	                	},
  						function(){ 
  							jQuery("#lic").show('fast');
  							jQuery(this).attr('src', 'images/tab_serviceProviders1.gif'); 
  						}
	                );
	          }
	        );
       
         jQuery("#our_help_lines").click(
          function () {
		      jQuery("#tab_serviceProviders").attr('src', 'images/tab_serviceProviders.gif');
		      jQuery("#tab_subscribeNewsletters").attr('src', 'images/tab_subscribeNewsletters.gif');
		      jQuery("#tab_testimonials").attr('src', 'images/tab_testimonials.gif');
		      jQuery("#tab_downloadProfile").attr('src', 'images/tab_downloadProfile.gif');
		      jQuery("#tab_shareYourViews").attr('src', 'images/tab_shareYourViews.gif');
		      jQuery("#tab_wishToFollowUs").attr('src', 'images/tab_wishToFollowUs.gif');
        
          	  jQuery("#lic").hide();
			   //jQuery("#our_help_lines-tab").hide();
			   jQuery("#profile-download-tab").hide();
			  //jQuery("#subscribe_newsletter-tab").hide();
			   jQuery("#share_your_views-tab").hide();
			   //jQuery("#testimonials-tab").hide();
			   jQuery("#wish_to_follow_us-tab").hide();
	           jQuery("#tab_ourHelpLines").attr('src', 'images/tab_ourHelpLines1.gif');
	           jQuery("#our_help_lines-tab").slideToggle('normal');
	           
	           jQuery("#tab_ourHelpLines").toggle(
	                	function(){ 
	                		jQuery("#our_help_lines-tab").hide(); 
	                		jQuery(this).attr('src', 'images/tab_ourHelpLines.gif'); 
	                	},
  						function(){ 
  							jQuery("#our_help_lines-tab").show('fast');
  							jQuery(this).attr('src', 'images/tab_ourHelpLines1.gif'); 
  						}
	            );
          }
        );
        jQuery("#profile-download").click(
          function () {
          	  jQuery("#tab_ourHelpLines").attr('src', 'images/tab_ourHelpLines.gif');
		      jQuery("#tab_serviceProviders").attr('src', 'images/tab_serviceProviders.gif');
		      jQuery("#tab_subscribeNewsletters").attr('src', 'images/tab_subscribeNewsletters.gif');
		      jQuery("#tab_testimonials").attr('src', 'images/tab_testimonials.gif');
		      jQuery("#tab_shareYourViews").attr('src', 'images/tab_shareYourViews.gif');
		      jQuery("#tab_wishToFollowUs").attr('src', 'images/tab_wishToFollowUs.gif');
        
          	   jQuery("#lic").hide();
			   //jQuery("#our_help_lines-tab").hide();
			   //jQuery("#subscribe_newsletter-tab").hide();
			   jQuery("#share_your_views-tab").hide();
			   //jQuery("#testimonials-tab").hide();
			   jQuery("#wish_to_follow_us-tab").hide();
               jQuery("#tab_downloadProfile").attr('src', 'images/tab_downloadProfile1.gif');
               jQuery("#profile-download-tab").slideToggle('normal');
               jQuery("#tab_downloadProfile").toggle(
	                	function(){ 
	                		jQuery("#profile-download-tab").hide(); 
	                		jQuery(this).attr('src', 'images/tab_downloadProfile.gif'); 
	                	},
  						function(){ 
  							jQuery("#profile-download-tab").show('fast');
  							jQuery(this).attr('src', 'images/tab_downloadProfile1.gif'); 
  						}
	            );
          }
        );

        jQuery("#subscribe_newsletter").click(
          function () {
          	   jQuery("#tab_ourHelpLines").attr('src', 'images/tab_ourHelpLines.gif');
		      jQuery("#tab_serviceProviders").attr('src', 'images/tab_serviceProviders.gif');
		      jQuery("#tab_testimonials").attr('src', 'images/tab_testimonials.gif');
		      jQuery("#tab_downloadProfile").attr('src', 'images/tab_downloadProfile.gif');
		      jQuery("#tab_shareYourViews").attr('src', 'images/tab_shareYourViews.gif');
		      jQuery("#tab_wishToFollowUs").attr('src', 'images/tab_wishToFollowUs.gif');
        
          	   jQuery("#lic").hide();
			  // jQuery("#our_help_lines-tab").hide();
			   jQuery("#profile-download-tab").hide();
			   jQuery("#share_your_views-tab").hide();
			   //jQuery("#testimonials-tab").hide();
			   jQuery("#wish_to_follow_us-tab").hide();
               jQuery("#subscribe_newsletter-tab").attr('src', 'images/tab_subscribeNewsletters1.gif');
               jQuery("#subscribe_newsletter-tab").slideToggle('normal');
               jQuery("#tab_subscribeNewsletters").toggle(
	                	function(){ 
	                		jQuery("#subscribe_newsletter-tab").hide(); 
	                		jQuery(this).attr('src', 'images/tab_subscribeNewsletters.gif'); 
	                	},
  						function(){ 
  							jQuery("#subscribe_newsletter-tab").show('fast');
  							jQuery(this).attr('src', 'images/tab_subscribeNewsletters1.gif'); 
  						}
	            );
          }
        );

        jQuery("#share_your_views").click(
          function () {
          	   jQuery("#tab_ourHelpLines").attr('src', 'images/tab_ourHelpLines.gif');
		      jQuery("#tab_serviceProviders").attr('src', 'images/tab_serviceProviders.gif');
		      jQuery("#tab_subscribeNewsletters").attr('src', 'images/tab_subscribeNewsletters.gif');
		      jQuery("#tab_testimonials").attr('src', 'images/tab_testimonials.gif');
		      jQuery("#tab_downloadProfile").attr('src', 'images/tab_downloadProfile.gif');
		      jQuery("#tab_wishToFollowUs").attr('src', 'images/tab_wishToFollowUs.gif');
        
		      
          	   jQuery("#lic").hide();
			   //jQuery("#our_help_lines-tab").hide();
			   jQuery("#profile-download-tab").hide();
			   //jQuery("#subscribe_newsletter-tab").hide();
			   //jQuery("#testimonials-tab").hide();
			   jQuery("#wish_to_follow_us-tab").hide();
               jQuery("#tab_shareYourViews").attr('src', 'images/tab_shareYourViews1.gif');
               jQuery("#share_your_views-tab").slideToggle('normal');
               
               jQuery("#tab_shareYourViews").toggle(
	                	function(){ 
	                		jQuery("#share_your_views-tab").hide(); 
	                		jQuery(this).attr('src', 'images/tab_shareYourViews.gif'); 
	                	},
  						function(){ 
  							jQuery("#share_your_views-tab").show('fast');
  							jQuery(this).attr('src', 'images/tab_shareYourViews1.gif'); 
  						}
	            );
          }
        );

        jQuery("#testimonials").click(
          function () {
          	   jQuery("#tab_ourHelpLines").attr('src', 'images/tab_ourHelpLines.gif');
		      jQuery("#tab_serviceProviders").attr('src', 'images/tab_serviceProviders.gif');
		      jQuery("#tab_subscribeNewsletters").attr('src', 'images/tab_subscribeNewsletters.gif');
		      jQuery("#tab_downloadProfile").attr('src', 'images/tab_downloadProfile.gif');
		      jQuery("#tab_shareYourViews").attr('src', 'images/tab_shareYourViews.gif');
		      jQuery("#tab_wishToFollowUs").attr('src', 'images/tab_wishToFollowUs.gif');
        
		      
          	   jQuery("#lic").hide();
			   //jQuery("#our_help_lines-tab").hide();
			   jQuery("#profile-download-tab").hide();
			   //jQuery("#subscribe_newsletter-tab").hide();
			   jQuery("#share_your_views-tab").hide();
			   jQuery("#wish_to_follow_us-tab").hide();
               jQuery("#tab_testimonials").attr('src', 'images/tab_testimonials1.gif');
               jQuery("#testimonials-tab").slideToggle('normal');
               
                jQuery("#tab_testimonials").toggle(
	                	function(){ 
	                		jQuery("#testimonials-tab").hide(); 
	                		jQuery(this).attr('src', 'images/tab_testimonials.gif'); 
	                	},
  						function(){ 
  							jQuery("#testimonials-tab").show('fast');
  							jQuery(this).attr('src', 'images/tab_testimonials1.gif'); 
  						}
	            );
          }
        );

        jQuery("#wish_to_follow_us").click(
          function () {
          	   jQuery("#tab_ourHelpLines").attr('src', 'images/tab_ourHelpLines.gif');
		      jQuery("#tab_serviceProviders").attr('src', 'images/tab_serviceProviders.gif');
		      jQuery("#tab_subscribeNewsletters").attr('src', 'images/tab_subscribeNewsletters.gif');
		      jQuery("#tab_testimonials").attr('src', 'images/tab_testimonials.gif');
		      jQuery("#tab_downloadProfile").attr('src', 'images/tab_downloadProfile.gif');
		      jQuery("#tab_shareYourViews").attr('src', 'images/tab_shareYourViews.gif');
        
		      
          	   jQuery("#lic").hide();
			   //jQuery("#our_help_lines-tab").hide();
			   jQuery("#profile-download-tab").hide();	
			   //jQuery("#subscribe_newsletter-tab").hide();
			   jQuery("#share_your_views-tab").hide();
			   //jQuery("#testimonials-tab").hide();
               jQuery("#tab_wishToFollowUs").attr('src', 'images/tab_wishToFollowUs1.gif');
               jQuery("#wish_to_follow_us-tab").slideToggle('normal');
               
               jQuery("#tab_wishToFollowUs").toggle(
	                	function(){ 
	                		jQuery("#wish_to_follow_us-tab").hide(); 
	                		jQuery(this).attr('src', 'images/tab_wishToFollowUs.gif'); 
	                	},
  						function(){ 
  							jQuery("#wish_to_follow_us-tab").show('fast');
  							jQuery(this).attr('src', 'images/tab_wishToFollowUs1.gif'); 
  						}
	            );
          }
        );
        
         ////////////////////////////////////////////
       
        jQuery("#profile-download-services").hide();
        
        jQuery("#individual_solutions").click(
          function () {
          	jQuery("#individual-list").slideToggle('normal');
          	jQuery(this).toggleClass("solution-show", "solution-hd");
          }); 
          
          jQuery("#coperate_solutions").click(
          function () {
          	jQuery("#corporate-list").slideToggle('normal');
          	jQuery(this).toggleClass("solution-show", "solution-hd");
          });
          
          jQuery("#download_profile_h").click(
          function () {
          	jQuery("#profile-download-services").slideToggle('normal');
          	jQuery(this).toggleClass("solution-show", "solution-hd");
          });
          
          jQuery("#form_list").hide();
          jQuery("#button_formlink").click(
          function () {
          	jQuery("#form_list").slideToggle('slow');
          	//jQuery(this).toggleClass("solution-show", "solution-hd");
			});
		//////////////////////////////////press room////////////////////////////////
			
		jQuery("#press-txt1").hide();
          jQuery("#press-hd1").click(
          function () {
			//jQuery("#press-hd1").addClass("press-show");
          	jQuery("#press-txt1").slideToggle('normal');
			jQuery("#press-txt2").hide();
			jQuery("#press-txt3").hide();
			jQuery("#press-txt4").hide();
			jQuery("#press-txt5").hide();
			jQuery("#press-txt6").hide(); 
		   
			 });
			 //
			 
		jQuery("#press-txt2").hide();
          jQuery("#press-hd2").click(
          function () {
			jQuery("#press-txt1").hide();
          	jQuery("#press-txt2").slideToggle('normal');
			jQuery("#press-txt3").hide();
			jQuery("#press-txt4").hide();
			jQuery("#press-txt5").hide();
			jQuery("#press-txt6").hide(); 
	         });
			 //
			 
          jQuery("#press-txt3").hide();
          jQuery("#press-hd3").click(
          function () {
			jQuery("#press-txt1").hide();
			jQuery("#press-txt2").hide();
          	jQuery("#press-txt3").slideToggle('normal');
			jQuery("#press-txt4").hide();
			jQuery("#press-txt5").hide();
			jQuery("#press-txt6").hide();
	         });
			 //

          jQuery("#press-txt4").hide();
          jQuery("#press-hd4").click(
          function () {
			jQuery("#press-txt1").hide();
			jQuery("#press-txt2").hide();
			jQuery("#press-txt3").hide();
          	jQuery("#press-txt4").slideToggle('normal');
			jQuery("#press-txt5").hide();
			jQuery("#press-txt6").hide();
	         });
          //
		  
          jQuery("#press-txt5").hide();
          jQuery("#press-hd5").click(
          function () {
			jQuery("#press-txt1").hide();
			jQuery("#press-txt2").hide();
			jQuery("#press-txt3").hide();
			jQuery("#press-txt4").hide();
          	jQuery("#press-txt5").slideToggle('normal');
			jQuery("#press-txt6").hide();
	         });
          //

          jQuery("#press-txt6").hide();
          jQuery("#press-hd6").click(
          function () {
			jQuery("#press-txt1").hide();
			jQuery("#press-txt2").hide();
			jQuery("#press-txt3").hide();
			jQuery("#press-txt4").hide();
			jQuery("#press-txt5").hide();
          	jQuery("#press-txt6").slideToggle('normal');
	         });
          ////////////////////////////////////press room///////////////////////////////////
          //
          var pathname = window.location.pathname;
         // alert(pathname);
          if((pathname.indexOf("motor-insurance.html") > 0) || 
             (pathname.indexOf("individual-solutions.html") > 0) || 
             (pathname.indexOf("home-insurance.html") > 0) || 
             (pathname.indexOf("travel-insurance.html") > 0) || 
             (pathname.indexOf("medical-insurance.html") > 0) || 
             (pathname.indexOf("professional-indemnity.html") > 0) || 
             (pathname.indexOf("life-insurance-financial-planning.html") > 0)){
          	jQuery("#individual-list").show();
          	jQuery("#individual_solutions").addClass("solution-show");
          }else{
          	jQuery("#individual-list").hide();
          	jQuery("#individual_solutions").addClass("solution-hd");
          } 
          
          if((pathname.indexOf("group-medical-insurance.html") > 0) || 
             (pathname.indexOf("corporate-solutions.html") > 0) || 
             (pathname.indexOf("property-all-risk.html") > 0) || 
             (pathname.indexOf("group-life-insurance.html") > 0) || 
             (pathname.indexOf("money-insurance.html") > 0) || 
             (pathname.indexOf("marine-transit.html") > 0) || 
             (pathname.indexOf("motor-fleet-insurance.html") > 0) || 
             (pathname.indexOf("medical-malpractice.html") > 0) || 
             (pathname.indexOf("professional-indemnity-corporate.html") > 0) || 
             (pathname.indexOf("workmens-compensation-insurance.html") > 0) || 
             (pathname.indexOf("contractors-all-risk.html") > 0) || 
             (pathname.indexOf("contractors-plant-equipment.html") > 0) || 
             (pathname.indexOf("machinery-all-risk.html") > 0) || 
             (pathname.indexOf("liability-insurance.html") > 0) || 
             (pathname.indexOf("group-personal-accident-insurance.html") > 0) || 
             (pathname.indexOf("electronic-equipment-insurance.html") > 0) || 
             (pathname.indexOf("fidelity-guarantee.html") > 0)){
          	jQuery("#corporate-list").show();
          	jQuery("#corporate_solutions").addClass("solution-show");
          }else{
          	jQuery("#corporate-list").hide();
          	jQuery("#corporate_solutions").addClass("solution-hd");
          }
        ////////////////////////////////////////////////////////////
});

function newletter_submit(){
	emailid = jQuery("#emailid").val();
	if(!check_email_address(emailid)){
		jQuery("#emailid").focus();
	}else{
		jQuery('#subscribe_newsletter-tab').html("<div style='color:red;'><img src='images/loading.gif' border='0' /> </div>");
		jQuery.post('newsletter.php', { email_id: emailid },
		   function(data){
		     	if(data == 1){
		     		jQuery('#subscribe_newsletter-tab').html("<div style='color:red;'>Thanks for Newsletter Subscription.</div>");
		     	}else{
		     		jQuery('#subscribe_newsletter-tab').html("<div style='color:red;'>Newsletter Subscription Failed!</div>");
		     	}
			}
		);
	}
}

/*function check_email_address($email) {
  var emailRegEx = /^([a-zA-Z0-9_\.\-])+\@(([a-zA-Z0-9\-])+\.)+([a-zA-Z0-9]{2,4})+$/;
  str = $email;
  if(str.match(emailRegEx)){
		return true;
  }else{
	return false;
  }
}

function validate_c_form(){
	if(jQuery("#c_title").val() == ""){
		alert("Title Should not be blank");
		jQuery("#c_title").focus();
		return false;
	}else if(jQuery("#c_firstname").val() == ""){
		alert("First name Should not be blank");
		jQuery("#c_firstname").focus();
		return false;
	}else if(jQuery("#c_lastname").val() == ""){
		alert("Last name Should not be blank");
		jQuery("#c_lastname").focus();
		return false;
	}else if(jQuery("#c_nationality").val() == ""){
		alert("Nationality Should not be blank");
		jQuery("#c_nationality").focus();
		return false;
	}else if(jQuery("#c_dob_day").val() == ""){
		alert("Date of birth Should not be blank");
		jQuery("#c_dob_day").focus();
		return false;
	}else if(jQuery("#c_dob_month").val() == ""){
		alert("Date of birth Should not be blank");
		jQuery("#c_dob_month").focus();
		return false;
	}else if(jQuery("#c_dob_year").val() == ""){
		alert("Date of birth Should not be blank");
		jQuery("#c_dob_year").focus();
		return false;
	}else if(jQuery("#c_pobox").val() == ""){
		alert("POBox Should not be blank");
		jQuery("#c_pobox").focus();
		return false;
	}else if(jQuery("#c_emirate").val() == ""){
		alert("Emirate Should not be blank");
		jQuery("#c_emirate").focus();
		return false;
	}else if(jQuery("#c_phone").val() == ""){
		alert("Phone Should not be blank");
		jQuery("#c_phone").focus();
		return false;
	}else if(jQuery("#c_mobile").val() == ""){
		alert("Mobile Should not be blank");
		jQuery("#c_mobile").focus();
		return false;
	}else if(jQuery("#c_email").val() == ""){
		alert("Email Should not be blank");
		jQuery("#c_email").focus();
		return false;
	}else if(!check_email_address(jQuery("#c_email").val())){
		alert("Email address should be valid Email id.");
		jQuery("#c_email").focus();
		return false;
	}else if(jQuery("#c_occupation").val() == ""){
		alert("Occupation Should not be blank");
		jQuery("#c_occupation").focus();
		return false;
	}else if(jQuery("#c_howyouknow").val() == ""){
		alert("How you know Should not be blank");
		jQuery("#c_howyouknow").focus();
		return false;
	}else{
		return true;
	}
}*/

// JavaScript Document
function echeck(str) {
		var at="@"
		var dot="."
		var lat=str.indexOf(at)
		var lstr=str.length
		var ldot=str.indexOf(dot)
		if (str.indexOf(at)==-1){
		   alert("Invalid E-mail ID")
		   return false
		}
		if (str.indexOf(at)==-1 || str.indexOf(at)==0 || str.indexOf(at)==lstr){
		   alert("Invalid E-mail ID")
		   return false
		}
		if (str.indexOf(dot)==-1 || str.indexOf(dot)==0 || str.indexOf(dot)==lstr){
		    alert("Invalid E-mail ID")
		    return false
		}
		 if (str.indexOf(at,(lat+1))!=-1){
		    alert("Invalid E-mail ID")
		    return false
		 }
		 if (str.substring(lat-1,lat)==dot || str.substring(lat+1,lat+2)==dot){
		    alert("Invalid E-mail ID")
		    return false
		 }
		 if (str.indexOf(dot,(lat+2))==-1){
		    alert("Invalid E-mail ID")
		    return false
		 }
		 if (str.indexOf(" ")!=-1){
		    alert("Invalid E-mail ID")
		    return false
		 }
 		 return true					
	}
	
function validate_c_form(){
	var frm=document.c_form
	var emailID=document.c_form.Email
	
	if (frm.FirstName.value==null || frm.FirstName.value=='' || frm.FirstName.value.charAt(0) == ' '){
		alert("Please Enter your First Name")
		frm.FirstName.focus()
		return false
	}
	if (frm.LastName.value==null || frm.LastName.value=='' || frm.LastName.value.charAt(0) == ' '){
		alert("Please Enter your Last Name")
		frm.LastName.focus()
		return false
	}
	/*if (frm.gender.value==null || frm.gender.value=='' || frm.gender.value.charAt(0) == ' '){
		alert("Please Enter your Gender")
		frm.gender.focus()
		return false
	}*/
	if (frm.Nationality.value==null || frm.Nationality.value=='' || frm.Nationality.value.charAt(0) == ' '){
		alert("Please Enter your Nationality")
		frm.Nationality.focus()
		return false
	}
	if (frm.DOBDay.value==null || frm.DOBDay.value=='' || frm.DOBDay.value.charAt(0) == ' '){
		alert("Please Enter your Date of Birth (DAY)")
		frm.DOBDay.focus()
		return false
	}
	if (frm.DOBMonth.value==null || frm.DOBMonth.value=='' || frm.DOBMonth.value.charAt(0) == ' '){
		alert("Please Enter your Date of Birth (MONTH)")
		frm.DOBMonth.focus()
		return false
	}
	if (frm.DOBYear.value==null || frm.DOBYear.value=='' || frm.DOBYear.value.charAt(0) == ' '){
		alert("Please Enter your Date of Birth (YEAR)")
		frm.DOBYear.focus()
		return false
	}
	if (frm.POBox.value==null || frm.POBox.value=='' || frm.POBox.value.charAt(0) == ' '){
		alert("Please Enter your P.O. Box")
		frm.POBox.focus()
		return false
	}
	if (frm.Emirate.value==null || frm.Emirate.value=='' || frm.Emirate.value.charAt(0) == ' '){
		alert("Please Select your Emirate")
		frm.Emirate.focus()
		return false
	}
	if (frm.Phone.value==null || frm.Phone.value=='' || frm.Phone.value.charAt(0) == ' '){
		alert("Please Enter your Phone Number")
		frm.Phone.focus()
		return false
	}
	if (frm.Mobile.value==null || frm.Mobile.value=='' || frm.Mobile.value.charAt(0) == ' '){
		alert("Please Enter your Mobile Number")
		frm.Mobile.focus()
		return false
	}
	if (emailID.value==null || emailID.value=='' || emailID.value.charAt(0) == ' '){
		alert("Please Enter Email Address")
		emailID.focus()
		return false
	}
	if (echeck(emailID.value)==false){
		emailID.value=""
		emailID.focus()
		return false
	}
	if (frm.CountryID.value==null || frm.CountryID.value=='' || frm.CountryID.value.charAt(0) == ' '){
		alert("Please Select Country")
		frm.CountryID.focus()
		return false
	}
	if (frm.Occupation.value==null || frm.Occupation.value=='' || frm.Occupation.value.charAt(0) == ' '){
		alert("Please Enter Occupation")
		frm.Occupation.focus()
		return false
	}
	/*if (frm.PolicyRenewal.value==null || frm.PolicyRenewal.value=='' || frm.PolicyRenewal.value.charAt(0) == ' '){
		alert("Please Select Policy renewal quote")
		frm.PolicyRenewal.focus()
		return false
	}*/
	if (frm.HowYouKnow.value==null || frm.HowYouKnow.value=='' || frm.HowYouKnow.value.charAt(0) == ' '){
		alert("Please state How you know about us")
		frm.HowYouKnow.focus()
		return false
	}
	if (frm.details.value==null || frm.details.value=='' || frm.details.value.charAt(0) == ' '){
		alert("Please Enter your Comments/Details")
		frm.details.focus()
		return false
	}
	return true
	//frm.action="<?php bloginfo('template_directory'); ?>/thanks.php";
	frm.submit();

 }

