// JavaScript Document
function sendme(){
	window.open("","mapQuest"); 
    var a = window.setTimeout("document.form1.submit();",500); 
}
function show(id){
	if(document.getElementById(id).style.display!='block'){
		document.getElementById(id).style.display='block';
		document.getElementById("FCLogin").style.border='1px solid #CFAC58';
	}
	else{
		document.getElementById(id).style.display='none';
		document.getElementById("FCLogin").style.border='0px';		
	}
	    
}
function changeCountry(obj){
	if(obj.value!="US"){
		//document.getElementById("state"). = true;
		document.getElementById("state").selectedIndex = 0;
		document.getElementById("state").style.display = "none";
		document.getElementById("state").disabled = true;
		document.getElementById("state_txt").style.display="block";
	}
	else{
		document.getElementById("state").disabled = false;
		document.getElementById("state").style.display = "block";
		document.getElementById("state").selectedIndex = 4;
		document.getElementById("state_txt").style.display="none";
		document.getElementById("state_txt").value="";
	}
}

function check(obj){
	if(obj.name.value==""){
		alert("Please, fill the field 'Name'");
		obj.name.focus();
		return false;
	}
	if(obj.email.value==""){
		alert("Please, fill the field 'Email'");
		obj.email.focus();
		return false;
	}
	if(obj.tel.value==""){
		alert("Please, fill the field 'Phone'");
		obj.tel.focus();
		return false;
	}
	if(obj.city.value==""){
		alert("Please, fill the field 'City'");
		obj.city.focus();
		return false;
	}
	if(obj.state_txt.value=="" && obj.state.disabled==true){
		alert("Please, fill the field 'State'");
		obj.state_txt.focus();
		return false;
	}
	if(obj.comment.value==""){
		alert("Please, fill the field 'Comment'");
		obj.comment.focus();
		return false;
	}
	return true;
}

function client_login(obj){
	if(obj.n_business.value==""){
		alert("Please, fill the field 'Company'");
		obj.n_business.focus();
		return false;
	}
	if(obj.city.value==""){
		alert("Please, fill the field 'City'");
		obj.city.focus();
		return false;
	}
	if(obj.state_txt.value=="" && obj.state.disabled==true){
		alert("Please, fill the field 'State'");
		obj.state_txt.focus();
		return false;
	}
	if(obj.adress.value==""){
		alert("Please, fill the field 'Address'");
		obj.adress.focus();
		return false;
	}
	if(obj.tel.value==""){
		alert("Please, fill the field 'Phone'");
		obj.tel.focus();
		return false;
	}
	/*
	if(obj.fax.value==""){
		alert("Please, fill the field 'Fax'");
		obj.fax.focus();
		return false;
	}
	*/
	if(obj.email.value==""){
		alert("Please, fill the field 'Email'");
		obj.email.focus();
		return false;
	}
	if(obj.c_person.value==""){
		alert("Please, fill the field 'Contact person'");
		obj.c_person.focus();
		return false;
	}
	return true;
}

function inp_focus(obj){
	obj.style.background="#fff";
}
function inp_blur(obj){
	obj.style.background="#FEFEF5";
}

function openMap() {
  window.open("map.html","map","resizable=no,scrollbars=no,width=462,height=330");
}


