function movepic(img_name,img_src)
 {
    document[img_name].src=img_src;
 }
 function validate()
 {
     var found=0;
     if((document.frm.email.value.indexOf("@")==-1)||(document.frm.email.value.indexOf(".")==-1))
     {
       found=1
     }
     if(document.frm.email.value.indexOf(" ")>0)
     {
     found=1
     }
     if(found==1)
     {
      alert("An email address is required for this feature.  Please enter your valid email address to get your login details.");
      document.frm.email.focus();
      return false;
     }
     if (document.frm.email.value.length==0)
     {
      alert("An email address is required for this feature.  Please enter your valid email address to get your login details.");
      return false;
     }
     if(document.frm.email.value==false)
     {
      alert("An email address is required for this feature.  Please enter your valid email address to get your login details.");
      document.frm.email.focus();
      return false;
     }
   return true;
 }

 function gofocus(){
   document.frm.email.focus();
 }

function func_redirect_to_login(){
	var obj_form = document.frm;
	obj_form.action="ownerreglog.php";	
	obj_form.submit();	
}


function func_redirect_to_trv_login(){
	var obj_form = document.frm;
	obj_form.action="travelerreglog.php";	
	obj_form.submit();	
}




