<!--
		//°ø¹éÀ» Á¦¿ÜÇÑ ±æÀÌ Ã¼Å©ÇÔ¼ö
		function checkstr(stroriginal, strfind, strchange){
				var position,strori_length;
				position = stroriginal.indexOf(strfind);

				while(position != -1){
					stroriginal = stroriginal.replace(strfind,strchange);
					position = stroriginal.indexOf(strfind);
				}
				strori_length = stroriginal.length;
				return strori_length;
		}	

			//id ¿µ¹®ÀÚ ¹× ¼ýÀÚ Ã¼Å©
		function chkid(id,snum,lnum,astr){
				str = id.value;
				len = str.length;
				if(len < snum || len > lnum){
					alert(astr + "´Â"+ snum + "~" + lnum+ "ÀÚ·Î ÀÔ·ÂÇÏ¿© ÁÖ¼¼¿ä");
					return false;
				}

				for(i = 0; i<len; i++){
					ch = str.charAt(i);
						if( (ch >='0' && ch <= '9') || (ch >= 'a' && ch <= 'z') || (ch >= "A" && ch<= 'Z')){
						continue;
						}else{
							alert(astr + "¿¡´Â ¿µ¹®,¼ýÀÚ¸¸ »ç¿ëÇÏ½Ç¼ö ÀÖ½À´Ï´Ù");
							return false;
						}
				}
		return true;
		}

		//½Ç¸íÀÇ ÇÑ±Û Ã¼Å©
			function checkname(str){
				len = str.length;
				for(i = 0; i < len; i++){
					ch  =str.charAt(i);
					if ( (ch >= '0' &&ch <='9') || (ch >= 'a' && ch <='z')){
						alert("½Ç¸íÀº ÇÑ±Û·Î ÀÛ¼ºÇÏ¼¼¿ä.");
						return false;
					}
				}
				return true;
			}

				//ÁÖ¹Î¹øÈ£ Ã¼Å©
			function check_ssn(){
				var chk = "234567892345";
				var tot = 0;
				var rst = 0;
				reg_no = document.fo.jumin1.value + document.fo.jumin2.value;
				for(var i = 0 ; i < reg_no.length - 1 ; i++ ) {
					tot = tot + parseInt(reg_no.substring(i,i+1)) * parseInt(chk.substring(i,i+1));
				}
					rst = 11 - (tot % 11);
					
					if (rst== 10 || rst == 11){
							rst = rst -10;
					}
				
					if(parseInt(reg_no.substring(12,13)) !=rst ) {
							alert("ÁÖ¹Î¹øÈ£¸¦ Á¤È®È÷ ÀÔ·ÂÇÏ¿ä ÁÖ¼¼¿ä,! ");
							return false;
					}
			return true;
			}

			//E-mail Ã¼Å©ÇÔ¼ö
			function checkemail(strobj){
				remail = strobj.match(/([a-za-z0-9._-]+@[a-za-z0-9._-]+\.[a-za-z0-9._-]+)/gi);

				if(!remail){
					alert("ÀÌ¸ÞÀÏ ÁÖ¼Ò¸¦ Á¤È®È÷ Àû¾îÁÖ¼¼¿ä");
					return false;
				}
			return true;
			}

			//ÀÌ¸ÞÀÏ daum.net , hanmail.net Ã¼Å©
			function fcheck_usr_email() {
			
				email = document.fo.email.value;
				usr_email = email.toLowerCase();

				atpos = usr_email.indexOf("hanmail.net",1) + usr_email.indexOf("daum.net",1) 
				if ( atpos != -2 ) 
					{ 
						alert("E-mail ÁÖ¼Ò¿¡ ÇÑ¸ÞÀÏ(hanmail.net/daum.net) °èÁ¤Àº ÀÔ·ÂÀÌ ºÒ°¡ÇÕ´Ï´Ù.") 
						document.fo.email.select();
						return true;
				}
			}
			

				//¾ÆÀÌµð Áßº¹°Ë»ç »õÃ¢¶ç¿ì±â
			function idwin(theurl, wintitle, attributes, width, height) {
					strid = document.fo.userid.value;

					if(checkstr(strid," ","")==0) {
							alert("Áßº¹°Ë»çÇÒ ¾ÆÀÌµð¸¦ ÀÔ·ÂÇÏ¿© ÁÖ¼¼¿ä.");
							document.fo.userid.focus();
					}else if(!chkid(document.fo.userid,4,12,"ID")) {
							document.fo.userid.select();
					}else {
							if (window.screen) {
									var ah = screen.availheight - 30;
									var aw = screen.availwidth - 10;
									var xc = (aw - width) / 2;
									var yc = (ah - height) / 2;
									features = attributes + ",";
									features += "width=" + width + ",height=" +height;
									features	+=",left=" + xc + ",top="+ yc;
								}
							window.open(theurl + "?userid=" + strid,wintitle,features);
					}
			}

				//¾ÆÀÌµð Áßº¹Ã¼Å© ¸®ÅÏ°ª È®ÀÎ
			function set_dupld(rtn, val) {
					document.fo.userid.value = val;
					document.fo.userid.select();
					document.fo.user_idcheck.value = rtn;
					document.fo.passwd.focus();
			}

			//¿ìÆí¹øÈ£ Ã£±â »õÃ¢¶ç¿ì±â
			function zip_search(theurl,wintitle,attributes,width,height){
				if (window.screen){
						var ah = screen.availheight - 30;
						var aw = screen.availwidth -10;
						var xc = (aw - width) /2;
						var yc = (ah - height)/2;

						features = attributes + ",";
						features +="width="+ width + ", height=" +height;
						features +=",left="+xc + ", top="+yc;
				}
				window.open(theurl,wintitle,features);
			}

			function BirthValue(jumin)  {
				var y = parseInt(jumin.value.substring(0,2))
					if (y > 10) {
						document.fo.birthyear.value = "19" + jumin.value.substring(0,2);
					} else {
						document.fo.birthyear.value = "20" + jumin.value.substring(0,2);
					}
				document.fo.birthmonth.value=jumin.value.substring(2,4);
				document.fo.birthday.value=jumin.value.substring(4,6);
			}

			function SexValue(jumin)  {
				Sex = jumin.value.substring(0,1);
					if (Sex == "1") {
						document.fo.sex[0].checked = true
					} else {
						document.fo.sex[1].checked = true
					}
			}

		//¼ýÀÚ¸¸À» ±âÀÔÇÏ°Ô ÇÏ´Â ¹æ¹ý
		function num_only(){
		  if((event.keyCode<48) || (event.keyCode>57)){
			event.returnValue=false;
		  }
		}

		function nextssn(nln,ele,len) {
			if(nln.length==len) {
				ele.focus()
			}
		}

//-->


