
function find_zipcode() {
   window.open("find_zipcode.asp", "find_zipcode","resizable=yes,x=150,y=50,width=460,height=250,scrollbars=1" );
}


function remove_zipcode() { 
  document.online.zip1.value = "";
  document.online.zip2.value = "";
  document.online.address1.value = "";
  document.online.address2.value = "";
}


function number() {
if((event.keycode<48)||(event.keycode>57)){
alert("¼ýÀÚ¸¸ ÀÔ·Â°¡´É ÇÕ´Ï´Ù.")
event.returnvalue=false}
}

function check() {
var str;

str = document.online.name.value;
if(str==""){
alert("È¸»ç¸íÀ» ÀÔ·ÂÇØ ÁÖ¼¼¿ä.");
document.online.name.focus();
return true;
}

str = document.online.tel.value;
if(str==""){
alert("ÀüÈ­¹øÈ£¸¦ ÀÔ·ÂÇØ ÁÖ¼¼¿ä.");
document.online.tel.focus();
return true;
}

str = document.online.fax.value;
if(str==""){
alert("ÆÑ½º¹øÈ£À» ÀÔ·ÂÇØ ÁÖ¼¼¿ä.");
document.online.fax.focus();
return true;
}

str = document.online.attn.value;
if(str==""){
alert("´ã´çÀÚ¸íÀ» ÀÔ·ÂÇØ ÁÖ¼¼¿ä.");
document.online.attn.focus();
return true;
}

str = document.online.email.value;
if(str==""){
alert("E-mailÁÖ¼Ò¸¦ ÀÔ·ÂÇØ ÁÖ¼¼¿ä.");
document.online.email.focus();
return true;
}

str1 = document.online.zip1.value;
str2 = document.online.zip2.value;
  if(str1 == "" || str2 == "") {
   alert("¿ìÆí¹øÈ£¸¦ Á¤È®È÷ ÀÔ·ÂÇØ ÁÖ¼¼¿ä.");
   return true;
}

str = document.online.address1.value;
if(str==""){
alert("ÁÖ¼Ò¸¦ ÀÔ·ÂÇØ ÁÖ¼¼¿ä.");
document.online.address1.focus();
return true;
}

str = document.online.address2.value;
if(str==""){
alert("»ó¼¼ÁÖ¼Ò¸¦ ÀÔ·ÂÇØ ÁÖ¼¼¿ä.");
document.online.address2.focus();
return true;
}

str = document.online.business.value;
if(str==""){
alert("ºñÁö´Ï½ºÅ¸ÀÔÀ» ÀÔ·ÂÇØ ÁÖ¼¼¿ä.");
document.online.business.focus();
return true;
}

str = document.online.content.value;
if(str==""){
alert("»ó¼¼³»¿ëÀ» ÀÔ·ÂÇØ ÁÖ¼¼¿ä.");
document.online.content.focus();
return true;
}

document.online.submit(); 
return true;
}


function nextfocus(arg,len,nextname){
if(arg.value.length==len){
nextname.focus()
return
}
}

