<!--
var StartWin = null;
var Check = 0;

function InputCheck(theForm) {

	if (theForm.id.value.length < 4) {
		alert("ID must be 4 letters");
		theForm.id.focus();
		return (false);
	}
		if (theForm.id.value.length > 15) {
		alert("ID is less than 15 letters");
		theForm.id.focus();
		return (false);
	}
 	if (StringCheck(theForm.id.value)) {
              	alert("ID is only, alphabet or nubmer.");
              	theForm.id.focus();
              	return(false);
	}
	if ((theForm.passwd.value.length == 0 ) || (theForm.repasswd.value.length == 0 )) {
		alert("Input your password.");
		theForm.passwd.focus();
		return(false);
	}
	if (theForm.passwd.value.length < 4) {
		alert("Password must be 4 letters.");
		theForm.passwd.focus();
		return (false);
	}
	if (theForm.passwd.value.length >16) {
		alert("Password must be 16 letters.");
		theForm.passwd.focus();
		return (false);
	}
 	if (StringCheck(theForm.passwd.value)) {
		alert("That's not permitted. Please input again.");
		theForm.passwd.focus();
		return(false);
	}
	if (theForm.passwd.value != theForm.repasswd.value) {
		alert("Password not exactly.");
		theForm.repasswd.focus();
		return (false);
	}

	if (theForm.country.value == "1") {
		alert("Country not exactly.");
		theForm.country.focus();
		return (false);
	}
		if (theForm.btype.value == "0") {
		alert(" Primary Business Type not exactly.");
		theForm.btype.focus();
		return (false);
	}

/*
	if (theForm.jubinum.value.length != 0) {
		if (theForm.jubistate[1].checked) {
			var rn;
			rn=theForm.jubinum.value;
			var sum=0;
			for(i=0;i<8;i++) { sum+=rn.substring(i,i+1)*(i+2); }
			for(i=8;i<12;i++) { sum+=rn.substring(i,i+1)*(i-6); }
			sum=11-(sum%11);
			if (sum>=10) { sum-=10; }
              		if (rn.substring(12,13) != sum || (rn.substring(6,7) !=1 && rn.substring(6,7) != 2)) {
	    			alert("Number error, check please !.");
	    			theForm.jubinum.focus();
	    			return false;
			}
		}
		else if (theForm.jubistate[0].checked) {
			var strNumb;
			strNumb=theForm.jubinum.value;
  	
			if (strNumb.length != 10) {
				alert("Number error, check please !");
				theForm.jubinum.focus();
				return false;
			}
        
			sumMod = 0;
			sumMod += parseInt(strNumb.substring(0,1));
			sumMod += parseInt(strNumb.substring(1,2)) * 3 % 10;
			sumMod += parseInt(strNumb.substring(2,3)) * 7 % 10;
			sumMod += parseInt(strNumb.substring(3,4)) * 1 % 10;
			sumMod += parseInt(strNumb.substring(4,5)) * 3 % 10;
			sumMod += parseInt(strNumb.substring(5,6)) * 7 % 10;
			sumMod += parseInt(strNumb.substring(6,7)) * 1 % 10;
			sumMod += parseInt(strNumb.substring(7,8)) * 3 % 10;
			sumMod += Math.floor(parseInt(strNumb.substring(8,9)) * 5 / 10);
			sumMod += parseInt(strNumb.substring(8,9)) * 5 % 10;
			sumMod += parseInt(strNumb.substring(9,10));
    
			if (sumMod % 10 != 0) {
				alert("Number error, check please !");
				theForm.jubinum.focus();
				return false;
			}
		}
	} else {
		alert("Input your company name");
		theForm.jubinum.focus();
		return(false);
	}
*/

		if (theForm.cname.value.length == 0) {
			alert("Input your company name");
			theForm.cname.focus();
			return(false);
		}
		
		if (!SpecialCheck(theForm.cname.value)) {
          alert(" ( ' ) is not apply");
		theForm.cname.focus();
		return(false);
	}
		if (theForm.name.value.length == 0) {
			alert("Input your name");
			theForm.name.focus();
			return(false);
		}

     	if (!SpecialCheck(theForm.name.value)) {
          alert(" ( ' ) is not apply");
          	theForm.name.focus();
          	return(false);
	
	}

	if (theForm.tel.value.length == 0) {
		alert("Input your telephone");
		theForm.tel.focus();
		return(false);
	}

	if (theForm.addr.value.length == 0) {
		alert("Input your address");
		theForm.addr.focus();
		return(false);
	}
	if (!SpecialCheck(theForm.addr.value)) {
                alert(" ( ' ) is not apply");
              	theForm.addr.focus();
              	return(false);
	
	}
	
	if (theForm.email.value.length == 0) {
		alert("Input your e-mail");
		theForm.email.focus();
		return(false);
	}
	if (theForm.email.value.length < 6) {
		alert("e-mail error, check please.");
		theForm.email.focus();
		return(false);
	}
	
	if (!EmailCheck(theForm.email.value)) {
		alert("e-mail error, check please.");
		theForm.email.focus();
		return(false);
	}
	
	if (!SpecialCheck(theForm.intro.value)) {
                alert(" ( ' ) is not apply");
              	theForm.intro.focus();
              	return(false);
	
	}

/*
	if(theForm.email.value.indexOf("@hanmail.net") + "" !== "-1") {
		alert("ÇÑ¸ÞÀÏÀ» Á¦¿ÜÇÑ ´Ù¸¥ ¸ÞÀÏ °èÁ¤À¸·Î ÀÔ·Â ÇØ ÁÖ¼¼¿ä.");
		theForm.email.focus();
		return(false);
	}
*/
	if(Check != 1) {
		alert("please, id check.");
		theForm.id.focus();
		return(false);
	}
}

function CheckForm(theForm) {



	if (theForm.coname.value.length == 0) {
		alert("Input your Company Name ");
		theForm.coname.focus();
		return(false);
	}

	if (theForm.email.value.length == 0) {
		alert("Input your email");
		theForm.email.focus();
		return(false);
	}
	
	
	if (theForm.tel.value.length == 0) {
		alert("Input your Telephone Number  ");
		theForm.tel.focus();
		return(false);
	}


	
	if (theForm.btype.value== '0') {
		alert("your Primary Business Type Selected!");
		theForm.btype.focus();
		return(false);
	}



	if (!EmailCheck(theForm.email.value)) {
		alert("Input your email address");
		theForm.email.focus();
		return(false);
	}
	return (true);

}

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 SpecialCheck(checkStr) {
	Flag1 = 0;
	Flag2 = 0;
	for (i =0;i < checkStr.length; i++) {
		ch = checkStr.charAt(i);
		if ( ch == "'" )
			{ Flag1 = 1; }

	}
	if ( (Flag1 != 1) ) {
		return(true);
	}
	else return(false);

}

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 chkid() {

	Check = 1;

	if (document.frmJoin.id.value.length == 0) {
		alert("Input member id.");
		document.frmJoin.id.focus();
		return;
	}
	if (document.frmJoin.id.value.length < 4) {
		alert("ID must be 4 letters.");
		document.frmJoin.id.focus();
		return;
	}
 	if (StringCheck(document.frmJoin.id.value)) {
			alert("Error, check please !");
			document.frmJoin.id.focus();
			return;
	}

	if(StartWin != null) {StartWin.close();}
	StartWin = window.open("chkid.jsp?id="+document.frmJoin.id.value, "chkid" , "scrollbars=no,toolbar=no,location=no,directories=no,width=300, height=200,resizable=no,mebar=no,left=250,top=65");
	StartWin.focus();
}

function OpenZipcode(){
  window.open("zipcode.cgi?form=frmJoin&zip1=zip1&zip2=zip2&address=addr1","ZipWin","width=400,height=250,scrollbars=no,menubar=no,status=no,resizable=no");
}



//-->
