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_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_findObj(n, d) { //v4.01
  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;
}

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 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=='show')?'visible':(v='hide')?'hidden':v; }
    obj.visibility=v; }
}


function check_find(fr){
	var check=true;
	if(!fr.kname.value){
		check=false;

		alert("ÀÌ¸§À» ÀÔ·ÂÇÏ½Ê½Ã¿ä.");
		fr.kname.focus();
		return false;
	}
	
	if(fr.jumin1.value=="")
	{
		check=false;

		alert("ÁÖ¹Î¹øÈ£¸¦ ÀÔ·ÂÇÏ¼¼¿ä!");
		fr.jumin1.focus();
		return false;
	}
	if(fr.jumin2.value=="")
	{
		check=false;

		alert("ÁÖ¹Î¹øÈ£¸¦ ÀÔ·ÂÇÏ¼¼¿ä!");
		fr.jumin2.focus();
		return false;
	}
	//Å×½ºÆ®¸¦ À§ÇØ ¸·¾Æ ³õÀ½
	/*if(!JuminCheck(fr.jumin1.value,fr.jumin2.value)){
		check=false;
		alert("ÁÖ¹Î¹øÈ£°¡ À¯È¿ÇÏÁö ¾Ê½À´Ï´Ù!");
		fr.jumin1.focus();
		return false;
	}*/
	if (fr.email.value=="")
	{
		check=false;
		alert("E-mailÀ» ÀÔ·ÂÇÏ¼¼¿ä!");
		fr.email.focus();
		return false;
	}
	if (!isEmail(fr.email.value))
	{
		check=false;
		alert("E-mailÀÌ Çü½Ä¿¡ ¸ÂÁö ¾Ê½À´Ï´Ù.");
		fr.email.value="";
		fr.email.focus();
		return false;
	}

	if(check) return true;

}

//----------------------  ¸Þ´º¹Ù --------------------------
function MM_reloadPage(init) {  //reloads the window if Nav4 resized
  if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
    document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}
  else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();
}
MM_reloadPage(true);

//------------------ ·Î±×ÀÎ CHECK FORM --------------
function LoginFrm(theForm) 
{
	if (theForm.id.value == "") {
		window.alert("¾ÆÀÌµð¸¦ ÀÔ·ÂÇÏ½Ê½Ã¿ä.");
		theForm.id.focus();
		return false;
	}
	if (theForm.user_passwd.value == "") {
		window.alert("ºñ¹Ð¹øÈ£¸¦ ÀÔ·ÂÇÏ½Ê½Ã¿ä.");
		theForm.user_passwd.focus();
		return false;
	}
	return true;
}

//----------------------- »õÃ¢ ¶ç¿ì±â(½ºÅ©·Ñ¹Ù À¯) ----------------------------
function Win_scroll(theURL,wide,high) {
	var window_left = (screen.width-640)/2;
	var window_top = (screen.height-480)/2;
	window.open(theURL,"Newwin",'width='+wide+',height='+high+',scrollbars=yes,resizable=no,top=' + window_top + ',left=' + window_left + '');
}

//----------------------- »õÃ¢ ¶ç¿ì±â(½ºÅ©·Ñ¹Ù ¹«) ----------------------------
function Win_mu(theURL,wide,high) {
	var window_left = (screen.width-640)/2;
	var window_top = (screen.height-480)/2;
	window.open(theURL,"Newwin",'width='+wide+',height='+high+',scrollbars=no,resizable=no,top=' + window_top + ',left=' + window_left + '');
}

//----------------------- °Ë»ö ----------------------------
function Search_send(theForm)
{
	if(theForm.keyword.value == "")
	{
		alert("°Ë»ö¾î¸¦ ÀÔ·ÂÇÏ¼¼¿ä.");
		theForm.keyword.focus();
		return false;
	}
}

//------------------ ¶óµð¿À¹öÆ° CHECK --------------
function radioCheck(oN){
	for(i=0;i<oN.length;i++){
		if(oN[i].checked){ return true; }
	}
	return false;
}

function radioValue(oN){
	for(i=0;i<oN.length;i++){
		if(oN[i].checked){ return oN[i].value; }
	}
	return -1;
}

//-----------------------E-mail ÁÖ¼ÒÈ®ÀÎ----------------------------
function isEmail(str) {

  var supported = 0;
  if (window.RegExp) {
    var tempStr = "a";
    var tempReg = new RegExp(tempStr);
    if (tempReg.test(tempStr)) supported = 1;
  }
  if (!supported)
    return (str.indexOf(".") > 2) && (str.indexOf("@") > 0);
  var r1 = new RegExp("(@.*@)|(\\.\\.)|(@\\.)|(^\\.)");
  var r2 = new RegExp("^.+\\@(\\[?)[a-zA-Z0-9\\-\\.]+\\.([a-zA-Z]{2,3}|[0-9]{1,3})(\\]?)$");
  return (!r1.test(str) && r2.test(str));
}

//----------------------- ¼ýÀÚ È®ÀÎ ----------------------------
function Check_Num(theForm) {
	t = theForm.value ;
	for(i=0;i<t.length;i++) {
		if (t.charAt(i)<'0' || t.charAt(i)>'9') {
			alert("¼ýÀÚ¸¸ ÀÔ·ÂÇØÁÖ¼¼¿ä.") ;
			theForm.value="";
			theForm.focus();
			return false ;
		}
	}
	return true;
}

//----------------------- ¼ýÀÚ È®ÀÎ(ÀÚ¸®¼ö Æ÷ÇÔ) ----------------------------
function Check_Tel(theForm,mm) {
	t = theForm.value;
	for(i=0;i<t.length;i++) {
		if (t.charAt(i)<'0' || t.charAt(i)>'9') {
			alert("¼ýÀÚ¸¸ ÀÔ·ÂÇØÁÖ¼¼¿ä.") ;
			theForm.value="";
			theForm.focus() ;
			return false ;
		}
	}
	if (t.length < mm)
	{
		alert("¼ýÀÚÀÇ ±æÀÌ¸¦ È®ÀÎÇÏ½Ê½Ã¿ä.");
		theForm.focus();
		return false;
	}
	return true;
}

//------------------------ ¿ìÆí¹øÈ£°Ë»ö ----------------------------
function OpenZipcode(z){    //open zip code check win
	var window_left = (screen.width-640)/2;
	var window_top = (screen.height-480)/2;
	zName = "/zipcode.html?zip_gubun="+z
	window.open(zName,"ZipWin",'width=466,height=340,scrollbars=yes,top=' + window_top + ',left=' + window_left + '');
}

//------------------------ º´¿ø°Ë»ö ----------------------------
function OpenHosp(z){
	var window_left = (screen.width-640)/2;
	var window_top = (screen.height-480)/2;
	murl = "/office_search.html?field="+z
	window.open(murl,"HosWin",'width=466,height=175,scrollbars=yes,top=' + window_top + ',left=' + window_left + '');
}



//------------------------ »çÁø ÀÔ·Â ----------------------------
function OpenPhoto(str){
	var window_left = (screen.width-640)/2;
	var window_top = (screen.height-480)/2;
	murl = "/photo_up.html?num="+str;
	window.open(murl,"PhoWin",'width=441,height=256,top=' + window_top + ',left=' + window_left + '');
}

//------------------------ °øÁö»çÇ× PopUp ----------------------------
function OpenNotify(murl){
	var window_left = (screen.width-640)/2;
	var window_top = (screen.height-480)/2;
	window.open(murl,"NoticeWin",'width=529,height=410,scrollbars=yes,top=' + window_top + ',left=' + window_left + '');
}

//------------------------ ÀÇ·á°è´º½º PopUp ----------------------------
function OpenNews(murl){
	var window_left = (screen.width-640)/2;
	var window_top = (screen.height-480)/2;
	window.open(murl,"NewsWin",'width=529,height=410,scrollbars=yes,top=' + window_top + ',left=' + window_left + '');
}

//------------------------ Çà»çÀÏÁ¤ PopUp ----------------------------
function OpenEvent(murl){ 
	var window_left = (screen.width-640)/2;
	var window_top = (screen.height-480)/2;
	window.open(murl,"NewsWin",'width=529,height=410,scrollbars=yes,top=' + window_top + ',left=' + window_left + '');
}

//------------------------ »èÁ¦ ----------------------------
function delconf(murl)
{
	if(confirm("Á¤¸» »èÁ¦ÇÏ½Ã°Ú½À´Ï±î?"))
	window.location = murl;
}

//---------------------- ÂÊÁö popup -------------
function Memo_open(myurl){
	var window_left = (screen.width-640)/2;
	var window_top = (screen.height-480)/2;
	window.open (myurl, "memo", 'width=370, height=268,scrollbars=yes,top=' + window_top + ',left=' + window_left + '')
}

//---------------------- ÂÊÁö -------------
function Memo_wasteconf(murl){
	if(confirm("Á¤¸» »èÁ¦ÇÏ½Ã°Ú½À´Ï±î?\n\nÈÞÁöÅë·Î ÀÌµ¿µË´Ï´Ù."))
	window.location = murl;
}

//---------------------- ÂÊÁö -------------
function Memo_delconf(murl){
	if(confirm("Á¤¸» »èÁ¦ÇÏ½Ã°Ú½À´Ï±î?\n\n¼±ÅÃÇÑ ÂÊÁö°¡ ¿ÏÀüÈ÷ »èÁ¦µË´Ï´Ù."))
	window.location = murl;
}

//---------------------- ÂÊÁö -------------
function Sender_delconf(murl){
	if(confirm("ÂÊÁö¸¦ »èÁ¦ÇÏ½Ã°Ú½À´Ï±î?"))
	window.location = murl;
}

//---------------------- ÂÊÁö -------------
function Memo_actconf(murl){
	if(confirm("ÂÊÁö¸¦ º¹±¸ ÇÏ½Ã°Ú½À´Ï±î?"))
	window.location = murl;
}

//----------------------- ¾ÆÀÌµð / ÆÐ½º¿öµå Ã£±â ----------------------------
function Find_Send(theForm)
{
	if (!theForm.name.value) {
		window.alert("¼º¸íÀ» ÀÔ·ÂÇÏ½Ê½Ã¿ä.");
		theForm.name.focus();
		return false;
	}
	if (!theForm.jumin.value) {
		window.alert("ÁÖ¹Îµî·Ï¹øÈ£¸¦ ÀÔ·ÂÇÏ½Ê½Ã¿ä.");
		theForm.jumin.focus();
		return false;
	}
}


//--------------------- ÆÄÀÏ Æ÷¸Ë CHECK -------------------------
function formatChk(theForm)
{
    var fname = theForm.value;
    sp_arry = fname.split(".");
    sp_einx = sp_arry.length - 1;
    sp_arry[sp_einx] = sp_arry[sp_einx].toLowerCase();

	return sp_arry[sp_einx];
}
//----------------------- È¸¿ø°Ë»ö ----------------------------
function User_send(theForm)
{
	var cnt = 0;
	for( var i=0; i< theForm.elements.length; i++)
	{
		var temp = theForm.elements[i];
		if(temp.value != "")
		cnt += 1;
	}
	if (cnt == 0)
	{
		window.alert("ÇÑ°¡Áö ÀÌ»óÀÇ °Ë»öÁ¶°Ç°ú °Ë»ö¾î¸¦ ¼±ÅÃ,ÀÔ·ÂÇÏ½Ê½Ã¿ä.");
		theForm.key.focus();
		return false;
	}else{
		if(theForm.key.value != "" && !theForm.keyword.value){
			window.alert("°Ë»ö¾î¸¦ ÀÔ·ÂÇÏ½Ê½Ã¿ä.");
			theForm.keyword.focus();
			return false;
		}
		if(theForm.keyword.value != "" && !theForm.key.value){
			window.alert("°Ë»öÁ¶°ÇÀ» ¼±ÅÃÇÏ½Ê½Ã¿ä.");
			theForm.key.focus();
			return false;
		}
	}
}

function goQuiz()
{
	document.times_form.submit();
}

//------------------ ¾à°ü¿¡ µ¿ÀÇ --------------
function Chk_poll(theForm)
{
	if(!radioCheck(theForm.item))
	{
		alert("Ç×¸ñÀ» ¼±ÅÃÇØ ÁÖ½Ê½Ã¿À.");
		theForm.item[0].focus();
		return false; 
	}
}

//------------------ ¾à°ü¿¡ µ¿ÀÇ --------------
function Chk_poll2(theForm)
{
	var num = document.poll_frm.num.value;
 
	for(var i = 0; i < document.poll_frm.item.length; i++) {
		if(document.poll_frm.item[i].checked == true) break;
	}
	if(i == document.poll_frm.item.length) {
		alert('Ç×¸ñÀ» ¼±ÅÃÇÏ¿© ÁÖ½Ê½Ã¿À.');
		return;
	}

	var window_left = (screen.width-640)/2;
	var window_top = (screen.height-480)/2;

	mUrl = "/poll/poll.php?num=" + num + "&item=" + document.poll_frm.item[i].value;
	window.open(mUrl,'poll','width=600,height=500,scrollbars=yes,resizable=yes,top=' + window_top + ',left=' + window_left + ''); 
	return false;
	theForm.submit();
}

//----------------- ÆË¾÷ -------------------------
function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}

//----------------- ÄûÁî ÆË¾÷ -------------------------
function openWin(murl,msize){
	window.open(murl,"popup",msize)
}
//------------------ ·Î±×ÀÎ CHECK --------------
function Loginsubmit() 
{
	window.alert("È¸¿øÀü¿ë°ø°£ÀÔ´Ï´Ù.");
	return false;
}

//----------------- °Ë»ö Á¶°ÇÁß ¼Ò¼ÓÀÏ¶§ selectbox·Î ³ªÅ¸³»±â---------
function type_list(){


}

//ÁÖ¹Î¹øÈ£ À¯È¿¼ºÀ» Ã¼Å© -- 2003.12.23 ½ÅÈ£Á¤
function JuminCheck(no1,no2)
	{
		if (no1.length != 6)
		{
		   return false;
		}
		else if (no2.length != 7)
		{
		   return false;
		}
		else
		{
		   var str_serial1 = no1;
		   var str_serial2 = no2;
		   var digit=0
		   for (var i=0;i<str_serial1.length;i++){
		   	var str_dig=str_serial1.substring(i,i+1);
		   	if (str_dig<'0' || str_dig>'9'){
		   	digit=digit+1
		   }
		}
		 if ((str_serial1 == '') || ( digit != 0 ))
		 {
			return false;
		  }
		 var digit1=0
			for (var i=0;i<str_serial2.length;i++){
				var str_dig1=str_serial2.substring(i,i+1);
				 if (str_dig1<'0' || str_dig1>'9'){
					 digit1=digit1+1
					}
		 }
		 if ((str_serial2 == '') || ( digit1 != 0 ))
		 {
			return false;
		  }
		 if (str_serial1.substring(2,3) > 1)
		 {
			return false;
		  }
		 if (str_serial1.substring(4,5) > 3)
		 {
			return false;
		  }
		 if (str_serial2.substring(0,1) > 4 || str_serial2.substring(0,1) == 0)
		 {
			return false;
		  }
			var a1=str_serial1.substring(0,1)
			var a2=str_serial1.substring(1,2)
			var a3=str_serial1.substring(2,3)
			var a4=str_serial1.substring(3,4)
			var a5=str_serial1.substring(4,5)
			var a6=str_serial1.substring(5,6)
			var check_digit=a1*2+a2*3+a3*4+a4*5+a5*6+a6*7

			var b1=str_serial2.substring(0,1)
			var b2=str_serial2.substring(1,2)
			var b3=str_serial2.substring(2,3)
			var b4=str_serial2.substring(3,4)
			var b5=str_serial2.substring(4,5)
			var b6=str_serial2.substring(5,6)
			var b7=str_serial2.substring(6,7)
			var check_digit=check_digit+b1*8+b2*9+b3*2+b4*3+b5*4+b6*5

			check_digit = check_digit%11
			check_digit = 11 - check_digit
			check_digit = check_digit%10

		 if (check_digit != b7)
		 {
			return false;
		 }
		 else
		 {
			return true;
		 }
 		}
	}

//
function onCheck(theForm){

	if(theForm.id.value=="")
	{
		alert("¾ÆÀÌµð¸¦ ÀÔ·ÂÇÏ¼¼¿ä!");
		theForm.id.focus();
		return false;
	}
	if(theForm.id.length<4 || theForm.id.length>8){
		alert("ID´Â 4ÀÚ¸®ÀÌ»ó 8ÀÚ¸®ÀÌÇÏ ¿µ¹®¼ýÀÚÁ¶ÇÕÀ¸·Î »ç¿ë°¡´ÉÇÕ´Ï´Ù.");
		theForm.id.focus();
		return false;
	}
	if(theForm.pwd.value=="")
	{
		alert("ºñ¹Ð¹øÈ£¸¦ ÀÔ·ÂÇÏ¼¼¿ä!");
		theForm.pwd.focus();
		return false;
	}
	if(theForm.pwd_re.value=="")
	{
		alert("ºñ¹Ð¹øÈ£ È®ÀÎÀ» ÀÔ·ÂÇÏ¼¼¿ä!");
		theForm.pwd_re.focus();
		return false;
	}
	if(theForm.pwd.value != theForm.pwd_re.value){
		alert("ºñ¹Ð¹øÈ£¿Í È®ÀÎÀÌ ÀÏÄ¡ÇÏÁö ¾Ê½À´Ï´Ù!");
		theForm.pwd_re.focus();
		return false;
	}
	if(theForm.name.value=="")
	{
		alert("ÀÌ¸§À» ÀÔ·ÂÇÏ¼¼¿ä!");
		theForm.name.focus();
		return false;
	}
	if(theForm.jumin1.value=="")
	{
		alert("ÁÖ¹Î¹øÈ£¸¦ ÀÔ·ÂÇÏ¼¼¿ä!");
		theForm.jumin1.focus();
		return false;
	}
	if(theForm.jumin2.value=="")
	{
		alert("ÁÖ¹Î¹øÈ£¸¦ ÀÔ·ÂÇÏ¼¼¿ä!");
		theForm.jumin2.focus();
		return false;
	}
	//Å×½ºÆ®¸¦ À§ÇØ ¸·¾Æ ³õÀ½
	/*if(!JuminCheck(theForm.jumin1.value,theForm.jumin2.value)){
		alert("ÁÖ¹Î¹øÈ£°¡ À¯È¿ÇÏÁö ¾Ê½À´Ï´Ù!");
		theForm.jumin1.focus();
		return false;
	}*/
	if (theForm.email.value=="")
	{
		alert("E-mailÀ» ÀÔ·ÂÇÏ¼¼¿ä!");
		theForm.email.focus();
		return false;
	}
	if (!isEmail(theForm.email.value))
	{
		alert("E-mailÀÌ Çü½Ä¿¡ ¸ÂÁö ¾Ê½À´Ï´Ù.");
		theForm.email.value="";
		theForm.email.focus();
		return false;
	}
	if(!radioCheck(theForm.marry))
	{
		alert("°áÈ¥À¯¹«¸¦ Ã¼Å©ÇÏ¼¼¿ä!");
		theForm.marry[0].focus();
		return false;
	}
	if(theForm.religion.value=="")
	{
		alert("Á¾±³¸¦ ÀÔ·ÂÇÏ¼¼¿ä!");
		theForm.religion.focus();
		return false;
	}

	if(theForm.zip1.value=="")
	{
		alert("ÀÚÅÃ ¿ìÆí¹øÈ£¸¦ ÀÔ·ÂÇÏ¼¼¿ä!");
		return false;
	}
	if(theForm.addr.value=="")
	{
		alert("ÀÚÅÃÁÖ¼Ò¸¦ ÀÔ·ÂÇÏ¼¼¿ä!");
		theForm.addr.focus();
		return false;
	}
	/*if(theForm.of_zip1.value=="")
	{
		alert("Á÷Àå ¿ìÆí¹øÈ£¸¦ ÀÔ·ÂÇÏ¼¼¿ä!");
		return false;
	}
	if(theForm.of_addr.value=="")
	{
		alert("Á÷ÀåÁÖ¼Ò¸¦ ÀÔ·ÂÇÏ¼¼¿ä!");
		theForm.of_addr.focus();
		return false;
	}*/
	if(theForm.tel1.value=="" || theForm.tel2.value=="" || theForm.tel3.value=="" )
	{
		alert("ÀÚÅÃÀüÈ­¸¦ ÀÔ·ÂÇÏ¼¼¿ä!");
		theForm.tel1.focus();
		return false;
	}
	if(theForm.of_tel1.value=="" || theForm.of_tel2.value=="" || theForm.of_tel3.value=="" )
	{
		alert("Á÷ÀåÀüÈ­¸¦ ÀÔ·ÂÇÏ¼¼¿ä!");
		theForm.of_tel1.focus();
		return false;
	}
	if(theForm.pcs1.value=="" || theForm.pcs2.value=="" || theForm.pcs3.value=="" )
	{
		alert("ÈÞ´ëÆù ¹øÈ£¸¦ ÀÔ·ÂÇÏ¼¼¿ä!");
		theForm.pcs1.focus();
		return false;
	}
	if(theForm.serve_check.checked==true){
		if(theForm.hope_serve.value=="")
		{
			alert("Èñ¸ÁºÀ»ç ºÐ·ù¸¦ ÀÔ·ÂÇÏ¼¼¿ä!");
			theForm.hope_serve.focus();
			return false;
		}
		if(theForm.serve_time.value=="")
		{
			alert("ºÀ»ç°¡´É±â°£À» ÀÔ·ÂÇÏ¼¼¿ä!");
			theForm.serve_time.focus();
			return false;
		}
		if(!radioCheck(theForm.before_serve))
		{
			alert("ÀÌÀü ºÀ»ç¿©ºÎ À¯¹«¸¦ Ã¼Å©ÇÏ¼¼¿ä!");
			theForm.before_serve[0].focus();
			return false;
		}
	}

	theForm.action="register_detail_ok.html";
	return true; 
}

//°¡ÀÔÁß ºÀ»ç°ü·Ã ÀÔ·ÂºÎºÐ »ç¶óÁö°í ³ªÅ¸³ª´Â function
function bongsa(rform){
	if(rform.serve_check.checked==true){
		document.all.hs.style.display = "block";
		document.all.st.style.display = "block";
		document.all.ar.style.display = "block";
		document.all.bs.style.display = "block";
		rform.serve_check.value="Y";
	}else{
		document.all.hs.style.display = "none";
		document.all.st.style.display = "none";
		document.all.ar.style.display = "none";
		document.all.bs.style.display = "none";
		rform.serve_check.value="N";
	}
}

//°¡ÀÔÁß Àü°øÀÇ,Àü¹®ÀÇ ÀÔ·ÂºÎºÐ »ç¶óÁö°í ³ªÅ¸³ª´Â function
function junmon(flag){
	if(flag==2){
		document.all.jm_no.style.display = "none";
		document.all.j_d.style.display = "none";
		document.all.jm_date.style.display = "none";
		document.all.jg_no.style.display = "none";
	}else{
		document.all.jm_no.style.display = "";
		document.all.j_d.style.display = "";
		document.all.jm_date.style.display = "";
		document.all.jg_no.style.display = "";
	}
}

function s_Check(form)
{
	var form = document.signform;
	if(!/(^[0-9]{3,12}$)/.test(form.special_num.value))
	{
		alert("¿Ã¹Ù¸¥ Àü¹®ÀÇ¹øÈ£¸¦ ÀÔ·ÂÇØ ÁÖ¼¼¿ä!");
//		form.special_num.value=""; 
		form.special_num.focus();
		return false;
	}
	return true;
}

function s_Search(form)
{
	if(!form.special_num.value)
	{
		alert('Àü¹®ÀÇ¹øÈ£¸¦ ÀÔ·ÂÇØ ÁÖ¼¼¿ä!');
		form.special_num.focus();
		return false;
	}else
	{
		if(s_Check(form))
		{
			var wmd = window.open('/s_result.html?special_num='+ form.special_num.value,'s_search','width=280,height=200,top=200,left=300');
			wmd.focus();
		}
	}
	return true;
}

function l_Check(form)
{
	var form = document.signform; 
	if(!/(^[0-9]{3,12}$)/.test(form.license_num.value))
	{
		alert("¿Ã¹Ù¸¥ ÀÇ»ç¸éÇã¹øÈ£¸¦ ÀÔ·ÂÇØ ÁÖ¼¼¿ä!");
//		form.doc_num.value="";
		form.license_num.focus();
		return false; 
	}
	return true;
}

function l_Search(form)
{
	if(!form.license_num.value)
	{
		alert('ÀÇ»ç¸éÇã¹øÈ£¸¦ ÀÔ·ÂÇØ ÁÖ¼¼¿ä!');
		form.license_num.focus();
		return false;
	}else
	{
		if(l_Check(form))
		{
			var wmd = window.open('/l_result.html?license_num='+ form.license_num.value,'l_search','width=280,height=200,top=200,left=300');
			wmd.focus();
		}
	}
	return true;
}

function autor_checkid()
{
	if(document.signform.webmail_id.value !='')
	{
		SB_ID = /^[A-Za-z_\-]/;
		if (!SB_ID.test(document.signform.webmail_id.value))
		{
			alert('¾ÆÀÌµð´Â Ã³À½Àº ¿µ¹®À¸·Î ½ÃÀÛÇØ¾ßÇÏ°í. \n ¿µ¹®ÀÚ¿Í ¼ýÀÚ¸¸ °¡´ÉÇÕ´Ï´Ù.');
			document.signform.webmail_id.value="";
			document.signform.webmail_id.focus();
			return;
		}

		var i
		var Digit = '<>?/\\+=-_)(*&^%$#@!.,;:\{\}[]\"\'\`\~'
		astr = Digit
		var t=document.signform.webmail_id.value
		if (astr.length > 1)
		{
			for(i=0;i<t.length;i++)
			{
				if(astr.indexOf(t.substring(i,i+1))>=0)
				{
					alert('¾ÆÀÌµð¿¡ Æ¯¼ö¹®ÀÚ´Â ÀÔ·Â¾ÈµË´Ï´Ù.');
					document.signform.webmail_id.value="";
					document.signform.webmail_id.focus();
					return;
				}
			}
		}
		str=document.signform;
		if (str.webmail_id.value.length < 4 || str.webmail_id.value.length > 20)
		{
			alert("¾ÆÀÌµð´Â 4±ÛÀÚ ÀÌ»ó 20±ÛÀÚ ÀÌ³»ÀÌ¾î¾ß ÇÕ´Ï´Ù.");
			document.signform.webmail_id.focus();
			return;
		}
	}
}

function idCheck(rform){
	if(rform.id.value==""){
		alert("ID¸¦ ÀÔ·ÂÇÏ¼¼¿ä!");
		rform.id.focus();
		return ;
	}else{
		if(rform.id.value.length<4 || rform.id.value.length>8){
			alert("ID´Â 4ÀÚ¸®ÀÌ»ó 8ÀÚ¸®ÀÌÇÏ ¿µ¹®¼ýÀÚÁ¶ÇÕÀ¸·Î »ç¿ë°¡´ÉÇÕ´Ï´Ù.");
			rform.id.focus();
			return;
		}else{
			Win_scroll('/check_id.html?id='+rform.id.value,380,300);
		}
	}
}

function idCheck_auth(rform){
	if(rform.f_commname.value==""){
		alert("Ä«Æä¸íÀ» ÀÔ·ÂÇÏ¼¼¿ä!");
		rform.f_commname.focus();
		return ;
	}else{
			Win_scroll('/club/id_check_auth.html?name='+rform.f_commname.value,380,300);
	}
}


function checkIt(form){
   if (form.user_id.value=="") {
      alert("(ID)¸¦ ÀÔ·ÂÇÏ¼¼¿ä!");
      form.user_id.focus();
      return false;
   }
   if (form.user_passwd.value=="") {
      alert("ºñ¹Ð¹øÈ£¸¦ ÀÔ·ÂÇÏ¼¼¿ä!\n\nºñ¹Ð¹øÈ£´Â ÁÖ¹Îµî·Ï¹øÈ£ µÞÀÚ¸®ÀÔ´Ï´Ù.");
      form.user_passwd.focus();
      return false;
   }

	return true;
}

function ZipWindow(ref,what)
{
	var window_left = (screen.width-640)/2;
	var window_top = (screen.height-480)/2;
	ref = ref + "?what=" + what;
	window.open(ref,"zipWin",'width=400,height=400,status=no,resizable=yes,top=' + window_top + ',left=' + window_left + '');
}
function put_postno(p_code,p_juso)
{
	document.signform.of_zip.value = p_code;
	document.signform.of_addr.value = p_juso ;
	//document.signform.office_addr.focus();
	return;
}

function put_postno2(p_code,p_juso)
{
	document.signform.home_zipcode.value = p_code ;
	document.signform.home_addr.value = p_juso ;
	//document.signform.home_addr2.focus();
	return;
}

function put_postno3(p_code,p_juso) {
	var code_arr = p_code.split("-");
	document.checkform.addr_num1.value = code_arr[0];
	document.checkform.addr_num2.value = code_arr[1];
	document.checkform.addr.value = p_juso;
	return;
}

function IsNumber(formname)
{
	var form = eval("document.signform." + 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;
}

function checkInput(form)
{
	if(form.id.value=="")
	{
		alert("¾ÆÀÌµð¸¦ ÀÔ·ÂÇÏ¼¼¿ä!");
		form.id.focus();
		return false;
	}
	if(form.id.length<4 || form.id.length>15){
		alert("ID´Â 4ÀÚ¸®ÀÌ»ó 15ÀÚ¸®ÀÌÇÏ ¿µ¹®¼ýÀÚÁ¶ÇÕÀ¸·Î »ç¿ë°¡´ÉÇÕ´Ï´Ù.");
		form.id.focus();
		return false;
	}
	if(form.pwd.value=="")
	{
		alert("ºñ¹Ð¹øÈ£¸¦ ÀÔ·ÂÇÏ¼¼¿ä!");
		form.pwd.focus();
		return false;
	}
	if(form.pwd_re.value=="")
	{
		alert("ºñ¹Ð¹øÈ£ È®ÀÎÀ» ÀÔ·ÂÇÏ¼¼¿ä!");
		form.pwd_re.focus();
		return false;
	}
	if(form.pwd.value != form.pwd_re.value){
		alert("ºñ¹Ð¹øÈ£¿Í È®ÀÎÀÌ ÀÏÄ¡ÇÏÁö ¾Ê½À´Ï´Ù!");
		form.pwd_re.focus();
		return false;
	}

	if (!form.kname.value)
	{
		alert("ÀÌ¸§À» ÀÔ·ÂÇÏ¼¼¿ä!");
		form.kname.focus();
		return false;
	}

/*	if (!form.ename.value)
	{
		alert("¿µ¹® ÀÌ¸§À» ÀÔ·ÂÇÏ¼¼¿ä!");
		form.ename.focus();
		return false;
	}
	if(!form.email.value){
		alert('ÀÌ¸ÞÀÏÀ» ÀÔ·ÂÇØÁÖ¼¼¿ä');
		form.email.focus();
		return false;
	}
	else
	{
		if (!isEmail(form.email.value))
		{
			alert("Email ÁÖ¼ÒÇü½ÄÀÌ Æ²·È½À´Ï´Ù");
			form.email.value = "";
			form.email.focus();
			valid = false;
			return false;
		}
	}
*/
	if(form.jumin1.value=="" || form.jumin2.value==""){
		alert("ÁÖ¹Î¹øÈ£¸¦ ÀÔ·ÂÇÏ¼¼¿ä!");
		form.jumin1.focus();
		return false;
	}/*else if(!JuminCheck(form.jumin_number1.value,form.jumin_number2.value)){
		alert("ÁÖ¹Î¹øÈ£°¡ À¯È¿ÇÏÁö ¾Ê½À´Ï´Ù!");
		form.jumin_number1.focus();
		return false;
	}*/

	/*if(form.user_level.value==1){
		if(!/(^[0-9]{2,10}$)/.test(form.special_num.value))
		{
			if(form.special_num.value=="")
			{
				alert("Àü¹®ÀÇ¹øÈ£¸¦ ÀÔ·ÂÇÏ¼¼¿ä!");
				form.special_num.focus();
				return false; 

			}
			alert("¼ýÀÚ·Î µÈ ¿Ã¹Ù¸¥ Àü¹®ÀÇ¹øÈ£¸¦ ÀÔ·ÂÇØ ÁÖ¼¼¿ä");
			form.special_num.select();
			form.special_num.focus();
			return false;
		}
	}else if(form.user_level.value==2){
		
			if (!form.reg_number.value)
			{
				alert("Àü°øÀÇ ¹øÈ£¸¦ ÀÔ·ÂÇÏ¼¼¿ä!");
				form.reg_number.focus();
				return false;
			}
			if(form.reg_number.value)
			{
				if(!IsNumber(form.reg_number.name))
				{ 
					alert("Àü°øÀÇ¹øÈ£´Â ¼ýÀÚ¿©¾ß ÇÕ´Ï´Ù!");
					form.reg_number.focus();
					form.reg_number.select();
					return false;
				}
			}
		
	}
	*/

	if(!/(^[0-9]{2,10}$)/.test(form.license_num.value))
	{
		if(form.license_num.value=="")
		{
			alert("ÀÇ»ç¸éÇã¹øÈ£¸¦ ÀÔ·ÂÇÏ¼¼¿ä!");
			form.license_num.focus();
			return false;

		}
		alert("¼ýÀÚ·Î µÈ ¿Ã¹Ù¸¥ ÀÇ»ç¸éÇã¹øÈ£¸¦ ÀÔ·ÂÇØ ÁÖ¼¼¿ä");
		form.license_num.select();
		form.license_num.focus();
		return false;
	}

	if(form.univ.value=="" && form.univ_etc.value == "")
	{
		alert("Ãâ½ÅÀÇ°ú ´ëÇÐÀ» ¼±ÅÃÇÏ¼Å¾ß ÇÕ´Ï´Ù.");
		form.univ.focus();
		return false;
	}

	if(!radioCheck(form.office_type))
	{
		alert("±Ù¹«Ã³±¸ºÐÀ» ¼±ÅÃÇÏ¼Å¾ß ÇÕ´Ï´Ù.");
		form.office_type[0].focus();
		return false;
    }

	if (!form.office.value)
	{
		alert("±Ù¹«Ã³¸íÀ» ÀÔ·ÂÇÏ¼¼¿ä!");
		form.office.focus();
		return false;
	}

	if (form.of_zip1.value=="" || form.of_zip2.value=="" )
	{
		alert("±Ù¹«ÇÏ½Ã´Â °÷ÀÇ ¿ìÆí¹øÈ£¸¦ ÀÔ·ÂÇÏ¼¼¿ä!");
		return false;
	}

	if (!form.of_addr.value)
	{
		alert("±Ù¹«ÇÏ½Ã´Â °÷ÀÇ ÁÖ¼Ò¸¦ ÀÔ·ÂÇÏ¼¼¿ä!");
		form.of_addr.focus();
		return false;
	}
	if (form.of_tel1_1.value=="" || form.of_tel1_2.value=="" || form.of_tel1_3.value=="")
	{
		alert("±Ù¹«ÇÏ½Ã´Â °÷ÀÇ ÀüÈ­¹øÈ£¸¦ ÀÔ·ÂÇÏ¼¼¿ä!");
		form.of_tel1_1.focus();
		return false;
	}

	if (form.h_zip1.value=="" || form.h_zip2.value=="")
	{
		alert("ÀÚÅÃ¿ìÆí¹øÈ£¸¦ ÀÔ·ÂÇÏ¼¼¿ä!");
		return false;
	}
	if (!form.h_addr.value)
	{
		alert("ÀÚÅÃÁÖ¼Ò¸¦ ÀÔ·ÂÇÏ¼¼¿ä!"); 
		form.h_addr.focus();
		return false;
	}
	if (form.h_tel_1.value=="" || form.h_tel_2.value=="" || form.h_tel_3.value=="") 
	{
		alert("ÀÚÅÃÀüÈ­¹øÈ£¸¦ ÀÔ·ÂÇÏ¼¼¿ä!");
		form.h_tel_1.focus();
		return false;
	}
	if (form.pcs1.value=="" || form.pcs2.value=="" ||form.pcs3.value=="")
	{
		alert("ÇÚµåÆù¹øÈ£¸¦ ÀÔ·ÂÇÏ¼¼¿ä!");
		form.pcs1.focus();
		return false;
	}

	
	return true;
}

function regist_Frm(theForm){
	theForm.action = "register.php";
	return true;
}

function back_Frm(theForm){
	theForm.action = "register_detail.html";
	theForm.submit();
}


// ¸ÞÀÎÆäÀÌÁö ¹è³Ê ½½¶óÀÌµù //////////////////////////////////////////////////
function start(){
 if (document.all)  scroller.start();
}
function stop(){
 if (document.all)  scroller.stop();
}

//²¿¸®±Û ´Þ±â
function Tail_Frm(theForm){
	if (!theForm.tbody.value)
	{
		alert("±Û³»¿ëÀ» ÀÔ·ÂÇÏ¼¼¿ä!");
		theForm.tbody.focus();
		return false;
	}
	if(theForm.tbody.value.length > 50){
		alert("50ÀÚ ÀÌ³»·Î ÀÛ¼ºÇØÁÖ¼¼¿ä.");
		theForm.tbody.focus();
		return false;
	}

	return true;
}

//»èÁ¦ÇÏ±â
function all_del(path){
	if(confirm('»èÁ¦ÇÏ½Ã°Ú½À´Ï±î?')){
		location.href=path;
	}
}

function all_del_total(path,str){
	if(confirm(str)){
		location.href=path;
	}
}

//
function checkEvent(sform){
	if(!sform.name.value){
		alert("ÀÛ¼ºÀÚ ÀÌ¸§À» ÀÔ·ÂÇÏ¼¼¿ä!");
		sform.name.focus();
		return false;
	}
	if (!sform.email.value)
	{
		alert("E-mailÀ» ÀÔ·ÂÇÏ¼¼¿ä!");
		sform.email.focus();
		return false;
	}
	if (!isEmail(sform.email.value))
	{
		alert("E-mailÀÌ Çü½Ä¿¡ ¸ÂÁö ¾Ê½À´Ï´Ù.");
		sform.email.value="";
		sform.email.focus();
		return false;
	}
	if (!sform.event.value)
	{
		alert("Çà»ç¸íÀ» ÀÔ·ÂÇÏ¼¼¿ä!");
		sform.event.focus();
		return false;
	}
	if (!sform.body.value)
	{
		alert("Çà»ç³»¿ëÀ» ÀÔ·ÂÇÏ¼¼¿ä!");
		sform.body.focus();
		return false;
	}
	if (!sform.place.value)
	{
		alert("Çà»çÀå¼ÒÀ» ÀÔ·ÂÇÏ¼¼¿ä!");
		sform.place.focus();
		return false;
	}
 
	return true;
}

//¸ÞÀÏ¾²±â-À§¿øÈ¸
function send_mail(sect,tosid,fromname,fromsid){
	var window_left = (screen.width-640)/2;
	var window_top = (screen.height-480)/2;
	var wide = 450;
	var high = 400;
	var theURL = "/wewon/message_write.html?section="+sect+"&tosid="+tosid+"&fromname="+fromname+"&fromsid="+fromsid+"&mode=S";
	//alert(theURL);
	window.open(theURL,"Newwin",'width='+wide+',height='+high+',scrollbars=yes,resizable=yes,top=' + window_top + ',left=' + window_left + '');
}

//¸ÞÀÏ¾²±â-À§¿øÈ¸ ¿©·¯»ç¶÷¿¡°Ô
function send_mail_total(sect,Brd_Frm,cname){
	var sid="";
	//------------------------ ÀüÃ¼Ã¼Å© ----------------------------
	//alert(Brd_Frm.elements.length);

	for( var i=1; i<Brd_Frm.elements.length; i++)
	{
		var check = Brd_Frm.elements[i];
		if (check.checked)
		{
			//to=eval("document.Brd_Frm.to"+i+".value");
			to=check.value;
			if(sid==""){
				sid=to;
			}else{
				sid=sid+","+to;
			}

		}
	}
	if(!sid){
		alert("´ë»óÀÚ¸¦ ¼±ÅÃÇÏ¼¼¿ä!");
		return false;
	}

	var window_left = (screen.width-640)/2;
	var window_top = (screen.height-480)/2;
	var wide = 500;
	var high = 500;
	var theURL = "/wewon/message_write.html?section="+sect+"&cname="+cname+"&sid_list="+sid+"&mode=M";
	//alert(theURL);
	window.open(theURL,"Newwin",'width='+wide+',height='+high+',scrollbars=yes,resizable=yes,top=' + window_top + ',left=' + window_left + '');
}



//¸Þ¼¼Áö ¾²±â-À§¿øÈ¸ 
function send_msg(tosid,toname,fromsid,fromname){
	var window_left = (screen.width-640)/2;
	var window_top = (screen.height-480)/2;
	var wide = 450;
	var high = 400;
	var theURL = "/board/message_write_2.html?tosid="+tosid+"&toname="+toname+"&fromname="+fromname+"&fromsid="+fromsid;
	//alert(theURL);
	window.open(theURL,"Newwin",'width='+wide+',height='+high+',scrollbars=yes,resizable=yes,top=' + window_top + ',left=' + window_left + '');
}


function deb_Frm(sform){
	if(!sform.name.value){
		alert("ÀÛ¼ºÀÚ ÀÌ¸§À» ÀÔ·ÂÇÏ¼¼¿ä!");
		sform.name.focus();
		return false;
	}
	if (!sform.email.value)
	{
		alert("E-mailÀ» ÀÔ·ÂÇÏ¼¼¿ä!");
		sform.email.focus();
		return false;
	}
	if (!isEmail(sform.email.value))
	{
		alert("E-mailÀÌ Çü½Ä¿¡ ¸ÂÁö ¾Ê½À´Ï´Ù.");
		sform.email.value="";
		sform.email.focus();
		return false;
	}
	if (!sform.title.value)
	{
		alert("Åä·ÐÁÖÁ¦¸¦ ÀÔ·ÂÇÏ¼¼¿ä!");
		sform.title.focus();
		return false;
	}
	if (!sform.body.value)
	{
		alert("Åä·Ð³»¿ëÀ» ÀÔ·ÂÇÏ¼¼¿ä!");
		sform.body.focus();
		return false;
	}

	return true;
}


function checkItboard(form){
	if (!form.thesis_id.value)
	{   
		alert('³í¹®¹øÈ£À» ÀÔ·ÂÇØ ÁÖ¼¼¿ä');
		form.thesis_id.focus();
		return false;
	}

	if (!form.author.value)
	{     
		alert('Ã¥ÀÓÀúÀÚ¸íÀ» ÀÔ·ÂÇØ ÁÖ¼¼¿ä');
		form.author.focus();
		return false;
	}
	return true;
}

//------------------------ °Ë»öÈÄ ÂÊÁö º¸³»±â PopUp ----------------------------
function Memo_Win(murl,wth,ht){ 
	var window_left = (screen.width-640)/2;
	var window_top = (screen.height-480)/2;
	window.open(murl,"NewsWin",'width=630,height=410,scrollbars=yes,top=' + window_top + ',left=' + window_left + '');
}

function SMS_open(myurl){
	window.open (myurl, "sms", "width=174,height=352,top=20,left=20,scrollbars=no, resizable=no")
}


function checkword(word)
{
	var charword;
	for(var i = 0; i < word.length; i++)
	{
		charword = word.charAt(i);
		if(charword.indexOf(" ") == -1) return true;
	}
	return false;
}

/*if(!radioCheck(form))
	{
		alert("°áÈ¥À¯¹«¸¦ ¼±ÅÃÇØÁÖ¼¼¿ä!");
		form.marry[0].focus();
		return false;
   }
*/


function hospcheck(form)
{
	if(form.pwd.value.length < 4 || form.pwd.value.length > 8 || !checkword(form.pwd.value))
	{
		alert("ºñ¹Ð¹øÈ£¸¦ ÀûÀ¸¼¼¿ä!!");
		form.pwd.focus();
		return false;
	}

	if(form.re_pwd.value.length < 4 || form.re_pwd.value.length > 8 || !checkword(form.re_pwd.value))
	{
		alert("ºñ¹Ð¹øÈ£È®ÀÎÀ» ÀûÀ¸¼¼¿ä!!");
		form.re_pwd.focus();
		return false;
	}

	if(form.pwd.value != form.re_pwd.value){
		alert("ºñ¹Ð¹øÈ£¿Í È®ÀÎÀÌ ÀÏÄ¡ÇÏÁö ¾Ê½À´Ï´Ù!");
		form.re_pwd.value="";
		form.re_pwd.focus();
		return false;
	}

	if(!form.hosp_name.value.length || !checkword(form.hosp_name.value))
	{
		alert("º´¿ø¸íÀ» ÀûÀ¸¼¼¿ä!!");
		form.hosp_name.focus();
		return false;
	}
	else if(!form.chief_name.value || !checkword(form.chief_name.value))
	{
		alert("¿øÀå¼±»ý´Ô¸íÀ» ÀûÀ¸¼¼¿ä!!");
		form.chief_name.focus();
		return false;
	}
	/*else if(!form.email.value || form.email.value.indexOf('@') < 2 || form.email.value.indexOf('.')  < 2)
	{
		window.alert("E-mailÀ»  Àß¸ø ÀÔ·ÂÇÏ¿´½À´Ï´Ù!!");
		form.email.focus();
		return false;
	}
	else if(!isEmail(form.email.value))
	{
		alert("E-mailÀ»  Àß¸ø ÀÔ·ÂÇÏ¿´½À´Ï´Ù!!");
		form.email.focus();
		return false;
	}*/
	else if(form.of_zip1.value.length != 3 || !Check_Num(form.of_zip1))
	{
		alert("¿ìÆí¹øÈ£¸¦ ÀûÀ¸¼¼¿ä!!");
		//form.of_zip1.focus();
		return false;
	}
	else if(form.of_zip2.value.length != 3 || !Check_Num(form.of_zip2))
	{
		alert("¿ìÆí¹øÈ£¸¦ ÀûÀ¸¼¼¿ä!!");
		//form.addr_num2.focus();
		return false;
	}
	else if(!form.of_addr.value || !checkword(form.of_addr.value))
	{
		alert("ÁÖ¼Ò¸¦ ÀûÀ¸¼¼¿ä!!");
		form.of_addr.focus();
		return false;
	}
	else if(form.tel1.value.length < 2 || !Check_Num(form.tel1))
	{
		alert("º´¿øÀüÈ­¸¦ ÀûÀ¸¼¼¿ä!!");
		form.tel1.focus();
		return false;
	}
	else if(!radioCheck(form.gubun))
	{
		alert("º´¿ø±¸ºÐÀ» ¼±ÅÃÇØÁÖ¼¼¿ä!");
		form.gubun[0].focus();
		return false;
   }
	else if(form.tel2.value.length < 3 || !Check_Num(form.tel2))
	{
		alert("º´¿øÀüÈ­¸¦ ÀûÀ¸¼¼¿ä!!"); 
		form.tel2.focus();
		return false;
	}
	else if(form.tel3.value.length < 3 || !Check_Num(form.tel3))
	{
		alert("º´¿øÀüÈ­¸¦ ÀûÀ¸¼¼¿ä!!");
		form.tel3.focus();
		return false;
	}
	else if(!form.body.value.length || !checkword(form.body.value))
	{
		alert("º´¿ø¼Ò°³¸¦ ÀûÀ¸¼¼¿ä!!");
		form.body.focus();
		return false;
	}
	if(form.item.value.length>48){
		alert("¼¼ºÎÀü¹®ºÐ¾ß´Â 50ÀÚÀÌ³»·Î ÀÛ¼ºÇØÁÖ¼¼¿ä!");
		form.item.focus();
		return false;
	}
	
	return true;
}


function MM_jumpMenu(targ,selObj,restore){ //v3.0
  eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");
  if (restore) selObj.selectedIndex=0;
}


//---------------------- VOD ÀÔ·Â ----------------------------------
function Vod_Frm(theForm)
{
	if(theForm.name.value=="")
	{	
		alert("¹ßÇ¥ÀÚ¸¦ ÀÔ·ÂÇØ¾ß ÇÕ´Ï´Ù!");
		theForm.name.focus(); 
		return false;
	}
	if (theForm.year.value=="")
	{
		alert("³âµµ¸¦ ÀÔ·ÂÇØ¾ß ÇÕ´Ï´Ù!");
		theForm.year.focus();
		return false;
	}
	if(!radioCheck(theForm.season))
	{
		alert("°èÀýÀ» ¼±ÅÃÇØ¾ß ÇÕ´Ï´Ù!");
		theForm.season[0].focus();
		return false;
	}
	if(theForm.v_gubun.value=="")
	{	
		alert("±¸ºÐÀ» ÀÔ·Â ÇÏ¼Å¾ß ÇÕ´Ï´Ù!");
		theForm.v_gubun.focus(); 
		return false;
	}
	if (theForm.subject.value=="")
	{
		alert("Á¦¸ñÀ» ÀÔ·ÂÇØ¾ß ÇÕ´Ï´Ù!");
		theForm.subject.focus();
		return false;
	}
	if(typeof(theForm.num) != 'object')
	{
		if(theForm.url.value =="" && theForm.data_file.value =="")
		{
			alert("°æ·Î¸¦ ÀÔ·ÂÇÏ°Å³ª  µ¿¿µ»ó ÆÄÀÏÀ» ¾÷·Îµå ÇØ¾ß ÇÕ´Ï´Ù.");
			theForm.url.focus();
			return false;
		}
	}
}

//-------------- Vod °Ë»ö -------------
function Jump_send()
{
	document.Jump_Frm.submit();
}

//-------------- Vod Open-------------
function VodOpen(myurl)
{
    window.open (myurl, "Vodview", "width=895, height=600, top=20, left=20, scrollbars=no, resizable=no")
}