<!--
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.ic5858.com/search.jsp?sSearchWord=" + theForm.sSearchWord.value.toUpperCase() + "&q=" + theForm.sSearchWord.value.toUpperCase();
//	theForm.action = "http://www.ic2ic.com/search.jsp?sSearchWord=" + theForm.sSearchWord.value.toUpperCase();
    return(true);
    }
}

function bInputCheck(theForm) {

	if (theForm.sSearchWord.value.length < 3) {
		alert("搜索词语需3字符以上");
		theForm.sSearchWord.focus();
		return (false);
	}
	theForm.action = "buy_search.jsp?sSearchWord=" + theForm.sSearchWord.value.toUpperCase()  ; 
return(true);
}

function InputCheck(theForm) {

    	if (theForm.id.value.length == 0) {
		alert("请输入您的姓名");
		theForm.id.focus();
		return (false);
	}
	
	if (theForm.id.value.length < 3) {
		alert("姓名需3字符以上");
		theForm.id.focus();
		return (false);
	}

	if (theForm.email.value.length == 0) {
		alert("请输入您的电子邮箱");
		theForm.email.focus();
		return(false);
	}
	if (!EmailCheck(theForm.email.value)) {
		alert("电子邮箱错误，请检查");
		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);

}


//-->
