<!--
var StartWin = null;
var Check = 0;

function sInputCheck(theForm) {

	if (theForm.sSearchWord.value.length < 3) {
		alert("検索語は3字以上にしてください。");
		theForm.sSearchWord.focus();
		return (false);
	}else{
	theForm.action = "http://www.icbaibai.com/search.jsp?sSearchWord=" + theForm.sSearchWord.value.toUpperCase() + "&q=" + theForm.sSearchWord.value.toUpperCase();
    return(true);
    }
}

function bInputCheck(theForm) {

	if (theForm.sSearchWord.value.length < 3) {
		alert("検索語は3字以上にしてください。");
		theForm.sSearchWord.focus();
		return (false);
	}
	theForm.action = "http://www.icbaibai.com/buy_search.jsp?sSearchWord=" + theForm.sSearchWord.value.toUpperCase()  ; 
return(true);
}

function InputCheck(theForm) {

	if (theForm.id.value.length < 3) {
		alert("名前は3字以上にしてください。");
		theForm.id.focus();
		return (false);
	}

	if (theForm.email.value.length == 0) {
		alert("E-mailを入力してください。");
		theForm.email.focus();
		return(false);
	}
	if (!EmailCheck(theForm.email.value)) {
		alert("E-mailをもう一度確認してください。");
		theForm.email.focus();
		return(false);
	}
	if (theForm.tel.value.length == 0) {
		alert("電話番号を入力してください。");
		theForm.tel.focus();
		return(false);
	}
	if (theForm.company.value.length == 0) {
		alert("会社名を入力してください。");
		theForm.company.focus();
		return(false);
	}


/*
	if(theForm.email.value.indexOf("@hanmail.net") + "" !== "-1") {
		alert("Ñ¸  Ù¸   Ô·  Ö¼.");
		theForm.email.focus();
		return(false);
	}
*/
}

function EmailCheck(checkStr) {
	Flag1 = 0;
	Flag2 = 0;
	for (i =0;i < checkStr.length; i++) {
		ch = checkStr.charAt(i);
		if ( ch == '@' )
			{ Flag1 = 1; }
		if ( ch == '.' )
		 	{ Flag2 = 1; }
	}
	if ( (Flag1 != 1) || (Flag2 != 1) ) {
		return(false);
	}
	else return(true);

}

function StringCheck(checkStr) {
	Flags1 = 0;
	for (i =0;i < checkStr.length; i++) {
		ch = checkStr.charAt(i);
		if ( ("0" <= ch) && (ch <= "9") || ("A" <= ch) && (ch <= "Z") || ("a" <= ch) && (ch <="z") )

		{  }

		else { Flags1 = Flags1 + 1 }

	}
	if ( Flags1 == 0 )
	{
		return(false);
	}
	else return(true);

}


//-->
