/////////////////////////////////// ¸µÅ©°¡ °É¸®´Â ºÎºÐÀÇ Æ÷Ä¿½º¸¦ ºí·¯È­ ½ÃÅ°´Â ½ºÅ©¸³Æ®
/* ÆäÀÌÁö³»¿¡ Á¸ÀçÇÏ´Â ¸µÅ©ÀÇ onFocus¸¦ ÀÏ°ýÀû¿ë½ÃÄÑÁÝ´Ï´Ù¸¸~ */
function allblur() {
      for (i = 0; i < document.links.length; i++)
      document.links[i].onfocus = document.links[i].blur;
} 

function MM_preloadImages() { 
	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_findObj(n, d) {
	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 && d.getElementById) x=d.getElementById(n); return x;
}

/////////////////////////////////// SwapImage¿¡ °ü·ÃµÈ ½ºÅ©¸³Æ®
function MM_swapImage() {
	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 MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}


function Gready(){
	//alert('¿ÞÂÊÀÇ ÁÖ°£ Á¶»ç¸¦ Å¬¸¯ÇØÁÖ¼¼¿ä.');
	location.href="/Movie_Poll/Movie_Poll_Week.asp?M_Cate=6&M_CateSub=1"
	return;
}

function common_popup(theURL,winName,Cwidth, Cheight) { //v2.0
  var str = 'toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no,copyhistory=no,width=' + Cwidth + ',height=' + Cheight + ',left=50,top=50'
  window.open(theURL,winName,str);
}


///////////////// °Ë»ö Ã¼Å© //////////////////////////

function SearchCH() {
	if(document.searchform.s_word.value == ""){
		alert("°Ë»ö¾î¸¦ ÀÔ·ÂÇØÁÖ¼¼¿ä");
		document.searchform.s_word.focus();
		return;
	}
	if(document.searchform.s_word.value.length > 30){
		alert("°Ë»ö¾î°¡ ³Ê¹« ±é´Ï´Ù.");
		document.searchform.s_word.value="";
		document.searchform.s_word.focus();
		return;
	}
	var CHRZ = document.searchform.s_word.value.replace(/ /g,'')
	if(CHRZ.length < 1){
		alert("°Ë»ö¾î¸¦ ÀÔ·ÂÇØÁÖ¼¼¿ä...");
		document.searchform.s_word.value="";
		document.searchform.s_word.focus();
		return;
	}
	document.searchform.submit();
}	



function BBS_SearchCH() {
	if(document.SearchForm.txtfind.value == ""){
		alert("°Ë»ö¾î¸¦ ÀÔ·ÂÇØÁÖ¼¼¿ä");
		document.SearchForm.txtfind.focus();
		return;
	}
	document.SearchForm.submit();
}	



/////////////// °Ë»ö ÀÔ·Â¹Ú½º Æ÷Ä¿½º ///////////////

function SearchFocus(){
	document.searchform.s_word.focus();
}


/////////////// ·Î±×ÀÎ ÀÔ·Â¹Ú½º Æ÷Ä¿½º ///////////////
function LoginIdFocus(){
	document.login.internetID.focus();
}

function LoginPasswdFocus(){
	document.login.Passwd.focus();
}


/////////////// 20ÀÚÆò Ã¼Å© ///////////////

function TwentyEssayCH(FromUrl) {
	if(document.Form1.c_internetid.value == ""){
		//var FromURL = parent.location.href;		
		alert("·Î±×ÀÎ ÈÄ ÀÌ¿ëÇØ ÁÖ¼¼¿ä.");		
		parent.location.href = '/MEMBER/LOGIN.ASP?FromURL='+FromUrl;
		//alert("·Î±×ÀÎÀ» ÇÏ½ÅÈÄ" + mainFrame.location.href + " ÀÔ·ÂÇØÁÖ¼¼¿ä");
//		var lURL = mainFrame.location.href;
//		parent.location.href='/member/login.asp?returnURL='+lURL;
//		document.Form1.contents.focus();
//		document.Form1.submit();
		return;
	}
	if(document.Form1.contents.value == ""){
		alert("20ÀÚÆò ³»¿ëÀ» ÀÔ·ÂÇØÁÖ¼¼¿ä");
		document.Form1.contents.focus();
		return;
	}
	if(document.Form1.contents.value.length > 50){
		alert("³»¿ëÀÌ ³Ê¹« ±é´Ï´Ù.");
		//document.Form1.contents.value="";
		document.Form1.contents.focus();
		return;
	}
	document.Form1.submit();
}	



function TwentyEssayCH_Ajowa(FromUrl) {
	if(document.Form1.c_internetid.value == ""){
		//var FromURL = parent.location.href;		
		alert("ÀÛ¼ºÀÚ¸¦ ÀÔ·Â ÁÖ¼¼¿ä.");		
		//parent.location.href = '/MEMBER/LOGIN.ASP?FromURL='+FromUrl;
		//alert("·Î±×ÀÎÀ» ÇÏ½ÅÈÄ" + mainFrame.location.href + " ÀÔ·ÂÇØÁÖ¼¼¿ä");
//		var lURL = mainFrame.location.href;
//		parent.location.href='/member/login.asp?returnURL='+lURL;
		document.Form1.c_internetid.focus();
//		document.Form1.submit();
		return;
	}
	if(document.Form1.contents.value == ""){
		alert("20ÀÚÆò ³»¿ëÀ» ÀÔ·ÂÇØÁÖ¼¼¿ä");
		document.Form1.contents.focus();
		return;
	}
	if(document.Form1.contents.value.length > 50){
		alert("³»¿ëÀÌ ³Ê¹« ±é´Ï´Ù.");
		//document.Form1.contents.value="";
		document.Form1.contents.focus();
		return;
	}
	document.Form1.submit();
}	




function id_confirm() 
	{ 
	
	var CHRZ = document.num.uid.value.replace(/ /g,'')
	if(CHRZ.length < 1){
		alert("¾ÆÀÌµð¸¦ ÀÔ·ÂÇØÁÖ¼¼¿ä...");
		document.num.uid.value="";
		document.num.uid.focus();
		return;
	}
	
	if(CHRZ.length < 4 || CHRZ.length > 12){
		alert("¾ÆÀÌµð´Â ¿µ¹®, ¼ýÀÚ Á¶ÇÕ 4~12ÀÚ±îÁö ÀÔ·Â°¡´ÉÇÕ´Ï´Ù.");
		document.num.uid.focus();
		return;
	}
	
	if(document.num.uid.value=="")
  	 {
 	   alert("½ÅÃ»ÇÏ½Ã°íÀÚÇÏ´Â È¸¿øID¸¦ ÀÔ·ÂÇÏ½Ã°í\n"+"[ID Áßº¹ È®ÀÎ]À» Å¬¸¯ÇÏ¼¼¿ä!");
 	   document.num.uid.focus();   
 	 }
 	 else
  	 {
 	  var confirm_id=document.num.uid.value;
 	  	window.open("/member/Popup_IdCheck.ASP?uid="+confirm_id+"", "confirm_box","width=350,height=190,marginwidth=0,marginheight=0,resizable=0,scrollbars=0"); 
 	 } 
}






function Chk_jumin( jumin1, jumin2 ) {
	var Number = jumin1 + jumin2;
	var Sum=0;
	var Mod=0;
	var YearIn=0;
	var MonthIn=0;
	var DateIn=0;
	
	for (i=0; i<12; i++) {
		if (i==0)
			YearIn+=parseInt(Number.charAt(i))*10;
		if (i==1)
			YearIn+=parseInt(Number.charAt(i));
		if (i==2)
			MonthIn+=parseInt(Number.charAt(i))*10;
		if (i==3)
			MonthIn+=parseInt(Number.charAt(i));
		if (i==4)
			DateIn+=parseInt(Number.charAt(i))*10;
		if (i==5)
			DateIn+=parseInt(Number.charAt(i));
		if (i<6)
			Sum+=parseInt(Number.charAt(i))*(i+2);
		if (i>5&&i<8)
			Sum+=parseInt(Number.charAt(i))*(i+2);
		if (i>7)
			Sum+=parseInt(Number.charAt(i))*(i-6);
	}
	Mod = 11 - (Sum%11);
	
	if ( (11-(Sum%11)) >= 10 )
		Mod-=10;
	
	if(Mod!=parseInt(Number.charAt(12))) {
		//alert("»ç¿ëµÇÁö¾Ê´Â ÁÖ¹Îµî·Ï¹øÈ£ÀÔ´Ï´Ù. ´Ù½ÃÀÔ·ÂÇÏ¼¼¿ä");
		//jumin1.focus();
		return false;
	}
	if(MonthIn < 1 || MonthIn > 12 || DateIn < 1 || DateIn > 31) {
		//alert("»ç¿ëµÇÁö¾Ê´Â ÁÖ¹Îµî·Ï¹øÈ£ÀÔ´Ï´Ù. ´Ù½ÃÀÔ·ÂÇÏ¼¼¿ä");
		//jumin1.focus();
		return false;
	}
	if((MonthIn ==4 || MonthIn == 6 || MonthIn == 9 || MonthIn ==11 ) && DateIn > 30) {
		//alert("»ç¿ëµÇÁö¾Ê´Â ÁÖ¹Îµî·Ï¹øÈ£ÀÔ´Ï´Ù. ´Ù½ÃÀÔ·ÂÇÏ¼¼¿ä");
		//jumin1.focus();
		return false;
	}
	if(MonthIn ==2 && DateIn > 29) {
		//alert("»ç¿ëµÇÁö¾Ê´Â ÁÖ¹Îµî·Ï¹øÈ£ÀÔ´Ï´Ù. ´Ù½ÃÀÔ·ÂÇÏ¼¼¿ä");
		//jumin1.focus();
		return false;
	}
	return true;
} 

function isNum(str)
 {
  for (var i = 0; i < str.length; i++)
  {
    var ch = str.charAt(i);
    if ((ch < "0" || "9" < ch) && (ch != '-'))
      return;
  }
  return true
}



function keyFilter(inValue)
{
    var inKey = String.fromCharCode(event.keyCode);
    var reKey = new RegExp(inValue);

    // Enter´Â Å°°Ë»ç¸¦ ÇÏÁö ¾Ê´Â´Ù.
    if ( inKey != "\r" && !reKey.test(inKey) ) {
        event.returnValue = false;
    }
}


  
function login_check(){

	with(document.num){
		if (uid.value != "")   {
			if(Key_check(uid.value)){
				alert("¾ÆÀÌµð¸¦ ´Ù½Ã ÀÔ·ÂÇÏ¼¼¿ä.");
				uid.focus();
				return;
			}
		}
		if(password.value != ""){
			if(Key_check(password.value)){
				alert("ÆÐ½º¿öµå¸¦ ´Ù½Ã ÀÔ·ÂÇÏ¼¼¿ä.");
				password.focus();
				return;
			}
		}
	} 	
  
	with(document.num){
		if (uid.value == "")   {
			alert("È¸¿øID¸¦ ÀÔ·ÂÇÏ¼¼¿ä.");
			uid.focus();
			return ;
		}

		if (idcheck.value == "")   {
			alert("¾ÆÀÌµð Áßº¹°Ë»ç¸¦ ÇØÁÖ¼¼¿ä.");
			uid.focus();
			return ;
		}

		if(uid.value!=re_uid.value)
		{
			alert("ÀÔ·ÂÇÏ½Å ¾ÆÀÌµð¿Í Áßº¹È®ÀÎÇÑ ¾ÆÀÌµð°¡ ´Ù¸¨´Ï´Ù..\n"+"Áßº¹È®ÀÎÀ» ´Ù½Ã ÇØÁÖ¼¼¿ä.!");
			uid.focus();
			return;
		}

		if(password.value=="")
		{
			alert("ºñ¹Ð¹øÈ£¸¦ ÀÔ·ÂÇÏ¼¼¿ä!");
			password.focus();
			return;
		}
		if(re_passwd.value=="")
		{
			alert("ºñ¹Ð¹øÈ£È®ÀÎÀ» ÀÔ·ÂÇÏ¼¼¿ä!");
			re_passwd.focus();
			return;
		}
		if(password.value!=re_passwd.value)
		{
			alert("ºñ¹Ð¹øÈ£ È®ÀÎÀÌ ÀÏÄ¡ÇÏÁö ¾Ê½À´Ï´Ù.\n"+"´Ù½ÃÇÑ¹ø °°Àº °ªÀ» ÀÔ·ÂÇÏ¼¼¿ä!");
			password.value="";
			re_passwd.value=""; 
			password.focus();
			return;
		}

		if (password.value.length < 4 || password.value.length > 20) {
			alert("\n ÆÐ½º¿öµå´Â 4ÀÚÀÌ»ó 20ÀÚÀÌÇÏ ÀÌ¾î¾ß ÇÕ´Ï´Ù.");
			password.focus();
			return ;
		}

		if(uname.value=="")
		{
			alert("ÀÌ¸§À» ÀÔ·ÂÇÏ¼¼¿ä!");
			uname.focus();
			return;
		}

		if (email.value=="") {
			alert("\n E-mail¸¦ ÀÔ·ÂÇÏ¼¼¿ä");
			email.focus();
			return;
		}

		//¸ÞÀÏ Á¤È®ÇÑ ÁÖ¼Ò±âÀÔ ¿©ºÎ Ã¼Å© null °ªÀº Çã¿ë....
		var strEmail, strInvalid;
		strEmail = email.value;
		//strInvalid = "¸ÞÀÏ ÁÖ¼Ò°¡ ¾Æ´Õ´Ï´Ù";

		if(strEmail.length ==0)
			return true;

		else if(strEmail.indexOf("@") < 1) {
			alert("Á¤È®ÇÑ ¸ÞÀÏÁÖ¼Ò¸¦ ÀÔ·ÂÇØ¾ß ÇÕ´Ï´Ù.\n(¿¹)youby@cinetizen.net)");
			email.focus(); //"@"¾øÀ½
			return;
		}
		else if(strEmail.substring(strEmail.indexOf("@")+1, 
			strEmail.length).length == 0) {
			alert("°ñ¹ðÀÌ ÇÏ³ª¸¸ µþ¶û ÀûÀ¸½Ã¸é ¾ÈµÅ¿ä.\n(¿¹)youby@cinetizen.net");
			email.focus(); //"@"µÚ¿¡ °ª¾øÀ½
			return;
		}
		else if(strEmail.substring(strEmail.indexOf("@")+1, 
			strEmail.length).indexOf(".") < 1) {
			alert("Á¤¸» ¸ð¸£´Â °Ì´Ï±î? ¸ÞÀÏÀº Æ²¸®¸é ¾ÈµÅ¿ä.~~");
			email.focus(); //"@"µÚ¿¡ "."¾øÀ½
			return;
		}

		//else if(strEmail.indexOf("hanmail.net") > 0) {
		//   	alert("ÇÑ¸ÞÀÏ °èÁ¤Àº »ç¿ëÇÏ½Ç¼ö ¾ø½À´Ï´Ù.\n\n ´Ù¸¥ ¸ÞÀÏÁÖ¼Ò¸¦ ³Ö¾î ÁÖ¼¼¿ä.");
		//	email.focus();
		//	return;
		//}
		//else if(strEmail.indexOf("daum.net") > 0) {
		//   	alert("ÇÑ¸ÞÀÏ °èÁ¤Àº »ç¿ëÇÏ½Ç¼ö ¾ø½À´Ï´Ù.\n\n ´Ù¸¥ ¸ÞÀÏÁÖ¼Ò¸¦ ³Ö¾î ÁÖ¼¼¿ä.");
		//	email.focus(); 
		//	return;
		//}



		if ((jumin1.value == "") || (jumin2.value == "")){
			alert("ÁÖ¹Îµî·Ï¹øÈ£¸¦ ÀÔ·ÂÇÏ¼¼¿ä");
			jumin1.focus();
			return;
		}



		if(Chk_jumin(jumin1.value , jumin2.value) == false){
			alert("»ç¿ëµÇÁö¾Ê´Â ÁÖ¹Îµî·Ï¹øÈ£ÀÔ´Ï´Ù. ´Ù½ÃÀÔ·ÂÇÏ¼¼¿ä"); 
			jumin1.value = "";
			jumin2.value = "";
			jumin1.focus();
			return ;
		}


		if(c_marry[0].checked != true && c_marry[1].checked != true){
			alert("°áÈ¥ ¿©ºÎ¸¦ ¼±ÅÃÇØ ÁÖ¼¼¿ä");
			return;
		}


		if (zipcode2.value == "") {
			alert("¿ìÆí¹øÈ£¸¦ ÀÔ·ÂÇÏ¼¼¿ä");
			address.focus();
			return;
		}

		if (address.value == "")    {
			alert("ÀÚÅÃÁÖ¼Ò¸¦ ÀÔ·ÂÇÏ¼¼¿ä");
			address.focus();
			return ;
		}

		if (address2.value == "")    {
			alert("³ª¸ÓÁö ÁÖ¼Ò¸¦ ÀÔ·ÂÇÏ¼¼¿ä");
			address2.focus();
			return ;
		}


		if (seljob.value == "")    {
			alert("Á÷¾÷À» ¼±ÅÃÇÏ¼¼¿ä");
			seljob.focus();
			return ;
		}

		if (selschooling.value == "")    {
			alert("ÇÐ·ÂÀ» ¼±ÅÃÇÏ¼¼¿ä");
			selschooling.focus();
			return ;
		}


		//if ((mobile1.value == "") || (mobile2.value == "") || (mobile3.value == "")) {
		//   alert("ÇÚµåÆù¹øÈ£¸¦ ÀÔ·ÂÇÏ¼¼¿ä");
		//   mobile1.focus();
		//   return ;
		//  }
		if (!isNum(mobile1.value))
		{
			alert("ÇÚµåÆù¹øÈ£°¡ À¯È¿ÇÏÁö ¾Ê½À´Ï´Ù.\n"+"Á¤È®ÇÑ ¹øÈ£¸¦ ÀÔ·ÂÇÏ¼¼¿ä!");
			mobile1.value="";
			mobile1.focus();
			return;
		}
		if (!isNum(mobile2.value))
		{
			alert("ÇÚµåÆù¹øÈ£°¡ À¯È¿ÇÏÁö ¾Ê½À´Ï´Ù.\n"+"Á¤È®ÇÑ ¹øÈ£¸¦ ÀÔ·ÂÇÏ¼¼¿ä!");
			mobile2.value="";
			mobile2.focus();
			return;
		}
		if (!isNum(mobile3.value))
		{
			alert("ÇÚµåÆù¹øÈ£°¡ À¯È¿ÇÏÁö ¾Ê½À´Ï´Ù.\n"+"Á¤È®ÇÑ ¹øÈ£¸¦ ÀÔ·ÂÇÏ¼¼¿ä!");
			mobile3.value="";
			mobile3.focus();
			return;
		}
		
	} 


  	if (document.num.Q1_1.value=="") {
  		alert("¹®Ç× 1¹øÀÇ ÇÊ¼ö¹®Ç×À» ¼±ÅÃÇØ ÁÖ¼¼¿ä.");
		return false;
	}			
	
  	
  	var thefrm=document.num;
	
	var i=0;
	var j=0;
	var k=0;
	var checkedVal;
	var tmpansno;
	var ansno;
		
	for (i=2;i<6;i++) {				
			
			
			tmpansno="num.Q"+i+".length";	
			ansno=eval(tmpansno);
			j=0;		
			for (k=0; k<ansno; k++) {
				if (eval("num.Q"+i+"[k].checked")) {
					checkedVal=eval("num.Q"+i+"[k].value");
					if (checkedVal!="") {
						j=j+1;
					}
				}
			}
			
		 	
		if (j==0) {									
			//alert("Áú¹® "+i+"¹øÀÇ ("+ansno+")°³ Áß ¼±ÅÃÇÏ¼¼¿ä !");
			alert("¹®Ç× "+i+"¹øÀ» ÀÔ·ÂÇÏ¼¼¿ä !");
			return;
		}			
	}
 
  	document.num.submit();

}

function resetit(){
	document.num.reset();
}

function check1()
{
    var str = document.num.jumin1.value.length;
    if(str == 6)
       document.num.jumin2.focus();
} 


function modify_check(){
  
	with(document.num){

		if (zipcode2.value == "") {
			alert("¿ìÆí¹øÈ£¸¦ ÀÔ·ÂÇÏ¼¼¿ä");
			address.focus();
			return;
		}

		if (address.value == "")    {
			alert("ÀÚÅÃÁÖ¼Ò¸¦ ÀÔ·ÂÇÏ¼¼¿ä");
			address.focus();
			return ;
		}

		if (address2.value == "")    {
			alert("³ª¸ÓÁö ÁÖ¼Ò¸¦ ÀÔ·ÂÇÏ¼¼¿ä");
			address2.focus();
			return ;
		}

		if (!isNum(mobile1.value))
		{
			alert("ÇÚµåÆù¹øÈ£°¡ À¯È¿ÇÏÁö ¾Ê½À´Ï´Ù.\n"+"Á¤È®ÇÑ ¹øÈ£¸¦ ÀÔ·ÂÇÏ¼¼¿ä!");
			mobile1.value="";
			mobile1.focus();
			return;
		}
		if (!isNum(mobile2.value))
		{
			alert("ÇÚµåÆù¹øÈ£°¡ À¯È¿ÇÏÁö ¾Ê½À´Ï´Ù.\n"+"Á¤È®ÇÑ ¹øÈ£¸¦ ÀÔ·ÂÇÏ¼¼¿ä!");
			mobile2.value="";
			mobile2.focus();
			return;
		}
		if (!isNum(mobile3.value))
		{
			alert("ÇÚµåÆù¹øÈ£°¡ À¯È¿ÇÏÁö ¾Ê½À´Ï´Ù.\n"+"Á¤È®ÇÑ ¹øÈ£¸¦ ÀÔ·ÂÇÏ¼¼¿ä!");
			mobile3.value="";
			mobile3.focus();
			return;
		}
		
		if (email.value=="") {
			alert("\n E-mail¸¦ ÀÔ·ÂÇÏ¼¼¿ä");
			email.focus();
			return;
		}

		//¸ÞÀÏ Á¤È®ÇÑ ÁÖ¼Ò±âÀÔ ¿©ºÎ Ã¼Å© null °ªÀº Çã¿ë....
		var strEmail, strInvalid;
		strEmail = email.value;
		//strInvalid = "¸ÞÀÏ ÁÖ¼Ò°¡ ¾Æ´Õ´Ï´Ù";

		if(strEmail.length ==0)
			return true;

		else if(strEmail.indexOf("@") < 1) {
			alert("Á¤È®ÇÑ ¸ÞÀÏÁÖ¼Ò¸¦ ÀÔ·ÂÇØ¾ß ÇÕ´Ï´Ù.\n(¿¹)youby@cinetizen.net)");
			email.focus(); //"@"¾øÀ½
			return;
		}
		else if(strEmail.substring(strEmail.indexOf("@")+1, 
			strEmail.length).length == 0) {
			alert("°ñ¹ðÀÌ ÇÏ³ª¸¸ µþ¶û ÀûÀ¸½Ã¸é ¾ÈµÅ¿ä.\n(¿¹)youby@cinetizen.net");
			email.focus(); //"@"µÚ¿¡ °ª¾øÀ½
			return;
		}
		else if(strEmail.substring(strEmail.indexOf("@")+1, 
			strEmail.length).indexOf(".") < 1) {
			alert("Á¤¸» ¸ð¸£´Â °Ì´Ï±î? ¸ÞÀÏÀº Æ²¸®¸é ¾ÈµÅ¿ä.~~");
			email.focus(); //"@"µÚ¿¡ "."¾øÀ½
			return;
		}


		if (seljob.value == "")    {
			alert("Á÷¾÷À» ¼±ÅÃÇÏ¼¼¿ä");
			seljob.focus();
			return ;
		}

		if (selschooling.value == "")    {
			alert("ÇÐ·ÂÀ» ¼±ÅÃÇÏ¼¼¿ä");
			selschooling.focus();
			return ;
		}

		if(c_marry[0].checked != true && c_marry[1].checked != true){
			alert("°áÈ¥ ¿©ºÎ¸¦ ¼±ÅÃÇØ ÁÖ¼¼¿ä");
			return;
		}
	} 


  	if (document.num.Q1_1.value=="") {
  		alert("¹®Ç× 1¹øÀÇ ÇÊ¼ö¹®Ç×À» ¼±ÅÃÇØ ÁÖ¼¼¿ä.");
		return;
	}			
	
  	
  	var thefrm=document.num;
	
	var i=0;
	var j=0;
	var k=0;
	var checkedVal;
	var tmpansno;
	var ansno;
		
	for (i=2;i<6;i++) {				
			
			
			tmpansno="num.Q"+i+".length";	
			ansno=eval(tmpansno);
			j=0;		
			for (k=0; k<ansno; k++) {
				if (eval("num.Q"+i+"[k].checked")) {
					checkedVal=eval("num.Q"+i+"[k].value");
					if (checkedVal!="") {
						j=j+1;
					}
				}
			}
			
		 	
		if (j==0) {									
			//alert("Áú¹® "+i+"¹øÀÇ ("+ansno+")°³ Áß ¼±ÅÃÇÏ¼¼¿ä !");
			alert("¹®Ç× "+i+"¹øÀ» ÀÔ·ÂÇÏ¼¼¿ä !");
			return;
		}			
	}
 
	document.num.submit();

}

function resetit(){
	document.num.reset();
}

function check1()
{
    var str = document.num.jumin1.value.length;
    if(str == 6)
       document.num.jumin2.focus();
} 

function check2()
{
    var str = document.lost.jumin1.value.length;
    if(str == 6)
       document.lost.jumin2.focus();
} 




// ¹®ÀÚ ¼­ºñ½º(MO) ¸¶¿ì½º ·Ñ¿À¹ö ¸ØÃã ½ºÅ©¸³Æ®
	var Toggle =1; 
	function Imgtop1(chk)	{ 
	Toggle = 0; 
	switch(chk) { 
	case 1: 
	wisecart.stop(); 
	break; 
	case 2: 
	wisecart.stop(); 
	break; 
	} 
	}  

	function Imgstart1(chk)	{ 
	Toggle = 1; 
	switch(chk) { 
	case 1: 
	wisecart.start(); 
	break; 
	case 2: 
	wisecart.start(); 
	break; 
	} 
	}  

// poll ·Ñ ¿À¹ö ¸ØÃã ½ºÅ©¸³Æ®
	var pollggle =1; 

	function PollImgtop1(chk)	{ 
	pollggle = 0; 
	switch(chk) { 
	case 1: 
	pollcart1.stop(); 
	break; 
	case 2: 
	pollcart1.stop(); 
	break; 
	} 
	}  

	function PollImgstart1(chk)	{ 
	pollggle = 1; 
	switch(chk) { 
	case 1: 
	pollcart1.start(); 
	break; 
	case 2: 
	pollcart1.start(); 
	break; 
	} 
	}  


	function PollImgtop2(chk)	{ 
	pollggle = 0; 
	switch(chk) { 
	case 1: 
	pollcart2.stop(); 
	break; 
	case 2: 
	pollcart2.stop(); 
	break; 
	} 
	}  

	function PollImgstart2(chk)	{ 
	pollggle = 1; 
	switch(chk) { 
	case 1: 
	pollcart2.start(); 
	break; 
	case 2: 
	pollcart2.start(); 
	break; 
	} 
	}  

	function PollImgtop3(chk)	{ 
	pollggle = 0; 
	switch(chk) { 
	case 1: 
	pollcart3.stop(); 
	break; 
	case 2: 
	pollcart3.stop(); 
	break; 
	} 
	}  

	function PollImgstart3(chk)	{ 
	pollggle = 1; 
	switch(chk) { 
	case 1: 
	pollcart3.start(); 
	break; 
	case 2: 
	pollcart3.start(); 
	break; 
	} 
	}  

///################# ÀÌ¹ÌÁö ¿øº» »çÀÌÁî ¸¸Å­ ÆË¾÷À¸·Î º¸¿©ÁÖ±â ###############/////

function AutoResize(img){ 
  foto1= new Image(); 
  foto1.src=(img); 
  Controlla(img); 
} 
function Controlla(img){ 
  if((foto1.width!=0)&&(foto1.height!=0)){ 
    viewFoto(img); 
  } 
  else{ 
    funzione="Controlla('"+img+"')"; 
    intervallo=setTimeout(funzione,20); 
  } 
} 
function viewFoto(img){ 
  largh=foto1.width+20; 
  altez=foto1.height+20; 
  stringa="width="+largh+",height="+altez; 
  finestra=window.open(img,"",stringa); 
} 

//// ÀÌ¹ÌÁö ¾øÀ»¶§......

function ck(f){   
	
	f.src="/IMAGE/CGI/poster_no.gif";
}


function RightIMG(B_IMG){
	
//	alert("kkkk " + kkk + "  kkkkk");
//	document.imgform['bigIMG'].scr=B_IMG;
//	document.imgform.images['1'].src=B_IMG
//	parent.bigIMG.src=B_IMG
}

//// »óÅÂ¹Ù¿¡ ÅØ½ºÆ® »Ñ·ÁÁÖ±â (¸µÅ© ¾Èº¸ÀÌ°Ô ÇÏ±â)

//var boodschap = 'ÁÁÀº ¿µÈ­ »çÀÌÆ® CINETIZEN.NET'; 
//function dgstatus()
//{
//     window.status = boodschap;
//	timerID= setTimeout("dgstatus()", 30);
//}
//
//dgstatus();


///*****************Æ¯¼ö ¹®ÀÚ ¹æÁö *****************************
function Key_error(){
	if ((event.keyCode >= 97 && event.keyCode <= 122) || 
		(event.keyCode >= 65 && event.keyCode <= 90) || 
		(event.keyCode >= 48 && event.keyCode <= 57) ||
		(event.keyCode == 95) || (event.keyCode == 45)
		){
			event.returnValue = true;
	}else{
		event.returnValue = false;
	}
}

function Key_error2(){
	if ((event.keyCode >= 48 && event.keyCode <= 57)
		){
			event.returnValue = true;
	}else{
		event.returnValue = false;
	}
}

///////////////Æ¯¼ö¹®ÀÚ,ÇÑ±Û¸¦ Ã¼Å© ¸®ÅÏ//////////////////////
function Key_check(txt){
	var ch_error = 0;
	for (i = 0;i < txt.length ;i++ ){
		if ((txt.charCodeAt(i) >= 97 && txt.charCodeAt(i) <= 122) || 
			(txt.charCodeAt(i) >= 65 && txt.charCodeAt(i) <= 90) || 
			(txt.charCodeAt(i) >= 48 && txt.charCodeAt(i) <= 57)){
				ch_error = ch_error;
		}else{
			ch_error = ch_error + 1;
		}
	}
	if(ch_error > 0){
		return true;
	}else{
		return false;
	}
}

function Key_oncheck(txt){
	var ch_error2 = 0;
	for (i = 0;i < txt.length ;i++ ){
		if ((txt.charCodeAt(i) != 34) || (txt.charCodeAt(i) != 39)){
			ch_error2 = ch_error2;
		}else{
			ch_error2 = ch_error2 + 1;
		}
	}
	if(ch_error2 > 0){
		return true;
	}else{
		return false;
	}
}

///////////////¼ýÀÚ¸¦ Á¦¿ÜÇÑ ¹®ÀÚ Ã¼Å© ¸®ÅÏ//////////////////////
function KeyNum_check(txt){
	var ch_error = 0;
	for (i = 0;i < txt.length ;i++ ){
		if (txt.charCodeAt(i) > 48 && txt.charCodeAt(i) < 57){
				ch_error = ch_error + 1;
		}
	}
	if(ch_error > 0){
		return true;
	}else{
		return false;
	}
}


/////////////////ÀÌ¹ÌÁö ¾÷·Îµå ÆË¾÷Ã¢///////////////////////
function imagepopup(file,code,path){		
//file : form.name 		code : ÀÌ¹ÌÁöÀÎÁö ÇÃ·¡½ÃÀÎÁö±¸ºÐ img,swf	path : ÀÌ¹ÌÁö ¾÷·Îµå °æ·Î
//alert(eval("document."+file+".value"));
	if(eval("document."+file+".value") == ""){
		file_yn = "N";
	}else{
		file_yn = "Y";
	}
	window.open("/COMMON/IMAGE_POPUP/imageup.asp?file="+file+"&code="+code+"&path="+path+"&file_yn="+file_yn,"280x380","width=280, height=380, scrollbars=0, status=yes");
}








////////////////// 798x218 ¹è³Ê Å¬¸¯ ÇÔ¼ö ///////////////////////

function MainBanner_Click(Bidx)
{
	if(Bidx==1){
		var str = 'toolbar=yes,location=yes,directories=no,status=yes,menubar=yes,scrollbars=yes,resizable=yes,copyhistory=no,width=700,height=500,left=50,top=50';
  		var BCode='MV100000428';
  		var BUrl='http://www.6ani.com';
  		var BLocation='00';
  		window.open('/main/Banner_Click.asp?BCode='+BCode+'&BUrl='+BUrl+'&BLocation='+BLocation,'banner',str);
	}
	if(Bidx==2){
		var str = 'toolbar=yes,location=yes,directories=no,status=yes,menubar=yes,scrollbars=yes,resizable=yes,copyhistory=no,width=700,height=500,left=50,top=50';
 		var BCode='MV200000910';
 		var BUrl='http://www.tonytakitani.co.kr';
 		var BLocation='00';
 		window.open('/main/Banner_Click.asp?BCode='+BCode+'&BUrl='+BUrl+'&BLocation='+BLocation,'banner',str);
	}
	if(Bidx==3){
		var str = 'toolbar=yes,location=yes,directories=no,status=yes,menubar=yes,scrollbars=yes,resizable=yes,copyhistory=no,width=700,height=500,left=50,top=50';
  		var BCode='MV100000432';
  		var BUrl='http://www.kidsfilm2005.co.kr';
  		var BLocation='00';
  		window.open('/main/Banner_Click.asp?BCode='+BCode+'&BUrl='+BUrl+'&BLocation='+BLocation,'banner',str);
	}
//	if(Bidx==4){
//		var str = 'toolbar=yes,location=yes,directories=no,status=yes,menubar=yes,scrollbars=yes,resizable=yes,copyhistory=no,width=700,height=500,left=50,top=50';
// 		var BCode='MV100000358';
// 		var BUrl='http://www.2daero.co.kr';
// 		var BLocation='00';
// 		window.open('/main/Banner_Click.asp?BCode='+BCode+'&BUrl='+BUrl+'&BLocation='+BLocation,'banner',str);
//	}
}


////////////////// 798x218 ¹è³Ê Å¬¸¯ ÇÔ¼ö ///////////////////////


////////////////// 531x227 ¹è³Ê Å¬¸¯ ÇÔ¼ö ///////////////////////

function SubBanner_Click(Bidx)
{
	if(Bidx==1){
		var str = 'toolbar=yes,location=yes,directories=no,status=yes,menubar=yes,scrollbars=yes,resizable=yes,copyhistory=no,width=700,height=500,left=50,top=50';
  		var BCode='MV200000893';
  		var BUrl='http://www.landofplenty.co.kr';
  		var BLocation='10';
  		window.open('/main/Banner_Click.asp?BCode='+BCode+'&BUrl='+BUrl+'&BLocation='+BLocation,'banner',str);		
	}
	if(Bidx==2){
		var str = 'toolbar=yes,location=yes,directories=no,status=yes,menubar=yes,scrollbars=yes,resizable=yes,copyhistory=no,width=700,height=500,left=50,top=50';
 		var BCode='MV100000361';
 		var BUrl='http://www.mulimjizon.com';
 		var BLocation='10';
 		window.open('/main/Banner_Click.asp?BCode='+BCode+'&BUrl='+BUrl+'&BLocation='+BLocation,'banner',str);
	}
	if(Bidx==3){
		var str = 'toolbar=yes,location=yes,directories=no,status=yes,menubar=yes,scrollbars=yes,resizable=yes,copyhistory=no,width=700,height=500,left=50,top=50';
  		var BCode='MV200000910';
  		var BUrl='http://www.tonytakitani.co.kr';
  		var BLocation='10';
  		window.open('/main/Banner_Click.asp?BCode='+BCode+'&BUrl='+BUrl+'&BLocation='+BLocation,'banner',str);		
	}
//	if(Bidx==4){
//		var str = 'toolbar=yes,location=yes,directories=no,status=yes,menubar=yes,scrollbars=yes,resizable=yes,copyhistory=no,width=700,height=500,left=50,top=50';
// 		var BCode='MV100000358';
// 		var BUrl='http://www.2daero.co.kr';
// 		var BLocation='10';
// 		window.open('/main/Banner_Click.asp?BCode='+BCode+'&BUrl='+BUrl+'&BLocation='+BLocation,'banner',str);
//	}
}

////////////////// 531x227 ¹è³Ê Å¬¸¯ ÇÔ¼ö ///////////////////////








///////  ´º½º ±â»ç ÆùÆ® »çÀÌÁî Á¦¾î

function setCookie(name,value,expires) { 
	document.cookie=name + "=" + escape(value) + ((expires == null)? "" : (" ; expires=" + expires.toGMTString())); 
} 

function getCookie(name) { 
	var arg = name + "="; 
	var alen = arg.length; 
	var clen = document.cookie.length; 
	var i = 0; 
	while(i< clen) { 
	var j = i + alen; 
		if(document.cookie.substring(i,j)==arg)
		{ 
		var end = document.cookie.indexOf(";",j); 
		if(end == -1) end = document.cookie.length; 
		return 
		unescape(document.cookie.substring(j,end)); 
		} 
		i=document.cookie.indexOf(" ",i)+1; 
		if (i==0) break; } return null; 
	} 

function getFontCookie() { 
	var cookie = getCookie("news_font_size"); 
	if ( cookie == null ) return 16; 
	if ( cookie.length ) return cookie; 
	else return 16; 
} 

function reFontsize(val) { 
	var newscontent, lineHeight; 
	newscontent = document.getElementById("newscontent"); 
	if (val > 0) { 
		if (fontSize <= 20) { 
			fontSize = fontSize + val; 
			lineHeight = fontSize+Math.round(1.1*fontSize); 
			newscontent.style.fontSize = fontSize + "px"; 
		} 
	} 
	else { 
		if (fontSize > 12) { 
			fontSize = fontSize + val; 
			lineHeight = fontSize+Math.round(1.1*fontSize); 
			newscontent.style.fontSize = fontSize + "px"; 
		} 
	} 
	
	//var mydate = new Date; 
	//mydate.setDate(mydate.getDate()+1000); 
	//setCookie("news_font_size", fontSize, mydate); 
} 

var fontSize = parseInt(getFontCookie());
var fontSize = parseInt(getFontCookie()); 

function topPage() { 
	document.body.scrollTop = 0; 
} 

function bookmark(){ 
	window.external.AddFavorite('http://www.cinetizen.com/', 'cinetizen ´º½º'); 
} 

//////////////////////////////////////////
function NvChange() {
	this.currentspeed = 0;
	this.count=0;
	this.item_icount=2;
	this.stop = 0;
	this.pausemouseover = true;

	this.start = function () {
//	alert("aaa");
		this.display();
//		this.currentspeed = this.scrollspeed;
		this.currentspeed = 10000;
		obj = document.getElementById(this.name+'0').style;
//		alert(obj.display);
		obj.display='block';

		this.count++;
		setTimeout(this.name+'.scroll()',this.currentspeed);
	};

	this.ready = function () {
		now = new Date(); ran = now % this.item_icount;
		temp = this.item_i[ran]; this.item_i[ran] = this.item_i[0]; this.item_i[0] = temp;
		this.displayImage();
		obj_i = document.getElementById(this.name+'item_i0').style;
		obj_i.display='block';
	};

	this.display = function () {
		document.write('<div id="'+this.name+'" style="height:'+this.height+';width:'+this.width+';position:absolute;overflow:hidden;" OnMouseOver="'+this.name+'.onmouseover();" OnMouseOut="'+this.name+'.onmouseout();">');
		for(var i = 0; i < this.itemcount; i++) {
				document.write('<div id="'+this.name+'item'+i+'"style="left:0px; width:'+this.width+';position:absolute; display:none; ">');
				document.write(this.item[i]);
				document.write('</div>');
		}
		document.write('</div>');
	};

	this.displayImage = function () {
		document.write('<div id="'+this.name+'_i" style="left:0; height:'+this.height_i+';width:'+this.width_i+';position:relative;overflow:hidden;" OnMouseOver="'+this.name+'.onmouseover();" OnMouseOut="'+this.name+'.onmouseout();">');
		for(var i = 0; i < this.item_icount; i++) {
			document.write('<div id="'+this.name+'item_i'+i+'"style="left:0px; width:'+this.width_i+'; display:none; ">');
			document.write(this.item_i[i]);
			document.write('</div>');
		}
		document.write('</div>');
	};


	this.scroll = function () {
//	alert("ggg");
//		this.currentspeed = this.scrollspeed;
		this.currentspeed = 10000;
		if ( !this.stop ) {
			this.imageChange();
		}
		window.setTimeout(this.name+".scroll()",this.currentspeed);
	};


	this.imageChange = function ()
	{
//	alert("eee");
		for (k = 0; k < 2; k++) {
			obj_i = document.getElementById(this.name+k).style;
//			alert("count : "+this.count +" item_icount : " + this.item_icount+ " aa : "+this.count % this.item_icount+" k : "+k);
			if (this.count % this.item_icount == k) {
				obj_i.display = 'block';
			} else {
				obj_i.display = 'none';
			}
		}
//		for (k = 0; k < this.itemcount; k++) {
//			obj = document.getElementById(this.name+k).style;
//			if (this.count % this.itemcount == k) {
//				obj.display = 'block';
//			} else {
//				obj.display = 'none';
//			}
//		}
		this.count++;
	}

	this.onmouseover = function ()
	{
//	alert(this.pausemouseover);
		if ( this.pausemouseover ) {
//		alert("aa");
			this.stop = 1;
		}
	};

	this.onmouseout = function ()
	{
//	alert("bbb");
		if ( this.pausemouseover ) {
			this.stop = 0;
		}
	};

}

