2012. 4. 22. 17:20

function CheckEmail(){
str=document.musimm.email.value
var t = escape(str);
//sung2li@naver.com 일때와 sung2li@naver.co.kr일때의 형식 체크
if(t.match(/^(\w+)@(\w+)[.](\w+)$/ig) == null && t.match(/^(\w+)@(\w+)[.](\w+)[.](\w+)$/ig) == null){
alert("E-mail 형식이 잘못되었습니다.");
document.musimm.email.focus();
} else {
return true;
}
}



Posted by k1rha