
var alertmsg="Please complete the following fields\n\n"
var alertSmsg="Por favor complete la información siguiente\n\n"
var alertCmsg="请完成以下信息\n\n"
//var alertCmsg = "&#35831;&#23436;&#25104;&#20197;&#19979;&#20449;&#24687;\n\n"
var alertKmsg="다음 입력란을 작성하시기 바랍니다\n\n"

function checkName()  {	
	if (document._Quote.ContactName.value == "")  
	{
		alertmsg=alertmsg+"Contact Name\n";		
	}
}

function checkCompany()  {	
	if (document._Quote.Company.value == "")  
	 {
		alertmsg=alertmsg+"Company\n";		
	}
}

function checkEmployeeNum()  {	
	if (document._Quote.EmployeeNum.options[document._Quote.EmployeeNum.selectedIndex].value == "0") 
	{
		alertmsg=alertmsg+"# of Employees\n";		
	}
}


function checkAddress()  {	
	if (document._Quote.Address.value == "")  
	{
		alertmsg=alertmsg+"Address\n";		
	}
}


function checkCity()  {	
	if (document._Quote.City.value == "")  
	{
		alertmsg=alertmsg+"City\n";		
	}
}

function checkState()  {	
	//if (document._Quote.State.value == "") 
	if (document._Quote.State.options[document._Quote.State.selectedIndex].value == "0") 
	{
		alertmsg=alertmsg+"State\n";		
	}
}


function checkPhone()  {	
	if (document._Quote.PhoneNum.value == "")  
	{
		alertmsg=alertmsg+"Phone Number\n";		
	}
}

function checkEmail()  {	
	if (document._Quote.Email.value == "")  
	{
		alertmsg=alertmsg+"Email\n";		
	}
}


function submitForm() {	
	checkName();
	checkCompany();
	checkEmployeeNum();
	checkAddress();
	checkCity();
	checkState();
	checkPhone();
	checkEmail();

	if (alertmsg!="Please complete the following fields\n\n") {
		alert(alertmsg);
		alertmsg="Please complete the following fields\n\n";
		//document.location="#begin";
		//return false;
	}	else {
		alert("Your request is being submitted.  You will be contacted soon.");
		document._Quote.submit();
//		window.location.reload();
	}
}

function checkSName()  {	
	if (document._Quote.ContactName.value == "")  
	{
		alertSmsg=alertSmsg+"Nombre\n";		
	}
}

function checkSCompany()  {	
	if (document._Quote.Company.value == "")  
	 {
		alertSmsg=alertSmsg+"Compañía\n";		
	}
}

function checkSEmployeeNum()  {	
	if (document._Quote.EmployeeNum.options[document._Quote.EmployeeNum.selectedIndex].value == "0") 
	{
		alertSmsg=alertSmsg+"Empleado\n";		
	}
}


function checkSAddress()  {	
	if (document._Quote.Address.value == "")  
	{
		alertSmsg=alertSmsg+"Dirección\n";		
	}
}


function checkSCity()  {	
	if (document._Quote.City.value == "")  
	{
		alertSmsg=alertSmsg+"Ciudad\n";		
	}
}

function checkSState()  {	
	//if (document._Quote.State.value == "") 
	if (document._Quote.State.options[document._Quote.State.selectedIndex].value == "0") 
	{
		alertSmsg=alertSmsg+"Estado\n";		
	}
}


function checkSPhone()  {	
	if (document._Quote.PhoneNum.value == "")  
	{
		alertSmsg=alertSmsg+"Teléfono\n";		
	}
}

function checkSEmail()  {	
	if (document._Quote.Email.value == "")  
	{
		alertSmsg=alertSmsg+"E-mail\n";		
	}
}

function submitSpanishForm() {	
	checkSName();
	checkSCompany();
	checkSEmployeeNum();
	checkSAddress();
	checkSCity();
	checkSState();
	checkSPhone();
	checkSEmail();

	if (alertSmsg!="Por favor complete la información siguiente\n\n") {
		alert(alertSmsg);
		alertSmsg="Por favor complete la información siguiente\n\n";
	}	else {
		alert("Su petición está siendo presentada. Se le pondrán en contacto pronto.");
		document._Quote.submit();
//		window.location.reload();
	}
}

function checkCName()  {	
	if (document._Quote.ContactName.value == "")  
	{
		alertCmsg=alertCmsg+"姓名 \n";		
	}
}

function checkCCompany()  {	
	if (document._Quote.Company.value == "")  
	 {
		alertCmsg=alertCmsg+"公司 \n";		
	}
}

function checkCEmployeeNum()  {	
	if (document._Quote.EmployeeNum.options[document._Quote.EmployeeNum.selectedIndex].value == "0") 
	{
		alertCmsg=alertCmsg+"員工 \n";		
	}
}


function checkCAddress()  {	
	if (document._Quote.Address.value == "")  
	{
		alertCmsg=alertCmsg+"地址\n";		
	}
}


function checkCCity()  {	
	if (document._Quote.City.value == "")  
	{
		alertCmsg=alertCmsg+"市\n";		
	}
}

function checkCState()  {	
	//if (document._Quote.State.value == "") 
	if (document._Quote.State.options[document._Quote.State.selectedIndex].value == "0") 
	{
		alertCmsg=alertCmsg+"州\n";		
	}
}


function checkCPhone()  {	
	if (document._Quote.PhoneNum.value == "")  
	{
		alertCmsg=alertCmsg+"電話\n";		
	}
}

function checkCEmail()  {	
	if (document._Quote.Email.value == "")  
	{
		alertCmsg=alertCmsg+"電子信件\n";		
	}
}


function submitChineseForm() {	
	checkCName();
	checkCCompany();
	checkCEmployeeNum();
	checkCAddress();
	checkCCity();
	checkCState();
	checkCPhone();
	checkCEmail();

	if (alertCmsg!="请完成以下信息\n\n") {
		alert(alertCmsg);
		alertCmsg="请完成以下信息\n\n";
	}	else {
		alert("謝謝您填寫報價申請表。\n\n近期內我們的專業代表將與你聯絡！\n\n");
		//alert("您的请求递交。  您很快将与联系。");
		document._Quote.submit();
//		window.location.reload();
	}
}

function checkKName()  {	
	if (document._Quote.ContactName.value == "")  
	{
		alertKmsg=alertKmsg+"담당자 이름\n";		
	}
}

function checkKCompany()  {	
	if (document._Quote.Company.value == "")  
	 {
		alertKmsg=alertKmsg+"회사\n";		
	}
}

function checkKEmployeeNum()  {	
	if (document._Quote.EmployeeNum.options[document._Quote.EmployeeNum.selectedIndex].value == "0") 
	{
		alertKmsg=alertKmsg+"직원 수\n";		
	}
}


function checkKAddress()  {	
	if (document._Quote.Address.value == "")  
	{
		alertKmsg=alertKmsg+"주소\n";		
	}
}


function checkKCity()  {	
	if (document._Quote.City.value == "")  
	{
		alertKmsg=alertKmsg+"시\n";		
	}
}

function checkKState()  {	
	//if (document._Quote.State.value == "") 
	if (document._Quote.State.options[document._Quote.State.selectedIndex].value == "0") 
	{
		alertKmsg=alertKmsg+"주\n";		
	}
}


function checkKPhone()  {	
	if (document._Quote.PhoneNum.value == "")  
	{
		alertKmsg=alertKmsg+"전화 번호\n";		
	}
}

function checkKEmail()  {	
	if (document._Quote.Email.value == "")  
	{
		alertKmsg=alertKmsg+"전자 메일 주소\n";		
	}
}

function submitKoreanForm() {	
	checkKName();
	checkKCompany();
	checkKEmployeeNum();
	checkKAddress();
	checkKCity();
	checkKState();
	checkKPhone();
	checkKEmail();

	if (alertKmsg!="다음 입력란을 작성하시기 바랍니다\n\n") {
		alert(alertKmsg);
		alertKmsg="다음 입력란을 작성하시기 바랍니다\n\n";
	}	else {
		alert("귀하의 요청이 제출되고있다. 곧 연락 드리겠습니다");
		document._Quote.submit();
//		window.location.reload();
	}
}

function submitFormNOValidation() {	
		alert("Your request is being submitted.  You will be contacted soon.");
		document._Quote.submit();
}