/*
function check()
{
        var val = document.join_form.name.value
        if(space(val) == 0){
        alert("½ÅÃ»ÀÚ¸¦ ÀÔ·ÂÇØÁÖ¼¼¿ä")
        return;}
        var val2 = document.join_form.product.value
        if(space(val2) == 0){
        alert("ÁÖ¿ä»ý»êÇ°¸ñÀ» ÀÔ·ÂÇØÁÖ¼¼¿ä")
        return;}
        var val3 = document.join_form.company.value
        if(space(val3) == 0){
        alert("È¸»ç¸íÀ» ÀÔ·ÂÇØÁÖ¼¼¿ä")
        return;}
        var val4 = document.join_form.employee.value
        if(space(val4) == 0){
        alert("Á¾¾÷¿ø¼ö¸¦ ÀÔ·ÂÇØÁÖ¼¼¿ä")
        return;}
		var val5 = document.join_form.addr.value
        if(space(val5) == 0){
        alert("ÁÖ¼Ò¸¦ ÀÔ·ÂÇØÁÖ¼¼¿ä")
        return;}
		var val6 = document.join_form.phone1.value
        if(space(val6) == 0){
        alert("ÀüÈ­¹øÈ£¸¦ ÀÔ·ÂÇØÁÖ¼¼¿ä")
        return;}
		var val7 = document.join_form.phone2.value
        if(space(val7) == 0){
        alert("ÀüÈ­¹øÈ£¸¦ ÀÔ·ÂÇØÁÖ¼¼¿ä")
        return;}
		var val8 = document.join_form.phone3.value
        if(space(val8) == 0){
        alert("ÀüÈ­¹øÈ£¸¦ ÀÔ·ÂÇØÁÖ¼¼¿ä")
        return;}
		var val9 = document.join_form.fax1.value
        if(space(val9) == 0){
        alert("ÆÑ½º¹øÈ£¸¦ ÀÔ·ÂÇØÁÖ¼¼¿ä")
        return;}
		var val10 = document.join_form.fax2.value
        if(space(val10) == 0){
        alert("ÆÑ½º¹øÈ£¸¦ ÀÔ·ÂÇØÁÖ¼¼¿ä")
        return;}
		var val11 = document.join_form.fax3.value
        if(space(val11) == 0){
        alert("ÆÑ½º¹øÈ£¸¦ ÀÔ·ÂÇØÁÖ¼¼¿ä")
        return;}
		var val12 = document.join_form.email.value
        if(space(val12) == 0){
        alert("E-mailÁÖ¼Ò¸¦ ÀÔ·ÂÇØÁÖ¼¼¿ä")
        return;}
		var val13 = document.join_form.kind.value
        if(space(val13) == 0){
        alert("ÀÎÁõÈñ¸Á±Ô°ÝÀ» ¼±ÅÃÇØÁÖ¼¼¿ä")
        return;}
		var val14 = document.join_form.hp1.value
        if(space(val14) == 0){
        alert("ÈÞ´ëÆù¹øÈ£¸¦ ÀÔ·ÂÇØÁÖ¼¼¿ä")
        return;}
		var val15 = document.join_form.hp2.value
        if(space(val15) == 0){
        alert("ÈÞ´ëÆù¹øÈ£¸¦ ÀÔ·ÂÇØÁÖ¼¼¿ä")
        return;}
		var val16 = document.join_form.hp3.value
        if(space(val16) == 0){
        alert("ÈÞ´ëÆù¹øÈ£¸¦ ÀÔ·ÂÇØÁÖ¼¼¿ä")
        return;}
        advice_form.submit();
}
*/
function mail_check(){
if(document.join_form.email_t.value=="easytechnic.com"){
	alert("ÀÌ ÀÌ¸ÞÀÏ ÁÖ¼Ò´Â »ç¿ëºÒ°¡ÀÔ´Ï´Ù\n´Ù½Ã ±âÀÔÇØÁÖ¼¼¿ä.");
	document.join_form.email_t.value="";
	document.join_form.email_t.focus();
	return;
}
}

function ssn_move(){
	if (document.join_form.jumin1.value.length==6){
		document.join_form.jumin2.focus();
	}
}


function IsPW(formname){
	var form = eval("document.join_form." + formname);
	
	if(form.value.length < 4 || form.value.length >8){
		return false;
	}
	
	for(var i=0; i<form.value.length; i++){
		var chr = form.value.substr(i,1);
		if((chr < '0' || chr > '9') && (chr < 'a' || chr > 'z') && (chr < 'A' || chr > 'Z')){
			return false;
		}
	}
	return true;
}

function IsNumber(formname){
	var form = eval("document.join_form." + formname);
	
	for(var i=0; i<form.value.length; i++){
		var chr = form.value.substr(i,1);
		if((chr < '0' || chr > '9')){
			return false;
		}
	}
	return true;
}

//ÁÖ¹Î¹øÈ£ °Ë»ö
a=Array(6);
b=Array(7);
function ssn_check(){
	if(document.join_form.jumin1.value.length==6 && document.join_form.jumin2.value.length==7){
		ssnum1 = document.join_form.jumin1.value;
		ssnum2 = document.join_form.jumin2.value;
		
		for (var i=0; i<6; i++){
			a[i] = parseInt(ssnum1.charAt(i));
		}
		
		for (var j=0; j<7; j++){
			b[j] = parseInt(ssnum2.charAt(j));
		}
		
		ssntot=(a[0]*2)+(a[1]*3)+(a[2]*4)+(a[3]*5)+(a[4]*6)+(a[5]*7)+(b[0]*8)+(b[1]*9)+(b[2]*2)+(b[3]*3)+(b[4]*4)+(b[5]*5);
		ssnave = 11 - (ssntot%11);
		if (ssnave==11){
			ssnave = 1;
		} else if(ssnave==10) {
			ssnave = 0;
		}
		
		if (ssnum2.substr(0, 1)!='1' && ssnum2.substr(0, 1)!='2' && ssnum2.substr(0, 1)!='3' && ssnum2.substr(0, 1)!='4' && ssnum2.substr(0, 1!='7')){
			alert ("ÁÖ¹Î¹øÈ£°¡ Æ²¸³´Ï´Ù.");
			document.join_form.jumin1.value = "";
			document.join_form.jumin2.value = "";
			document.join_form.jumin1.focus();
			return; //¿Ã¹Ù¸£Áö ¾ÊÀ½
		}
		
		if (b[6] != ssnave){
			alert ("ÁÖ¹Î¹øÈ£°¡ Æ²¸³´Ï´Ù.");
			document.join_form.jumin1.value = "";
			document.join_form.jumin2.value = "";
			document.join_form.jumin1.focus();
			return;
		}
	}else{
		alert ("ÁÖ¹Î¹øÈ£°¡ Æ²¸³´Ï´Ù.");
		document.join_form.jumin1.value = "";
		document.join_form.jumin2.value = "";
		document.join_form.jumin1.focus();
		return; //¿Ã¹Ù¸£Áö ¾ÊÀ½
	}
}

function OpenID(ref) {
	//var mid = eval(document.join_form.userid);
	if(!document.join_form.uid.value){
		alert("¾ÆÀÌµð¸¦ ÀÔ·ÂÇÏ¼¼¿ä");
		document.join_form.uid.focus();
		return;
	}else if(document.join_form.uid.value.length < 5 || document.join_form.uid.value.length > 14){
		alert("¾ÆÀÌµð°¡ ¿Ã¹Ù¸£Áö ¾Ê½À´Ï´Ù.");
		document.join_form.uid.focus();
		return;
	}else{
		ref = ref + "?id=" + document.join_form.uid.value;
		var win_left = (screen.width-640)/2;
		var win_top = (screen.height-480)/2;
		window.open(ref,"checkID",'width=350,height=160,status=no,top=' + win_top + ',left=' + win_left + '');
	}
}

function sendit(){
	if(document.join_form.uid.value.length < 5) {
		alert("¾ÆÀÌµð¸¦ Àû¾îÁÖ¼¼¿ä.");
		document.join_form.uid.focus();
		return;
	}
	if(document.join_form.name.value.length < 3) {
		alert("ÀÌ¸§À» Àû¾îÁÖ¼¼¿ä.");
		document.join_form.name.focus();
		return;
	}

	if(!IsPW(document.join_form.passwd.name)){
		alert("ºñ¹Ð¹øÈ£´Â 4-8ÀÚÀÇ ¿µ¹®ÀÚ³ª ¼ýÀÚ ¶Ç´Â Á¶ÇÕµÈ ¹®ÀÚ¿­ÀÌ¾î¾ß ÇÕ´Ï´Ù.");
		document.join_form.passwd.focus();
		document.join_form.passwd.select();
		return;
	}
	
	if(document.join_form.re_passwd.value.length < 5) {
		alert("ºñ¹Ð¹øÈ£ È®ÀÎÀ» Àû¾îÁÖ¼¼¿ä.");
		document.join_form.re_passwd.focus();
		return;
	}

	if(document.join_form.passwd.value!=document.join_form.re_passwd.value) {
		alert("ºñ¹Ð¹øÈ£¸¦ ´Ù½ÃÇÑ¹ø È®ÀÎÇØÁÖ¼¼¿ä.");
		document.join_form.passwd.value="";
		document.join_form.re_passwd.value="";
		document.join_form.passwd.focus();
		return;
	}

	if(document.join_form.jumin1.value=="") {
		alert("ÁÖ¹Îµî·Ï¹øÈ£¸¦ Àû¾îÁÖ¼¼¿ä.");
		document.join_form.jumin1.focus();
		return;
	}
	
	for (var i=0; i<document.join_form.jumin1.value.length; i++) {
		if (document.join_form.jumin1.value.charAt(i) < 0 || document.join_form.jumin1.value.charAt(i) > 9) {
			alert("ÁÖ¹Îµî·Ï¹øÈ£´Â ¼ýÀÚ¸¸ °¡´ÉÇÕ´Ï´Ù.");
			document.join_form.jumin1.focus();
			return;
		}
	}

	if(document.join_form.jumin2.value=="") {
		alert("ÁÖ¹Îµî·Ï¹øÈ£¸¦ Àû¾îÁÖ¼¼¿ä.");
		document.join_form.jumin2.focus();
		return;
	}

	for (var i=0; i<document.join_form.jumin2.value.length; i++) {
		if (document.join_form.jumin2.value.charAt(i) < 0 || document.join_form.jumin2.value.charAt(i) > 9) {
			alert("ÁÖ¹Îµî·Ï¹øÈ£´Â ¼ýÀÚ¸¸ °¡´ÉÇÕ´Ï´Ù.");
			document.join_form.jumin2.focus();
			return;
		}
	}

	if(document.join_form.phone1.value=="") {
		alert("¿¬¶ôÃ³¸¦ ÀÔ·ÂÇÏ¼¼¿ä.");
		document.join_form.phone1.focus();
		return;
	}
	if(document.join_form.phone2.value=="") {
		alert("¿¬¶ôÃ³¸¦ ÀÔ·ÂÇÏ¼¼¿ä.");
		document.join_form.phone2.focus();
		return;
	}
	if(document.join_form.phone3.value=="") {
		alert("¿¬¶ôÃ³¸¦ ÀÔ·ÂÇÏ¼¼¿ä.");
		document.join_form.phone3.focus();
		return;
	}

	if(document.join_form.email_h.value.length < 1) {
		alert("ÀÌ¸ÞÀÏÀ» Àû¾îÁÖ¼¼¿ä.");
		document.join_form.email_h.focus();
		return;
	}

	if(document.join_form.email_t.value=="") {
		alert("ÀÌ¸ÞÀÏÀ» ¼±ÅÃÁÖ¼¼¿ä.");
		document.join_form.email_t.focus();
		return;
	}

	/* Åë
	if((document.join_form.email.value.indexOf(".")==-1)||(document.join_form.email.value.indexOf("@")==-1)){
		alert("E-mailÀ» ´Ù½Ã È®ÀÎÇÏ¼¼¿ä.");
		document.join_form.email.focus();
		document.join_form.email.value="";
		return;
	}
	*/

	if(document.join_form.mobile1.value=="") {
		alert("ÈÞ´ëÆù ¹øÈ£¸¦ ÀÔ·ÂÇÏ¼¼¿ä.");
		document.join_form.mobile1.focus();
		return;
	}
	if(document.join_form.mobile2.value=="") {
		alert("ÈÞ´ëÆù ¹øÈ£¸¦ ÀÔ·ÂÇÏ¼¼¿ä.");
		document.join_form.mobile2.focus();
		return;
	}
	if(document.join_form.mobile3.value=="") {
		alert("ÈÞ´ëÆù ¹øÈ£¸¦ ÀÔ·ÂÇÏ¼¼¿ä.");
		document.join_form.mobile3.focus();
		return;
	}

	if(document.join_form.company_name.value.length < 1) {
		alert("È¸»ç¸íÀ» Àû¾îÁÖ¼¼¿ä.");
		document.join_form.company_name.focus();
		return;
	}

	if(document.join_form.zip.value.length < 1) {
		alert("¿ìÆí¹øÈ£¸¦ Àû¾îÁÖ¼¼¿ä.");
		document.join_form.zip.focus();
		return;
	}

	if(document.join_form.addr.value.length < 1) {
		alert("ÁÖ¼Ò¸¦ Àû¾îÁÖ¼¼¿ä.");
		document.join_form.addr.focus();
		return;
	}

	/*
	if(!IsNumber(document.join_form.phone1.name)) {
		alert("ÀüÈ­¹øÈ£´Â ¼ýÀÚ¿©¾ß ÇÕ´Ï´Ù.");
		document.join_form.phone1.focus();
		return;
	}
	*/
	document.join_form.submit();
}

function zipwindow(ref,what){
	var win_left = (screen.width-640)/2;
	var win_top = (screen.height-480)/2;
	ref = ref + "?what=" + what;	window.open(ref,'ZipWin','width=472,height=200,scrollbars=yes,left=0,top=0,directories=no,realizable=no,top=' + win_top + ',left=' + win_left + '');
}

function check()
{
        var val = document.join_form.name.value
        if(space(val) == 0){
        alert("½ÅÃ»ÀÚ¸¦ ÀÔ·ÂÇØÁÖ¼¼¿ä")
        return;}
        var val2 = document.join_form.product.value
        if(space(val2) == 0){
        alert("ÁÖ¿ä»ý»êÇ°¸ñÀ» ÀÔ·ÂÇØÁÖ¼¼¿ä")
        return;}
        var val3 = document.join_form.company.value
        if(space(val3) == 0){
        alert("È¸»ç¸íÀ» ÀÔ·ÂÇØÁÖ¼¼¿ä")
        return;}
        var val4 = document.join_form.employee.value
        if(space(val4) == 0){
        alert("Á¾¾÷¿ø¼ö¸¦ ÀÔ·ÂÇØÁÖ¼¼¿ä")
        return;}
		var val5 = document.join_form.addr.value
        if(space(val5) == 0){
        alert("ÁÖ¼Ò¸¦ ÀÔ·ÂÇØÁÖ¼¼¿ä")
        return;}
		var val6 = document.join_form.phone1.value
        if(space(val6) == 0){
        alert("ÀüÈ­¹øÈ£¸¦ ÀÔ·ÂÇØÁÖ¼¼¿ä")
        return;}
		var val7 = document.join_form.phone2.value
        if(space(val7) == 0){
        alert("ÀüÈ­¹øÈ£¸¦ ÀÔ·ÂÇØÁÖ¼¼¿ä")
        return;}
		var val8 = document.join_form.phone3.value
        if(space(val8) == 0){
        alert("ÀüÈ­¹øÈ£¸¦ ÀÔ·ÂÇØÁÖ¼¼¿ä")
        return;}
		var val9 = document.join_form.fax1.value
        if(space(val9) == 0){
        alert("ÆÑ½º¹øÈ£¸¦ ÀÔ·ÂÇØÁÖ¼¼¿ä")
        return;}
		var val10 = document.join_form.fax2.value
        if(space(val10) == 0){
        alert("ÆÑ½º¹øÈ£¸¦ ÀÔ·ÂÇØÁÖ¼¼¿ä")
        return;}
		var val11 = document.join_form.fax3.value
        if(space(val11) == 0){
        alert("ÆÑ½º¹øÈ£¸¦ ÀÔ·ÂÇØÁÖ¼¼¿ä")
        return;}
		var val12 = document.join_form.email.value
        if(space(val12) == 0){
        alert("E-mailÁÖ¼Ò¸¦ ÀÔ·ÂÇØÁÖ¼¼¿ä")
        return;}
		var val13 = document.join_form.kind.value
        if(space(val13) == 0){
        alert("ÀÎÁõÈñ¸Á±Ô°ÝÀ» ¼±ÅÃÇØÁÖ¼¼¿ä")
        return;}
		var val14 = document.join_form.hp1.value
        if(space(val14) == 0){
        alert("ÈÞ´ëÆù¹øÈ£¸¦ ÀÔ·ÂÇØÁÖ¼¼¿ä")
        return;}
		var val15 = document.join_form.hp2.value
        if(space(val15) == 0){
        alert("ÈÞ´ëÆù¹øÈ£¸¦ ÀÔ·ÂÇØÁÖ¼¼¿ä")
        return;}
		var val16 = document.join_form.hp3.value
        if(space(val16) == 0){
        alert("ÈÞ´ëÆù¹øÈ£¸¦ ÀÔ·ÂÇØÁÖ¼¼¿ä")
        return;}
        join_form.submit();
}

function space(str)///¿ä°Ô Áß¿ä
{
        var index,len
        while(true)
        {
                index = str.indexOf(" ");
                if (index == -1)
                break;
                len = str.length;
                str = str.substring(0,index) + str.substring((index + 1),len);
        }

        return str.length;
}

function MM_findObj(n, d) { //v4.0
	var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
		d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
	if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
	for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
	if(!x && document.getElementById) x=document.getElementById(n); return x;
}

function MM_showHideLayers() { //v3.0
	var i,p,v,obj,args=MM_showHideLayers.arguments;
	for (i=0; i<(args.length-2); i+=3) 
	if ((obj=MM_findObj(args[i]))!=null) { 
		v=args[i+2];
		if (obj.style) {
			obj=obj.style; v=(v=='1')?'visible':(v='0')?'hidden':v; 
		}
	obj.visibility=v; 
	}
}

function MM_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}

function MM_swapImgRestore() { //v3.0
  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}

function MM_findObj(n, d) { //v4.0
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && document.getElementById) x=document.getElementById(n); return x;
}

function MM_swapImage() { //v3.0
  var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
   if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}

function showSubMenu(no) {
	if (navigator.appName != 'Netscape' && document.all != null)	{
		if (document.all[no].style.display == "block"){
			document.all[no].style.display = "none";
			}else{
			document.all[no].style.display = "block";
			}
	}
}

function winclose(){
	self.close();
}

function quick_go(mode){
	form.submit();
}

function search(){
	if (document.search_forms.stringsearch.value==""){
		alert("°Ë»ö¾î¸¦ ÀÔ·ÂÇÏ¼¼¿ä");
		document.search_forms.stringsearch.focus();
		return;
	}
	document.search_forms.submit();
}

function popup1(url, w, h){
	pop = window.open(url, "popup", "status=no,resizable=no,scrollbars=yes,width=" + w + ",height=" + h);
	pop.focus();
}

function popup(url, w, h){
	pop = window.open(url, "popup", "status=no,resizable=no,scrollbars=no,width=" + w + ",height=" + h);
	pop.focus();
}






