<!--
var StartWin = null;
var Check = 0;

function aaa(){

document.frmMainSellModify.pname.value="";

}

function aaa1(){


document.frmMainBuyModify.pname.value="";
}

function InputCheck(theForm) {

if(theForm.pname.value.length == 0){
alert("제목(부품명)을 입력해 주세요");
		theForm.pname.focus();
		return (false);
	}
if(theForm.pname.value == 'PartNumber를  꼭 적어 주세요'){
alert("제목(부품명)을 입력해 주세요");
		theForm.pname.focus();
		return (false);
	}
if(theForm.pcontent.value.length == 0){
alert("상세 내용을 입력해 주세요");
		theForm.pcontent.focus();
		return (false);
	}
if (theForm.passwd.value.length < 4) {
		alert("비밀번호는 4자 이상 입력해 주십시요.");
		theForm.passwd.focus();
		return (false);
	}
if (!EmailCheck(theForm.email.value)) {
		alert("E-Mail주소를 정확히 입력해 주십시요.");
		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);

}

//-->