<!--
var StartWin = null;
var Check = 0;

function sInputCheck(theForm) {

	if (theForm.sSearchWord.value.length < 3) {
		alert("Searchword must be 3 letters.");
		theForm.sSearchWord.focus();
		return (false);
	}else{
	if (hanchk(theForm.sSearchWord.value) == 2 ) {
	alert("Invalid search word! \nPlease use the alphabet, numbers, symbols(+,-,_./...).");
	theForm.sSearchWord.focus();
	return (false);
}
	theForm.action = "http://www.ic2ic.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("Searchword must be 3 letters");
		theForm.sSearchWord.focus();
		return (false);
	}
	theForm.action = "http://www.ic2ic.com/buy_search.jsp?sSearchWord=" + theForm.sSearchWord.value.toUpperCase()  ; 
return(true);
}

function InputCheck(theForm) {

    	if (theForm.id.value.length == 0) {
		alert("Input your name");
		theForm.id.focus();
		return (false);
	}
	
	if (theForm.id.value.length < 3) {
		alert("Name must be 3 letters");
		theForm.id.focus();
		return (false);
	}

	if (theForm.email.value.length == 0) {
		alert("Input your e-mail");
		theForm.email.focus();
		return(false);
	}
	if (!EmailCheck(theForm.email.value)) {
		alert("e-mail error, check please.");
		theForm.email.focus();
		return(false);
	}
	if (theForm.tel.value.length == 0) {
		alert("Input your telephone");
		theForm.tel.focus();
		return(false);
	}
	if (theForm.company.value.length == 0) {
		alert("Input your company");
		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);

}


function hanchk(str){

   for(i = 0 ; i < str.length ;i++)
   {
      var code = str.charCodeAt(i);
      var ch= str.substr(i,1).toUpperCase();
      code= parseInt(code);
      if((ch < "0" || ch > "9") && (ch <"A" || ch >"Z") && ((code >255) || (code < 0)))
        return 2;
   }
	return 1;
}
//-->

