<!--
function MM_swapImgRestore() { //v3.0
  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}

function MM_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}

function MM_findObj(n, d) { //v4.01
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
}

function MM_swapImage() { //v3.0
  var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
   if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}


function setOptions(chosen) {
	var selbox = document.myform.opttwo;
	var a;
	selbox.options.length = 0;

	if (chosen == " ") {
		selbox.options[selbox.options.length] = new Option('Please select Area',' '); 
	}
	
	if (chosen == "1") {
		selbox.options[selbox.options.length] = new
		Option(' ');
	}
	
	if (chosen == "2") {
	  selbox.options[selbox.options.length] = new
	  Option('Select City');
	  
	  selbox.options[selbox.options.length] = new
	  Option('Los Angeles','los');
	}
	
	if (chosen == "3") {		
		selbox.options[selbox.options.length] = new
		Option('Select City');
	  
		selbox.options[selbox.options.length] = new
		Option('Berkeley','ber');
	  
		selbox.options[selbox.options.length] = new
		Option('Concord','Concord');
	  
		selbox.options[selbox.options.length] = new
		Option('Fremont','Fremont');
	  
		selbox.options[selbox.options.length] = new
		Option('Lafayette','Lafayette');
	  
	  
		selbox.options[selbox.options.length] = new
		Option('Oakland','oak');
	  
		selbox.options[selbox.options.length] = new
		Option('Pleasanton','Plea');
		selbox.options[selbox.options.length] = new
		Option('San Ramon','Ramon');
	
	   selbox.options[selbox.options.length] = new
		Option('Vallejo','Vallejo');  
	  
		selbox.options[selbox.options.length] = new
		Option('Walnut Creek','Creek');  
	 
	}
	
	if (chosen == "4") {
		selbox.options[selbox.options.length] = new
		Option(' ');
	}
	
	if (chosen == "5") {		
		selbox.options[selbox.options.length] = new
		Option('Select City');
		
		selbox.options[selbox.options.length] = new
		Option('Mill Valley','Mill');
	  
		selbox.options[selbox.options.length] = new
		Option('Novato','Novato');
	  
		selbox.options[selbox.options.length] = new
		Option('San Rafael','Rafael');
	  
		selbox.options[selbox.options.length] = new
		Option('Sausalito','Sausalito');  
	 
	}
	
	if (chosen == "6") {    	
		selbox.options[selbox.options.length] = new
		Option('Select City');
	
		selbox.options[selbox.options.length] = new
		Option('Daly City','Daly');
	
		selbox.options[selbox.options.length] = new
		Option('Los Altos','Altos');
	
		selbox.options[selbox.options.length] = new
		Option('Menlo Park','Menlo');
	
		selbox.options[selbox.options.length] = new
		Option('Palo Alto','Palo');
	
		selbox.options[selbox.options.length] = new
		Option('Redwood City','Redwood');
	
		selbox.options[selbox.options.length] = new
		Option('San Mateo','Mateo');
	}
	if (chosen == "7") {		
		selbox.options[selbox.options.length] = new
		Option('Select City');
	  
		selbox.options[selbox.options.length] = new
		Option('San Francisco','san');
	}
	
	if (chosen == "8") {		
		selbox.options[selbox.options.length] = new
		Option('Select City');
	  
		selbox.options[selbox.options.length] = new
		Option('Campbell','Cam');
	  
		selbox.options[selbox.options.length] = new
		Option('Mountain View','Mountain');
	  
		selbox.options[selbox.options.length] = new
		Option('San Jose','jose');
	  
		selbox.options[selbox.options.length] = new
		Option('Santa Clara','Santa');
	
		selbox.options[selbox.options.length] = new
		Option('Sunnyvale','Sunnyvale');
	  
	}
	
	if (chosen == "9") {
		selbox.options[selbox.options.length] = new
		Option(' ');
	}
	
	if (chosen == "10") {
		selbox.options[selbox.options.length] = new
		Option(' ');
	}
	
	if (chosen == "11") {
	  selbox.options[selbox.options.length] = new
	  Option('Select City');
	  
	  selbox.options[selbox.options.length] = new
	  Option('Beverly Hills','Beverly');
	  selbox.options[selbox.options.length] = new
	  Option('Santa Monica','Monica');  
	  
	}	
	
}





function navigate() {

	var nav;
	var url;
	nav=document.myform.opttwo.options[document.myform.opttwo.selectedIndex].value;

	if(nav=='san') {
		window.location.replace("allways-locksmith-sanfrancisco.html");
	}

	if(nav=='Palo') {
		window.location.replace("allways-locksmith-paloalto.html");	
	}

	if(nav=='Redwood') {
		window.location.replace("allways-locksmith-redwoodcity.html");	
	}

	if(nav=='Menlo') {
		window.location.replace("allways-locksmith-menlopark.html");	
	}

	if(nav=='Daly') {
		window.location.replace("allways-locksmith-dalycity.html");	
	}

	if(nav=='Mateo') {
		window.location.replace("allways-locksmith-sanmateo.html");	
	}

	if(nav=='Altos')
	{
		window.location.replace("allways-locksmith-losaltos.html");	
	}
	
	if(nav=='jose')
	{
		window.location.replace("allways-locksmith-sanjose.html");
	}
	
	if(nav=='Santa')
	{
		window.location.replace("allways-locksmith-santaclara.html");
	}
	
	if(nav=='Mountain')
	{
		window.location.replace("allways-locksmith-mountainview.html");
	}
	
	if(nav=='Sunnyvale')
	{
		window.location.replace("allways-locksmith-sunnyvale.html");
	}
	
	if(nav=='Cam')
	{
		window.location.replace("allways-locksmith-ampbell.html");
	}
	
	if(nav=='ber')
	{
		window.location.replace("allways-locksmith-berkely.html");
	}
	
	if(nav=='oak')
	{
		window.location.replace("allways-locksmith-oakland.html");
	}
	
	if(nav=='Plea')
	{
		window.location.replace("allways-locksmith-pleasanton.html");
	}
	
	if(nav=='Fremont')
	{
		window.location.replace("allways-locksmith-fremont.html");
	}
	
	if(nav=='Concord')
	{
		window.location.replace("allways-locksmith-concord.html");
	}
	
	if(nav=='Creek')
	{
		window.location.replace("allways-locksmith-walnutcreek.html");
	}
	
	if(nav=='Ramon')
	{
		window.location.replace("allways-locksmith-sanramon.html");
	}
	
	if(nav=='Lafayette')
	{
		window.location.replace("allways-locksmith-lafayette.html");
	}
	
	if(nav=='Vallejo')
	{
		window.location.replace("allways-locksmith-vallejo.html");
	}
	
	if(nav=='Rafael')
	{
		window.location.replace("allways-locksmith-sanrafael.html");
	}
	
	if(nav=='Sausalito')
	{
		window.location.replace("allways-locksmith-sausalito.html");
	}
	
	if(nav=='Mill')
	{
		window.location.replace("allways-locksmith-millvalley.html");
	}
	
	if(nav=='Novato')
	{
		window.location.replace("allways-locksmith-novato.html");
	}
	
	if(nav=='Monica')
	{
		window.location.replace("allways-locksmith-santamonica.html");
	}
	
	if(nav=='Beverly')
	{
		window.location.replace("allways-locksmith-beverlyhills.html");
	}
	
	if(nav=='los')
	{
		window.location.replace("allways-locksmith-losangels.html");
	}

}

function verifymyform1(form)
{     
	if(document.myform1.name.value=="")
     {
        alert("Please Fill The First Name field");
       document.myform1.name.focus();
	   return(false);
     }
	 if(document.myform1.email.value=="")
     {
        alert("Please Give your Email Id");
       document.myform1.email.focus();
		return(false);
     }
	
	 
	pass=document.myform1.email.value.indexOf('@',0);
	pass1=document.myform1.email.value.indexOf('.',0);
	
    if((pass==-1)||(pass1==-1))
	{
	  alert("Invalid Email Id");
	  document.myform1.email.focus();
	  return(false);
	}
	
	 if(document.myform1.job.value=="")
     {
        alert("Please Give your Job");
       document.myform1.job.focus();
		return(false);
     }
	 
	 if(document.myform1.level.value=="")
     {
        alert("Please Give your Urgency level");
       document.myform1.level.focus();
		return(false);
     }
	
    return(true);
}

function verifymyform2(f1)
{     
	if(document.f1.fname.value== "")
     {
        alert("Please Fill The First Name field");
       document.f1.fname.focus();
	   return(false);
     }
	 
	 if(document.f1.lname.value== "")
     {
        alert("Please Fill The Last Name field");
       document.f1.lname.focus();
	   return(false);
     }
	 
	 if(document.f1.zip.value=="")
     {
        alert("Please Fill Zip field");
       document.f1.zip.focus();
		return(false);
     }
	    
     if(document.f1.email2.value=="")
     {
        alert("Please Give your Email Id");
       document.f1.email2.focus();
		return(false);
     }
	 
	pass=document.f1.email2.value.indexOf('@',0);
	pass1=document.f1.email2.value.indexOf('.',0);
	
    if((pass==-1)||(pass1==-1))
	{
	  alert("Invalid Email Id");
	  document.f1.email2.focus();
	  return(false);
	}
	
 	if(document.f1.pnum.value=="")
    {
       alert("Please Give your Phone Number");
       document.f1.pnum.focus();
		return(false);
    }
    return(true);
}

//-->

