//<060802メール誤入力防止対応>
doubledots = 0;
//</060802メール誤入力防止対応>

function chkform(){
	with(document.frmcontact){

		// 製品のエラーチェック
		if(f01.value == ""){
			f01.focus();
			alert("please select a question item.");
			return false;
		}

		// 問合せ内容NULLチェック
		if(f02.value == ""){
			f02.focus();
			alert("Your comments is missing . Please enter your comments for the contact information.");
			return false;
		}
		if(f02.value.length > 4000){
			f02.focus();
			alert("The number of maximum characters is exceeded. Please fill it in within 4000 characters.");
			return false;
		}

		// 名前エラーチェック
		if(f03.value == ""){
			f03.focus();
			alert("Your name is missing . Please enter your name for the contact information.");
			return false;
		}
		f04.value = f03.value;
		// e-mailエラーチェック

		if(f05.value == ""){
			f05.focus();
			alert("Your email address is missing. Please enter email address for the contact information.");
			return false;
		}

		if(!chkmaildouble(f05.value)){
			f05.focus();
			alert("You can enter only one e-mail address.");
			return false;
		}
		if(!chkmailhalf(f05.value)){
			f05.focus();
			alert("Please enter your e-mail address with half-size characters. Moreover, the sign of !\"#$&'()*,/:;<>?[\]`{|} cannot be used.");
			return false;
		}
		if(!chkmail(f05.value)){
			f05.focus();
			alert("The e-mail address might not have been entered correctly. Please enter it again.");
			return false;
		}

		//<060802メール誤入力防止対応>
		if(!chkdoubledots(f05.value)){
			return false;
		}
		//</060802メール誤入力防止対応>
		
		// 会社名エラーチェック

		if(f06.value == ""){
			f06.focus();
			alert("Your company name is missing. Please enter your company name.");
			return false;
		}

//2006.01.05-追加------------------------------------------------------------------------------------
		// 電話番号エラーチェック

		if(f08.value == ""){
			f08.focus();
			alert("Your Telephone number is missing. Please enter your Telephone number.");
			return false;
		}
//2006.01.05-追加------------------------------------------------------------------------------------

		// 国名エラーチェック

		if(f11.value == ""){
			f11.focus();
			alert("The name of a country is missing. Please enter your the name of country.");
			return false;
		}
		
		//<060802メール誤入力防止対応>
		if(doubledots == 1){
			if(!confirm(" . period is continuously input to the e-mail address. May I transmit?")){
				f05.focus();
				return false;
			}
		}
		//</060802メール誤入力防止対応>

	}


	return true;
}

