<!--
// ¾à°üµ¿ÀÇ Ã¼Å©
function check_promis(tmp, variable)
{
	if (tmp.checked == false) {
		alert (variable + "À»(¸¦) ÀÐ¾îº¸½Ã°í µ¿ÀÇÇÏ¼Å¾ß ÇÕ´Ï´Ù.");
		tmp.focus();
		return false;
	}
	return true;
}

// ÀÔ·Â Ã¼Å©
function check_input(tmp, variable)
{
	if (tmp.value.search(/(\S+)/) == -1) {
		alert (variable + "À»(¸¦) ÀÔ·ÂÇØ ÁÖ¼¼¿ä.");
		tmp.focus();
		tmp.select();
		return false;
	}
	return true;
}
// DOM °³Ã¼.. 
function check_in(tmp, variable)
{
	if (tmp.search(/(\S+)/) == -1) {
		alert (variable + "À»(¸¦) ÀÔ·ÂÇØ ÁÖ¼¼¿ä.");
		return false;
	}
	return true;
}
function check_input1(tmp, variable)
{
	if (tmp.value.search(/(\S+)/) == -1) {
		alert (variable + "À»(¸¦) ÀÔ·ÂÇØ ÁÖ¼¼¿ä.");
		//tmp.focus();
		//tmp.select();
		return false;
	}
	return true;
}

function check_input2(tmp, variable)
{
	if (tmp.value.search(/(\S+)/) == -1) {
		alert (variable + "¸¦ È®ÀÎÇØÁÖ¼¼¿ä.");
		//tmp.focus();
		//tmp.select();
		return false;
	}
	return true;
}

// ÁÖ¼Ò Ã¼Å©ÈÄ »õÃ¢À¸·Î °Ë»öÃ¢ ¿ÀÇÂ
function zip_input(tmp, variable)
{
	if (tmp.value.search(/(\S+)/) == -1) {
		alert (variable + "À»(¸¦) ÀÔ·ÂÇØ ÁÖ¼¼¿ä.");
		zip_check();
		return false;
	}
	return true;
}

// °ø¹é Ã¼Å©
function check_null(tmp, variable)
{
	if (tmp.value.indexOf(" ") != -1) {
		alert (variable + "À»(¸¦) °ø¹é¾øÀÌ ÀÔ·ÂÇØ ÁÖ¼¼¿ä.");
		tmp.focus();
		tmp.select();
		return false;
	}
	return true;
}

// ÇÑ±Û¸¸ ÀÔ·Â
function isHAN(tmp, variable) 
{
    for (var i=0; i<tmp.value.length; i++){
       if(tmp.value.charCodeAt(i) <= 256){
          alert(variable + "Àº(´Â) ÇÑ±Û·Î¸¸ ÀÔ·ÂÇØ ÁÖ¼¼¿ä.");
		  tmp.focus();
		  tmp.select();
		  return false;
       }
    }
    return true;
}


// ¿µ¹®¸¸ ÀÔ·Â
function isEng(value)
{
	for (var i=0; i<value.length; i++){
	   if(value.charCodeAt(i) <= 256){
		  return true;
	   }
	}
	return false;
}

function isEng2(tmp,variable)
{
	for (var i=0; i<tmp.value.length; i++){
	   if(tmp.value.charCodeAt(i) <= 256){
		   alert(variable + "Àº(´Â) ¿µ¾î·Î¸¸ ÀÔ·ÂÇØ ÁÖ¼¼¿ä.");
		   return true;
	   }
	}
	return false;
}

// ¼ýÀÚ Ã¼Å©	¼ýÀÚ¸¸ »ç¿ëÇÏ±â
function check_number(tmp, variable) 
{
	var i;
	for (i=0; i<tmp.value.length; i++) 
	if (tmp.value.charAt(i) < '0' || tmp.value.charAt(i) > '9') {
		alert(variable + "Àº(´Â) ¼ýÀÚ¸¸ ÀÔ·ÂÇØ ÁÖ¼¼¿ä.");
		tmp.focus();
		tmp.select();
		return false;
	}
	return true;
}

// ½Ç½Ã°£ ¼ýÀÚ Ã¼Å©
function NumberCheck(variable)
{
	if((event.keyCode<48)||(event.keyCode>57))
	{
		event.returnValue=false;
		alert(variable + "Àº(´Â) ¼ýÀÚ¸¸ ÀÔ·ÂÇÏ¼¼¿ä")
	}
}

// ÀÔ·Â ÃÖ¼Ò±æÀÌ Ã¼Å©
function check_minlength(tmp, minlength, variable)
{
	if (tmp.value.length < minlength) {
		alert(variable + "ÀÌ(°¡) ³Ê¹« Âª½À´Ï´Ù.\n´Ù½Ã ÀÔ·ÂÇØ ÁÖ¼¼¿ä.");
		tmp.focus();
		tmp.select();
		return false;
	}
	return true;
}



// ÀÌ¹ÌÁö GIF ¿Í JPG(È®ÀåÀÚ) ¾÷·Îµå¸¸ °¡´ÉÇÏ°Ô ÇÏ±â
function img_check(tmp, variable) 
{
	var f = tmp;
	var t = tmp.value;
	var str = t.split('.');

		if((tmp.value.lastIndexOf(".jpg")==-1) && (tmp.value.lastIndexOf(".gif")==-1) && (tmp.value.lastIndexOf(".GIF")==-1) && (tmp.value.lastIndexOf(".JPG")==-1)) {
		alert(variable + "¾÷·ÎµåÇÒ ÆÄÀÏÀº GIF ¿Í JPG¸¸ °¡´ÉÇÕ´Ï´Ù. ")
		return false
	}
	return true
}

// ÀÌ¹ÌÁö pdf(È®ÀåÀÚ) ¾÷·Îµå¸¸ °¡´ÉÇÏ°Ô ÇÏ±â
function img_pdf_check(tmp, variable) 
{
	var f = tmp;
	var t = tmp.value;
	var str = t.split('.');

		if((tmp.value.lastIndexOf(".pdf")==-1) && (tmp.value.lastIndexOf(".PDF")==-1)) {
		alert(variable + "¾÷·ÎµåÇÒ ÆÄÀÏÀº PDF¸¸ °¡´ÉÇÕ´Ï´Ù. ")
		return false
	}
	return true
}


// µ¿¿µ»ó AVI / WMV (È®ÀåÀÚ) ¾÷·Îµå¸¸ °¡´ÉÇÏ°Ô ÇÏ±â
function img_move_check(tmp, variable) 
{
	var f = tmp;
	var t = tmp.value;
	var str = t.split('.');

		if((tmp.value.lastIndexOf(".avi")==-1) && (tmp.value.lastIndexOf(".AVI")==-1) && (tmp.value.lastIndexOf(".wmv")==-1) && (tmp.value.lastIndexOf(".WMV")==-1)) {
		alert(variable + "¾÷·ÎµåÇÒ ÆÄÀÏÀº AVI ¿Í WMV¸¸ °¡´ÉÇÕ´Ï´Ù. ")
		return false
	}
	return true
}




// Æ¯¼ö¹®ÀÚ Á¦¾î
function CheckExceptStr(value)
{
	var exceptSTR = "!@#$%^&*()-+=\|/<>.,';}{[]~`";
	var checkSTR = value;
	var checkVA;

	for(i=0; i<checkSTR.length; i++)
	{
		var CHKstr = checkSTR.charAt(i);
		for(j=0; j<exceptSTR.length; j++)
		{
			if(CHKstr == exceptSTR.charAt(j)){
				checkVA = true;
			}
		}
	}

	if (checkVA)
	{
		alert(variable + "ÀÌ(°¡) ³Ê¹« Âª½À´Ï´Ù.\n´Ù½Ã ÀÔ·ÂÇØ ÁÖ¼¼¿ä.");
	}

	if(i == checkSTR.length){
		return false;
	}
}

// ¿µ¹®ÀÚ¿Í ¼ýÀÚ Ã¼Å©
function check_stringornumber(tmp, variable)
{
	for (i = 0; i < tmp.value.length; i++) {
		if (tmp.value.charAt(i) >= '0' && tmp.value.charAt(i) <= '9')
			continue;
		else if (tmp.value.charAt(i) >= 'a' && tmp.value.charAt(i) <= 'z')
			continue;
		else if (tmp.value.charAt(i) >= 'A' && tmp.value.charAt(i) <= 'Z')
			continue;
		else {
			alert(variable + "Àº(´Â) ¿µ¹®ÀÚ, ¼ýÀÚ¸¸ »ç¿ëÇÏ½Ç ¼ö ÀÖ½À´Ï´Ù.");
			tmp.focus();
			tmp.select();
			return false;
		}
	}
	return true;
}


//ºñ¹Ð¹øÈ£ È®ÀÎ Ã¼Å©
function check_compare(tmp1, tmp2, variable)
{	
	if (tmp1.value != tmp2.value) {
		alert(variable + "(ÀÌ)°¡ ÀÏÄ¡ÇÏÁö ¾Ê½À´Ï´Ù.\n´Ù½Ã ÀÔ·ÂÇØ ÁÖ¼¼¿ä.") ;
		tmp1.focus();
		tmp1.select();
		return false;
	}
	return true;
}


// ÁÖ¹Î¹øÈ£ À¯È¿¼ºÃ¼Å©
function validity_resident(tmp1, tmp2, variable)
{
	if (validity_resident1(tmp1, tmp2, variable)) {
		return true;
	} else {
		if (validity_resident2(tmp1, tmp2, variable)) {
			return true;
		} else {			
			alert(variable + "Àº(´Â) Àß¸øµÈ ¹øÈ£ÀÔ´Ï´Ù. ´Ù½Ã ÀÔ·ÂÇØ ÁÖ¼¼¿ä.");
			tmp1.value = ""
			tmp2.value = ""
			tmp1.focus();
			tmp1.select();
			return false;   
		}
	}		
}

// ¼±ÅÃ Ã¼Å©
function check_select(tmp, variable)
{
	if (tmp.options[tmp.selectedIndex].value == "") {
		alert (variable + "À»(¸¦) ¼±ÅÃÇØ ÁÖ¼¼¿ä.");
		tmp.focus();
		return false;
	}
	return true;
}


// ÀÌ¸ÞÀÏ Ã¼Å©
function check_email(tmp)
{
	if (tmp.value.search(/(\S+)@(\S+)\.(\S+)/) == -1) { 
		alert("ÀÌ¸ÞÀÏÀÇ Çü½ÄÀº '°èÁ¤@[È£½ºÆ®|µµ¸ÞÀÎ]'°ú °°ÀÌ ±¸¼ºµÇ¾î¾ß ÇÕ´Ï´Ù."); 
		tmp.focus(); 
		tmp.select(); 
		return false; 
	} 	
	for (i = 0; i < tmp.value.length; i++) {
		if (tmp.value.charAt(i) >= '0' && tmp.value.charAt(i) <= '9')
			continue;
		else if (tmp.value.charAt(i) >= 'a' && tmp.value.charAt(i) <= 'z')
			continue;
		else if (tmp.value.charAt(i) >= 'A' && tmp.value.charAt(i) <= 'Z')
			continue;
		else if (tmp.value.charAt(i) == '_' || tmp.value.charAt(i) == '-' || tmp.value.charAt(i) == '@' || tmp.value.charAt(i) == '.')
			continue;
		else {
			alert("ÀÌ¸ÞÀÏÀº ¿µ¹®ÀÚ, ¼ýÀÚ, ±âÈ£ '@', '.', '-' , '_' ¸¸ »ç¿ëÇÏ½Ç ¼ö ÀÖ½À´Ï´Ù.");
			tmp.focus(); 
			tmp.select(); 
			return false; 
		}
	}
	if (tmp.value.charAt(0) == '_' || tmp.value.charAt(0) == '-') {
		alert("'_'¿Í '-'´Â ÀÌ¸ÞÀÏÀÇ Ã¹±ÛÀÚ·Î »ç¿ëÇÏ½Ç ¼ö ¾ø½À´Ï´Ù.");
		tmp.focus(); 
		tmp.select();
		return false;
	} 
	return true;
}

// ÁÖ¹Î¹øÈ£ À¯È¿¼ºÃ¼Å©
function validity_resident1(tmp1, tmp2, variable)
{
	var tmp = tmp1.value + tmp2.value;
	var a = new Array(13);
	for (var i=0; i < 13; i++) {
		a[i] = parseInt(tmp.charAt(i));
	}

	if (a[2] > 1) return false;   
	if (a[4] > 3) return false;   
	if (a[6] > 4 || a[6] == 0) return false;   

	var j = a[0]*2 + a[1]*3 + a[2]*4 + a[3]*5 + a[4]*6 + a[5]*7 + a[6]*8 + a[7]*9 + a[8]*2 + a[9]*3 + a[10]*4 + a[11]*5;
	var j = j % 11;
	var k = 11 - j;

	if (k > 9) k = k % 10;

	if (k != a[12]) return false;

	return true;
}


// ¿Ü±¹ÀÎ¹øÈ£ À¯È¿¼ºÃ¼Å©
function validity_resident2(tmp1, tmp2, variable)
{
	var tmp = tmp1.value + tmp2.value;
	var a = new Array(13);
	var birthday;
	var birthYear;
	var birthMonth;
	var birthDate;

	for (var i=0; i < 13; i++) {
		a[i] = parseInt(tmp.charAt(i));
	}
	
	if (a[6] == "5" || a[6] == "6") {
		birthYear = "19";
	} else if (a[6] == "7" || a[6] == "8") {
		birthYear = "20";
	} else if (a[6] == "9" || a[6] == "0") {
		birthYear = "18";
	} else {
		return false;
	}        

	birthYear += tmp.substr(0, 2);
	birthMonth = tmp.substr(2, 2) - 1;
	birthDate = tmp.substr(4, 2);
	birthday = new Date(birthYear, birthMonth, birthDate);
		
	if (birthday.getYear() % 100 != tmp.substr(0, 2) || birthday.getMonth() != birthMonth || birthday.getDate() != birthDate) return false;

	if (((a[7]*10 + a[8]) % 2) != 0) return false;

	if ((a[11] != 6) && (a[11] != 7) && (a[11] != 8) && (a[11] != 9)) return false;

	var j = a[0]*2 + a[1]*3 + a[2]*4 + a[3]*5 + a[4]*6 + a[5]*7 + a[6]*8 + a[7]*9 + a[8]*2 + a[9]*3 + a[10]*4 + a[11]*5;
	var j = j % 11;
	var k = 11 - j;

	if (k>=10) k-=10;
	k += 2;

	if (k>=10) k-=10;
	if ( k != a[12]) {
		return false;
	} else {
		return true;
	}
}





















// ÀÔ·Â ÃÖ´ë±æÀÌ Ã¼Å©
function check_maxlength(tmp, minlength, variable)
{
	if (tmp.value.length > minlength) {
		alert(variable + "ÀÌ(°¡) ³Ê¹« ±æ°Í °°½À´Ï´Ù.\n\n´Ù½Ã ÀÔ·ÂÇØ ÁÖ¼¼¿ä.");
		tmp.focus();
		tmp.select();
		return false;
	}
	return true;
}



// ÀÔ·Â ÃÖ¼Ò±æÀÌ Ã¼Å©1
function check_minlength1(tmp, minlength)
{
	if (tmp.value.length < minlength) {
		alert(minlength + "ÀÌ»óÀÔ´Ï´Ù.\nÈ®ÀÎ ÀÔ·ÂÇØ ÁÖ¼¼¿ä.");
		tmp.focus();
		tmp.select();
		return false;
	}
	return true;
}

//-----------------------¼ýÀÚ¸¦ ÀÔ·ÂÇÏ´ÂÁö È®ÀÎ--------------------
function checkNum(obj) {
 var str = obj.value;
 var flag = 0;

 /* ³Î°ªÇã¿ë... */
 if(obj.value == "")
  return true;

 for(i=0 ; i<str.length ; i++)
  {
  if(str.charAt(i)!="0" &&
   str.charAt(i)!="1" &&
   str.charAt(i)!="2" &&
   str.charAt(i)!="3" &&
   str.charAt(i)!="4" &&
   str.charAt(i)!="5" &&
   str.charAt(i)!="6" &&
   str.charAt(i)!="7" &&
   str.charAt(i)!="8" &&
   str.charAt(i)!="9" &&
   str.charAt(i)!=" " )
   {
   alert("¼ýÀÚ·Î Á¤È®ÇÏ°Ô ÀÔ·ÂÇØ ÁÖ¼¼¿ä... ");
   obj.value = "" ;
   obj.focus();
   return false;
   }
  }
  return true;
}//---------------------------------------------------------------------









// ¼ýÀÚ Ã¼Å©1
function check_number1(tmp) 
{
	var i;
	for (i=0; i<tmp.value.length; i++) 
	if (tmp.value.charAt(i) < '0' || tmp.value.charAt(i) > '9') {
		alert("\n¼ýÀÚ¸¸ ÀÔ·Â°¡´ÉÇÕ´Ï´Ù.");
		tmp.value = "";
		tmp.focus();
		tmp.select();
		return false;
	}
	return true;
}

//---------ÅØ½ºÆ®Æû¿¡¼­ °ø¹é Á¦°Å-------------------------
function del_blank(obj) {
  var str_in = obj.value	
	  str_out = ""
  for(i=0 ; i<str_in.length ; i++)
	if (str_in.charAt(i) != " ")	
		str_out = str_out + str_in.charAt(i)
  obj.value = str_out
}//-------------------------------------------------------





// ¶óµð¿À Ã¼Å©
function check_radio(tmp, variable)
{
	var checked_idx = -1;
	for (i=0; i<tmp.length; i++){
		if (tmp[i].checked)	{
			checked_idx = i;
		}
	}
	if (checked_idx < 0) {
		alert (variable + "À»(¸¦) ¼±ÅÃÇØ ÁÖ¼¼¿ä.");
		tmp[0].focus();
		return false;
	}
	return true;
}

// Ã¼Å©¹Ú½º Ã¼Å©
function check_checkbox(tmp, variable)
{
	var checked_cnt = 0;
	for (i=0; i<tmp.length; i++){
		if (tmp[i].checked)	{
			checked_cnt = checked_cnt + 1;
		}
	}
	if (checked_cnt <= 0) {
		alert (variable + "À»(¸¦) Ã¼Å©ÇØ ÁÖ¼¼¿ä.");
		tmp[0].focus();
		return false;
	}
	return true;
}







// ¸Þ½ÃÁö Ã¼Å©
function check_message(msg)
{
	return confirm(msg);
}

// ÀÔ·Â°ª ºñ±³ Ã¼Å©













// ¼ºÀÎ Ã¼Å©
function check_adult(tmp1, tmp2)
{
	var tmp = tmp1.value + tmp2.value;
	var a = new Array(13);
	for (var i=0; i < 13; i++) {
		a[i] = parseInt(tmp.charAt(i));
	}
	var birthday;
	var today;
	var birthYear;
	var birthMonth;
	var birthDate;
	if (a[6] == "1" || a[6] == "2")	{
		birthYear = "19"
	} else if (a[6] == "3" || a[6] == "4") {
		birthYear = "20";
	} else if (a[6] == "5" || a[6] == "6") {
		birthYear = "19";
	} else if (a[6] == "7" || a[6] == "8") {
		birthYear = "20";
	} else if (a[6] == "9" || a[6] == "0") {
		birthYear = "18";
	} else {
		return false;
	} 

	birthYear += tmp.substr(0, 2);
	birthMonth = tmp.substr(2, 2) - 1;
	birthDate = tmp.substr(4, 2);
	birthday = new Date(birthYear, birthMonth, birthDate);

	var today;
	var toYear;
	var toMonth;
	var toDate;

	today = new Date();
	toYear = today.getYear();
	toMonth = today.getMonth() + 1;
	toDate = today.getDate();
	today = new Date(toYear, toMonth, toDate);

	var age;
	age = (today - birthday) / (24*60*60*1000*365);

	if (age < 19) {
		alert("¼ºÀÎÀÌ ¾Æ´Õ´Ï´Ù.");
		return false;
	}
	return true;
}

//if(!textarea('content')) return;
function textarea(testareaname){
 var oEditor = FCKeditorAPI.GetInstance(testareaname) ;
	 oEditortxt = oEditor.GetXHTML();
	  if(!oEditortxt){
	     alert(' ³»¿ëÀ» ÀÔ·ÂÇÏ¼¼¿ä.');
		 oEditor.Focus();
		 return false;
      } else {
         return true;
	  }
}

function SR_submit_searchFrom()
{
	var val = document.search.SearchString;


	if (!check_input(val, '°Ë»ö¾î')) 
    {
      //alert("°Ë»öÇÒ ´Ü¾î¸¦ ÀÔ·ÂÇØ ÁÖ¼¼¿ä");
      val.value="";
      val.focus();
      return false;
    }
	//document.frmSearch.submit();
	return true;
}


//°¡Àå »ó´ÜÀÇ Ã¼Å©¹Ú½º ¼±ÅÃ
function menu_chooseTop(name){
	var obj = eval("document.myform."+name);
	var cnt = obj.length
	var result = false;
	for(i=0;i<cnt;i++){
		if (obj[0].checked == true){
			result = true;
		}
		obj[i].checked = result;
	}
}

//°¡Àå »ó´ÜÀ» Àç¿ÜÇÑ Ã¼Å©¹Ú½º ¼±ÅÃ    
//name,½ÃÀÛ¹øÈ£,³¡¹øÈ£,Å¸ÀÔ(y,n,z)
//Å¸ÀÔÀÇ Á¾·ù y,n,z 
//y ÇÏÀ§Ã¼Å©¹Ú½º°¡ ÀÖ´Â »óÅÂ
//n ÇÏÀ§Ã¼Å©¹Ú½º
//z ÀÏ¹ÝÀûÀÎ Ã¼Å©¹Ú½º
function menu_chooseSub(name,s,f,txt){
	var obj = eval("document.myform."+name);
		
	var result = false;
	var result2 = false;
	var result3 = false;
	var sss = parseInt(s)+1;
	var ss = parseInt(s);
	var ff = parseInt(f);
	var cnt = parseInt(obj.length)-1;

	if(txt == "y"){
		for(i=ss;i<=ff;i++){
			if (obj[ss].checked == true){
				result = true;
			}
			obj[i].checked = result;
		}
	}else if(txt == "n"){
		for(i=sss;i<=ff;i++){
			if (obj[i].checked == true){
				result2 = true;
			}
		}
		obj[s].checked = result2;
	}
	for(i=1;i<=cnt;i++){
		if (obj[i].checked == true){
			result3 = true;
		}			
	}
	obj[0].checked = result3;
}


/*********************************************************************************************************/
/* ÆË¾÷ °ü·Ã ÇÔ¼ö ****************************************************************************************/
/*********************************************************************************************************/

/* »õÃ¢ ¶ì¿ì±â ==========================================================================================*/
function SR_openWindow(name, url, left, top, width, height, toolbar, menubar, statusbar, scrollbar, resizable, locations)
{

  toolbar_str = toolbar ? 'yes' : 'no';
  menubar_str = menubar ? 'yes' : 'no';
  statusbar_str = statusbar ? 'yes' : 'no';
  scrollbar_str = scrollbar ? 'yes' : 'no';
  resizable_str = resizable ? 'yes' : 'no';
  window.open(url, name, 'left='+left+',top='+top+',width='+width+',height='+height+',toolbar='+toolbar_str+',menubar='+menubar_str+',status='+statusbar_str+',scrollbars='+scrollbar_str+',resizable='+resizable_str+',location='+locations);

}

/* queyrstring ÇüÅÂ·Î popup½ÃÅ°±â =======================================================================*/
// usage : onclick=""SR_goPopByQuerySTring('win_catW|pop_catW.asp?cat_no=" & rsCat_no&"|300|300|420|260|0|0|0|0|0|0')"">
	function SR_goPopByQuerySTring(aryPopparam)
	{
		var ap, newap
		var aryProperty
		var i;
		ap = aryPopparam.split("|")
		aryProperty = new Array("name","url","left","top","w","h","t","mnu","status","scroll","resize","locations")
		newap = new Array();
		for(i=0; i < aryProperty.length; i++)
		{
			newap[i] = ap[i]
		}
		
		//alert(newap[9]);
	
		newap[6] =  parseInt(newap[6]) ;
		newap[7] =  parseInt(newap[7]) ;
		newap[8] =  parseInt(newap[8]) ;
		newap[9] =  parseInt(newap[9]) ;
		newap[10] =  parseInt(newap[10]) ;
		newap[11] =  parseInt(newap[11]) ;


		SR_openWindow(newap[0], newap[1], newap[2],newap[3], newap[4], newap[5], newap[6], newap[7], newap[8], newap[9], newap[10], newap[11]);
		
	}

/* queyrstring ÇüÅÂ·Î popup½ÃÅ°±â =======================================================================*/
	function SR_goPopByQuerySTring_ver01(url,param,aryPopparam, cfrm_flag, cfrm_msg)
	{
		var full_url
		var ap, newap
		var aryProperty
		var i;

		if( cfrm_flag == true )
		{
			if(!confirm(cfrm_msg) ) 
			{
				return ;
			}
		}
		
		//alert(url);
		full_url = ( param == "" ) ? url : url + "?" + param ;

		ap = aryPopparam.split("|")
		aryProperty = new Array("name","left","top","w","h","t","mnu","status","scroll","resize","locations")
		newap = new Array();
		for(i=0; i < aryProperty.length; i++)
		{
			newap[i] = ap[i]
		}
		
		//alert(newap[9]);
	
		newap[5] =  parseInt(newap[5]) ;
		newap[6] =  parseInt(newap[6]) ;
		newap[7] =  parseInt(newap[7]) ;
		newap[8] =  parseInt(newap[8]) ;
		newap[9] =  parseInt(newap[9]) ;
		newap[10] =  parseInt(newap[10]) ;

	
		SR_openWindow(newap[0], full_url, newap[1], newap[2],newap[3], newap[4], newap[5], newap[6], newap[7], newap[8], newap[9], newap[10] );
		
	}

/* form ÇüÅÂ·Î popup½ÃÅ°±â =============================================================================*/
// onclick="jhj_goPopForm('/naver.com/,testForm,'300|300|420|260|0|0|0|0|0|0')"
	function SR_goPopForm(url,form,aryPopparam, cfrm_flag, cfrm_msg)
	{
		var full_url
		var ap, newap
		var aryProperty
		var i;

		if( cfrm_flag == true )
		{
			if(!confirm(cfrm_msg) ) 
			{
				return ;
			}
		}

		//full_url = ( param == "" ) ? url : url + "?" + param ;
		full_url = url;

		ap = aryPopparam.split("|")
		aryProperty = new Array("name","left","top","w","h","t","mnu","status","scroll","resize","locations")
		newap = new Array();
		for(i=0; i < aryProperty.length; i++)
		{
			newap[i] = ap[i]
		}
		
		//alert(newap[9]);
	
		newap[5] =  parseInt(newap[5]) ;
		newap[6] =  parseInt(newap[6]) ;
		newap[7] =  parseInt(newap[7]) ;
		newap[8] =  parseInt(newap[8]) ;
		newap[9] =  parseInt(newap[9]) ;
		newap[10] =  parseInt(newap[10]) ;

	
		SR_openWindow(newap[0], '', newap[1], newap[2],newap[3], newap[4], newap[5], newap[6], newap[7], newap[8], newap[9], newap[10] );
		
		form.target = newap[0];
		form.action = full_url;
		form.submit();
	}

var old='';
 
function menu(name)
{
submenu=eval("submenu_"+name+".style");
		if(old!=submenu)
	{
		if(old!='')
		{
			old.display='none';
		}
		submenu.display='block';
		old=submenu;
	}
	else
	{
		submenu.display='none';
		old='';
	}
}

//-->
