/****************************************************************************************
(1) ½Ã½ºÅÛ¸í 			: ¹èÈ­¿©´ë
(2) ÇÁ·Î±×·¥ID 		: /common/js/common.js
(3) ÇÁ·Î±×·¥¸í 		: °øÅëÀÚ¹Ù½ºÅ©¸³Æ® ÇÔ¼ö
*****************************************************************************************/
var actionfrm= "actionfrm";
var actionfrm1= "actionfrm1";	 //TEST
var contDeleteMsg = "»èÁ¦ÇÏ½Ã¸é º¹±¸ÇÒ ¼ö ¾ø½À´Ï´Ù.\n»èÁ¦ÇÏ½Ã°Ú½À´Ï±î?";
var contErrorMsg = "¿À·ù°¡ ¹ß»ýÇÏ¿´½À´Ï´Ù.\n¿À·ù¸Þ¼¼Áö : ";
var contFormcheck = 1;
var contFormMsg = "ÀÌ¹ÌÀü¼ÛÁßÀÔ´Ï´Ù. Àá½Ã¸¸ ±â´Ù·ÁÁÖ¼¼¿ä.";

function view222(opt) //ÆË¾÷
{
	if( opt == 1 ){
		window.open("http://info.baewha.ac.kr/nrp4bw/Sez/SE0613r.aspx",'_blank','toolbar=no,location=no,status=no,menubar=no, scrollbars=yes,resizable=no,width=900, height=800 top=10 left=100');
	}
	if( opt == 2 ){
		window.open("",'_blank','toolbar=no,location=no,status=no,menubar=no, scrollbars=yes,resizable=no,width=900, height=800 top=10 left=100');
	}
}

function _jsOpen(url,name,features){	//À©µµ¿ì¿ÀÇÂ;
	var contWin  = name;
	if( (contWin != null) && (contWin.closed == false) ){contWin.close();}
	contWin=window.open(url,name,features);
	contWin.focus();
}

function _jsGotoBack(){
	window.history.go(-1);
}


function _jsPrint(){	window.print();}

function _jsClose(){window.close();}

function _jsCloseApply(){ opener.location.href="/ipsi/common/subpage.asp?code=ip0605";window.close();}

function _jsNotReady(gubun){
	if (gubun=="notapp") {
		alert("Áö±ÝÀº Á¢¼ö±â°£ÀÌ ¾Æ´Õ´Ï´Ù");
		return;
	}
	else {
		alert("¼­ºñ½ºÁØºñÁßÀÔ´Ï´Ù.");
		return;
	}
}

function _jsNeedLogin(){
	alert("·Î±×ÀÎÀÌ ÇÊ¿äÇÑ ¼­ºñ½º ÀÔ´Ï´Ù.");
	window.location.href="?code=ip0801&returl="+escape(window.location.pathname+window.location.search);
	return;
}


function _jsLoginGo(){
	var strparameter = window.location.search; 
	if (strparameter.length>0) {
		if (strparameter.indexOf("returl" , 0) > 0){
			window.location.reload();
		}
		else {
			window.location.href="?code=ip0801&returl="+escape(window.location.pathname+window.location.search);
		}
	}
	else {
		window.location.href="?code=ip0801&returl="+escape(window.location.pathname+window.location.search);
	}

	return;
}


function _jsLoginMainGo(){
	var strparameter = window.location.search; 
	if (strparameter.length>0) {
		if (strparameter.indexOf("returl" , 0) > 0){
			window.location.reload();
		}
		else {
			window.location.href="/main/common/subpage.asp?code=ip0801&returl="+escape(window.location.pathname+window.location.search);
		}
	}
	else {
		window.location.href="/main/common/subpage.asp?code=ip0801&returl="+escape(window.location.pathname+window.location.search);
	}

	return;
}


//·Î±×ÀÎ;
function _jsLoginEnter(f){
	if (event.keyCode==13) { _jsLogin(f); }	
}
function _jsLogin(f){
	if (!_jsRegularExp("email" , f.id , "¾ÆÀÌµð¸¦ ÀÔ·ÂÇÏ¼¼¿ä.¾ÆÀÌµð´Â ¸ÞÀÏÁÖ¼ÒÇü½ÄÀÔ´Ï´Ù.")) return;
	if (!_jsRegularExp("" , f.pwd1 , "ºñ¹Ð¹øÈ£¸¦ ÀÔ·ÂÇÏ¼¼¿ä")) return;
	f.submit();
	
}



function _jsSelectV(){  //By thhh2¢â
	var strID , strST , strNo, strVa, strEv , Html , strBr, ArgsNum = arguments.length;
	if (ArgsNum){
		strID = arguments[0];	//¾ÆÀÌµð;
		strST = arguments[1];	//½ºÅ¸ÀÏ;
		strBr = arguments[2];	//Border Color ;
		strNo = arguments[3];	//¼±ÅÃµÇ¾îÁø °ª; ¾øÀ¸¸é ºóÄ­;
		strVa = arguments[4];	//Options °ª;
		strEv = arguments[5];	//Event;
		
		if (strEv==null){ strEv = "";} 
		if (!strVa){strVa="-¼±ÅÃ";}

		intLen = 1;
		//¹®ÀÚ¿­ÀÇ ±æÀÌ¿¡¼­ Æ¯Á¤±¸ºÐÀÚÀÇ °¹¼ö ±¸ÇÔ;
		for (i = 1 ; i < strVa.length; i++){
			if (strVa.charAt(i)=="@"){
				intLen ++;
			}
		}

		//Æ¯Á¤±¸ºÐÀÚ¿¡ ÀÇÇØ ¹®ÀÚ¿­ ÀÚ¸£°í, option ÅÂ±× »ý¼º .
		Html = "<select name='"+strID+"' style='"+strST+";height:20;border:DDDDDD' "+strEv+"  unselectable=\"on\"  >";
		for (j = 0 ; j < intLen ; j++){
			strSplit = strVa.split("@")[j];
			strtext = strSplit.split("-");
		
			if (strNo == strtext[0]){ strSelected = " selected"; }
			else {strSelected = ""; }
		
			Html = Html + "<option value='"+strtext[0]+"' "+strSelected+">"+strtext[1]+"</option>\n";
		
		
		}
		Html = Html + "</select>";

		SS_ENV.CR.Border = strBr;		
		SS_write(Html,7, '','select_bull_gray.gif');	//°¹¼ö

	}
	else{
		alert("¿À·ù°¡ ¹ß»ýÇÏ¿´½À´Ï´Ù.\n\n¼¿·ºÆ®¹Ú½º¸¦ »ý¼ºÇÒ¼ö ¾ø½À´Ï´Ù.");
		return;
	}
}




function _jsRegularExp(chk,frm,msg){	//Á¤±Ô½ÄÀ¸·Î Ã¼Å©ÇÔ.
	var strValue =  frm.value;
	var bitExp = false;

	switch (chk){
		case "id" : 
			if (frm.value.match(/[A-Za-z0-9]{3,12}\w*/g)!=strValue){break;}
			bitExp = true;
		case "email" :
			if (frm.value.match(/[\w\-]+\@[\w\-]+(\.[\w\-]+)+/g)!=strValue){break;}
			bitExp = true;
		case "number" :
			if (frm.value.match(/\d+/g)!=strValue){ break;}
			bitExp = true;
		case "phone" :
			if (frm.value.match(/[0-9]{2,3}\-[0-9]{3,4}\-[0-9]{4}/g)!=strValue){break;}
			bitExp = true;
		case "mphone" :		
			if (frm.value.match(/01[016789]\-[0-9]{3,4}\-[0-9]{4}/g)!=strValue){ break;}
			bitExp = true;
		case "homepage" :
			if (frm.value.match(/\w+:\/\/[^#]*/g)!=strValue){		break;}
			bitExp = true;
		case "checked" : 
			if (typeof(frm)=="object"){
				if (typeof(frm.length)=="undefined"){
					if (frm.checked) { bitExp = true; }
				}
				else{
					for (i = 0 ; i < frm.length; i++){
						if (frm[i].checked){	bitExp = true;		}
					}
				}
			}
			
			break;
		case "selected" :
			if (frm.value==""){ break ;}
			bitExp = true;
			
		case "idn1" :
			if (frm.value.match(/[0-9]{6}/g)!=strValue){ break; }
			bitExp = true;
		case "idn2" :
			if (frm.value.match(/[0-9]{7}/g)!=strValue){break; }
			bitExp = true;		
		default : //°ø¹éÃ¼Å©;
			if (frm.value.match(/\S/)==null){break;}
			bitExp = true;
	}
	
	if (!bitExp){ if (msg) alert(msg);if ((chk!="checked")&&(chk!="selected")){frm.focus();};	return false;	}
	else{return true;}
	
}


//ÇöÀç¼±ÅÃµÈ Radio¹öÆ°ÀÇ VALUE °ª ¸®ÅÏ
function _jsCheckedValue(frm){
	try { 
		var returnvalue;

		if (typeof(frm)=="object"){
			if (typeof(frm.length)=="undefined"){
				if (frm.checked) { returnvalue = frm.value; }

			}
			else{
				for (i = 0 ; i < frm.length; i++){
					if (frm[i].checked){ returnvalue = frm[i].value; }
				}
			}
		}

		return returnvalue;

	}
	catch (e) {
		alert(contErrorMsg + e);
	}


}


function _jsOnlyNum(){
   	if((event.keyCode<48)||(event.keyCode>57))
   	event.returnValue=false;
}





//¼îÇÏÀÌµå 
function _jsShowHide(obj,action){
	obj.style.display = action;
}



function _jsShowHideYN(obj){
	var value = (obj.style.display=="none") ? false : true ;
	return value;
}



//¹è¿­¼îÇÏÀÌµå
function _jsShowHideArray(id , num){
	var num , tr = document.all[id] , len = tr.length;

	if (len == null)	{
		(_jsShowHideYN(tr)) ? _jsShowHide(tr,"none") : _jsShowHide(tr,"block")
	}
	else{
		for ( i = 0; i < len ; i++){
			if (i == num){
				(_jsShowHideYN(tr[num])) ? _jsShowHide(tr[num],"none") : _jsShowHide(tr[num],"block")
//				if (tb[num].style.display=="none"){ tb[num].style.display=""; } else { tb[h].style.display="none"; }
			}
			else{
				_jsShowHide(tr[i],"none");
			}
		}
	}
}



//TABLE , TR ,TD µîÀÇ ¼îÇÏÀÌµå ; °¹¼ö¸¸Å­ º¸¿©ÁÖ´Â ±â´É;
function _jsExchageSelected(f,id){
//	var tr1 = document.getElementById(id);
	var tr1 = document.all.item(id);
	var trlen = tr1.length;
	var v = parseInt(f.options[f.selectedIndex].value);
	
	for (i = 0; i < trlen; i ++){
		if (tr1 != null){
			if (i > v-1) {tr1[i].style.display = "none"; }
			else { tr1[i].style.display = "";} 
		}
	}
}





//ÀÌ¹ÌÁö ¸®»çÀÌÁî;
function _jsImageResize(imgid , sizeW){
	var sizeW;
	var img = document.images(imgid);
	if (img){
		if (img.length==null){
			imgwidth = img.width ; imgheight = img.height;
			if (sizeW < imgwidth){
				imgW = sizeW; 
				imgH = parseInt((sizeW/imgwidth) * imgheight);
			}
			else{
				imgW = imgwidth ;
				imgH = imgheight;
			}
			img.width = imgW;
			img.height = imgH;		
		}
		else{
			for (i = 0 ; i < img.length; i++) {
				imgwidth = img[i].width ; imgheight = img[i].height;
				if (sizeW < imgwidth){
					imgW = sizeW; 
					imgH = parseInt((sizeW/imgwidth) * imgheight);
				}
				else{
					imgW = imgwidth ;
					imgH = imgheight;
				}
				img[i].width = imgW;
				img[i].height = imgH;
			}
		}
	}
}




function _jsChkAll(f){
	var chkvalue = document.all.item("chkbox[]");
	if (chkvalue) {
		var chklen = chkvalue.length;
	
		if (chklen==null || chklen==""){
			if(chkvalue.checked) { chkvalue.checked=false; }
			else { chkvalue.checked=true; }
		}
		else{
			for(i=0;i<chklen;i++){
				if(chkvalue[i].type=='checkbox'){
					if(chkvalue[i].checked) { chkvalue[i].checked=false; }
					else {chkvalue[i].checked=true; }
				}
			}
		}
	}
	
}


function _jsChkValue(f,msg){
	var v="" , msg ;
	var chkvalue = document.all.item("chkbox[]");
	var chklen = chkvalue.length;
	
	if (chklen==null || chklen==""){
		if (chkvalue.checked){
			v=chkvalue.value+",";
		}
	}
	else{
		for(i=0;i<chklen;i++){
			if(chkvalue[i].type=='checkbox'){
				if(chkvalue[i].checked) { 
					v=chkvalue[i].value+","+v
				}
			}
		}
	}
	
	if (v==""){	alert(msg); return false;}
	else{return v;}
}




//È¸¿ø°¡ÀÔ°ü·Ã ½ºÅ©¸³Æ®
function _jsMember_Submit(f){
	try { 
		if (contFormcheck!=1) { alert(contFormMsg); return; }


		if (!_jsRegularExp("", f.name, "ÀÌ¸§À» ÀÔ·ÂÇÏ¼¼¿ä.")) return;
		if (!_jsRegularExp("email", f.id, "¾ÆÀÌµð ÀÔ·Â¿À·ùÀÔ´Ï´Ù. ¾ÆÀÌµð´Â ¸ÞÀÏÁÖ¼ÒÇü½ÄÀÔ´Ï´Ù.")) return;
		f.id.value = f.id.value.toLowerCase();
//		if (f.gbn.value=="new" && f.idcheck.value!="yes") { alert("¾ÆÀÌµðÁßº¹Ã¼Å©ºÎÅÍ ÇÏ½Ã±â¹Ù¶ø´Ï´Ù."); return;  } 
		if (f.gbn.value=="modify")	{
			if (!_jsRegularExp("", f.oldpwd1, "±âÁ¸ºñ¹Ð¹øÈ£ ÀÔ·Â¿À·ùÀÔ´Ï´Ù.")) return;
			if (f.pwd1.value!="" || f.pwd2.value!="") {
				if (!_jsRegularExp("", f.pwd1, "ºñ¹Ð¹øÈ£ ÀÔ·Â¿À·ùÀÔ´Ï´Ù.")) return;
				if (!_jsRegularExp("", f.pwd2, "ºñ¹Ð¹øÈ£È®ÀÎ ÀÔ·Â¿À·ùÀÔ´Ï´Ù.")) return;
				if (f.pwd1.value!=f.pwd2.value) { alert("µÎ ºñ¹Ð¹øÈ£°¡ ÀÏÄ¡ ÇÏÁö ¾Ê½À´Ï´Ù."); return; }
			}
		}
		else {
			if (!_jsRegularExp("", f.pwd1, "ºñ¹Ð¹øÈ£ ÀÔ·Â¿À·ùÀÔ´Ï´Ù.")) return;
			if (!_jsRegularExp("", f.pwd2, "ºñ¹Ð¹øÈ£È®ÀÎ ÀÔ·Â¿À·ùÀÔ´Ï´Ù.")) return;
			if (f.pwd1.value!=f.pwd2.value) { alert("µÎ ºñ¹Ð¹øÈ£°¡ ÀÏÄ¡ ÇÏÁö ¾Ê½À´Ï´Ù."); return; }
		}

		if (!_jsRegularExp("number" , f.phone1 , "À¯¼±ÀüÈ­ ÀÔ·Â¿À·ùÀÔ´Ï´Ù.")) return;
		if (!_jsRegularExp("number" , f.phone2 , "À¯¼±ÀüÈ­ ÀÔ·Â¿À·ùÀÔ´Ï´Ù.")) return;
		if (!_jsRegularExp("number" , f.phone3 , "À¯¼±ÀüÈ­ ÀÔ·Â¿À·ùÀÔ´Ï´Ù.")) return;

		if (!_jsRegularExp("number" , f.mphone1 , "ÀÌµ¿ÀüÈ­ ÀÔ·Â¿À·ùÀÔ´Ï´Ù.")) return;
		if (!_jsRegularExp("number" , f.mphone2 , "ÀÌµ¿ÀüÈ­ ÀÔ·Â¿À·ùÀÔ´Ï´Ù.")) return;
		if (!_jsRegularExp("number" , f.mphone3 , "ÀÌµ¿ÀüÈ­ ÀÔ·Â¿À·ùÀÔ´Ï´Ù.")) return;

		if (!_jsRegularExp("checked" , f.mphonetype , "ÀÌµ¿ÀüÈ­ ¼ÒÀ¯ÀÚ¸¦ ¼±ÅÃÇÏ¼¼¿ä.")) return;


		if (!_jsRegularExp("number" , f.zip1 , "¿ìÆí¹øÈ£ ÀÔ·Â¿À·ùÀÔ´Ï´Ù.\n\nÁÖ¼Ò°Ë»öÀ» ÀÌ¿ëÇÏ½Ã±â ¹Ù¶ø´Ï´Ù.")) return;
		if (!_jsRegularExp("number" , f.zip2 , "¿ìÆí¹øÈ£ ÀÔ·Â¿À·ùÀÔ´Ï´Ù.\n\nÁÖ¼Ò°Ë»öÀ» ÀÌ¿ëÇÏ½Ã±â ¹Ù¶ø´Ï´Ù. ")) return;
		if (!_jsRegularExp("" , f.addr1 , "ÁÖ¼Ò¸¦ ÀÔ·Â¿À·ùÀÔ´Ï´Ù.\n\nÁÖ¼Ò°Ë»öÀ» ÀÌ¿ëÇÏ½Ã±â ¹Ù¶ø´Ï´Ù.")) return;



		if (!_jsRegularExp("checked" , f.gubun , "°¡ÀÔ±¸ºÐÀ» ¼±ÅÃÇÏ¼¼¿ä.")) return;
		if (_jsCheckedValue(f.gubun)=="A"){
			if (!_jsRegularExp("" , f.school , "Ãâ½Å(ÀçÇÐ)ÇÐ±³¸¦ ÀÔ·ÂÇÏ¼¼¿ä.")) return;
			if (!_jsRegularExp("number" , f.graduate , "Á¹¾÷(¿¹Á¤)³âµµ´Â ¼ýÀÚ¸¸ ÀÔ·ÂÇÏ½Ã±â ¹Ù¶ø´Ï´Ù.")) return;
		}



		f.gbn.value = f.tmpgbn.value;
		//f.target = actionfrm ; 
		contFormcheck ++;
		f.submit();

	}
	catch (e) {
		alert(contErrorMsg + e);
	}

}


function _jsIdCheck(f){
	f.id.value = f.id.value.toLowerCase();
	if (!_jsRegularExp("email",f.id, "¾ÆÀÌµð ÀÔ·Â¿À·ùÀÔ´Ï´Ù. ¾ÆÀÌµð´Â ¸ÞÀÏÁÖ¼ÒÇü½ÄÀÔ´Ï´Ù.")) return;
	f.gbn.value = "is_idcheck";
	//f.target = actionfrm ; 
	f.submit();
}

function _jsMember_Delete(f,ix){	 //Å»Åð
	if (confirm(contDeleteMsg)) {
		f.gbn.value = "delete";
		f.ix.value = ix;
	//	f.target = actionfrm ; 
		f.submit();
	}
}



function _jsMember_Leave(f,ix){	 //Å»Åð
	if (!_jsRegularExp("", f.oldpwd1, "±âÁ¸ºñ¹Ð¹øÈ£ ÀÔ·Â¿À·ùÀÔ´Ï´Ù.")) return;

	if (confirm("Å»Åð¸¦ ÇÏ½Ã¸é ¸ðµçÁ¤º¸´Â »èÁ¦µË´Ï´Ù.\nÅ»ÅðÇÏ½Ã°Ú½À´Ï±î?")) {
		f.gbn.value = "delete";
//		f.target = actionfrm ; 
		f.submit();
	}
}

function _jsFindZip(v){
	_jsOpen('/ipsi/member/member_findzip.asp?v='+v,'findzip','width=442,height=455,scrollbars=no');
}




//ÀÔ½ÃÀÚ·á½ÅÃ»
function _jsMember_Submit2(f,gb){
	try { 
		if (contFormcheck!=1) { alert(contFormMsg); return; }


		if (!_jsRegularExp("", f.name, "ÀÌ¸§À» ÀÔ·ÂÇÏ¼¼¿ä.")) return;
		if (!_jsRegularExp("email", f.id, "¾ÆÀÌµð ÀÔ·Â¿À·ùÀÔ´Ï´Ù. ¾ÆÀÌµð´Â ¸ÞÀÏÁÖ¼ÒÇü½ÄÀÔ´Ï´Ù.")) return;
		f.id.value = f.id.value.toLowerCase();

		if (gb=="join") {
			if (f.gbn.value=="new" && f.idcheck.value!="yes") { alert("¾ÆÀÌµðÁßº¹Ã¼Å©ºÎÅÍ ÇÏ½Ã±â¹Ù¶ø´Ï´Ù."); return;  } 
			if (!_jsRegularExp("", f.pwd1, "ºñ¹Ð¹øÈ£ ÀÔ·Â¿À·ùÀÔ´Ï´Ù.")) return;
		}

		if (!_jsRegularExp("number" , f.phone1 , "À¯¼±ÀüÈ­ ÀÔ·Â¿À·ùÀÔ´Ï´Ù.")) return;
		if (!_jsRegularExp("number" , f.phone2 , "À¯¼±ÀüÈ­ ÀÔ·Â¿À·ùÀÔ´Ï´Ù.")) return;
		if (!_jsRegularExp("number" , f.phone3 , "À¯¼±ÀüÈ­ ÀÔ·Â¿À·ùÀÔ´Ï´Ù.")) return;

		if (!_jsRegularExp("number" , f.mphone1 , "ÀÌµ¿ÀüÈ­ ÀÔ·Â¿À·ùÀÔ´Ï´Ù.")) return;
		if (!_jsRegularExp("number" , f.mphone2 , "ÀÌµ¿ÀüÈ­ ÀÔ·Â¿À·ùÀÔ´Ï´Ù.")) return;
		if (!_jsRegularExp("number" , f.mphone3 , "ÀÌµ¿ÀüÈ­ ÀÔ·Â¿À·ùÀÔ´Ï´Ù.")) return;

		if (!_jsRegularExp("checked" , f.mphonetype , "ÀÌµ¿ÀüÈ­ ¼ÒÀ¯ÀÚ¸¦ ¼±ÅÃÇÏ¼¼¿ä.")) return;


		if (!_jsRegularExp("number" , f.zip1 , "¿ìÆí¹øÈ£ ÀÔ·Â¿À·ùÀÔ´Ï´Ù.\n\nÁÖ¼Ò°Ë»öÀ» ÀÌ¿ëÇÏ½Ã±â ¹Ù¶ø´Ï´Ù.")) return;
		if (!_jsRegularExp("number" , f.zip2 , "¿ìÆí¹øÈ£ ÀÔ·Â¿À·ùÀÔ´Ï´Ù.\n\nÁÖ¼Ò°Ë»öÀ» ÀÌ¿ëÇÏ½Ã±â ¹Ù¶ø´Ï´Ù. ")) return;
		if (!_jsRegularExp("" , f.addr1 , "ÁÖ¼Ò¸¦ ÀÔ·Â¿À·ùÀÔ´Ï´Ù.\n\nÁÖ¼Ò°Ë»öÀ» ÀÌ¿ëÇÏ½Ã±â ¹Ù¶ø´Ï´Ù.")) return;



		if (!_jsRegularExp("checked" , f.gubun , "°¡ÀÔ±¸ºÐÀ» ¼±ÅÃÇÏ¼¼¿ä.")) return;
		if (_jsCheckedValue(f.gubun)=="A"){
			if (!_jsRegularExp("" , f.school , "Ãâ½Å(ÀçÇÐ)ÇÐ±³¸¦ ÀÔ·ÂÇÏ¼¼¿ä.")) return;
			if (!_jsRegularExp("number" , f.graduate , "Á¹¾÷(¿¹Á¤)³âµµ´Â ¼ýÀÚ¸¸ ÀÔ·ÂÇÏ½Ã±â ¹Ù¶ø´Ï´Ù.")) return;
		}

		if (gb=="join") {
			f.returl.value = "/ipsi/common/subpage.asp?code=ip0802";
		}
		else {
			f.returl.value = "/ipsi/common/subpage.asp?code=ip0506&gbn=bbs";
		}
		f.gb.value = gb;
		f.gbn.value = f.tmpgbn.value;
	//	f.target = actionfrm; 
		contFormcheck ++;
		f.submit();

	}
	catch (e) {
		alert(contErrorMsg + e);
	}

}



//°Ô½ÃÆÇ 
function _jsBoard_Submit(f){

	if (f.cate) {
		if (!_jsRegularExp("",f.cate,"±¸ºÐÀ» ¼±ÅÃÇÏ¼¼¿ä.")) return;
	}
	if (f.pwd){
		if (!_jsRegularExp("",f.name,"ÀÌ¸§À» ÀÔ·ÂÇÏ¼¼¿ä.")) return;
		if (!_jsRegularExp("",f.email,"¸ÞÀÏÁÖ¼Ò¸¦ ÀÔ·ÂÇÏ¼¼¿ä.")) return;
		if (!_jsRegularExp("",f.pwd,"ºñ¹Ð¹øÈ£¸¦ ÀÔ·ÂÇÏ¼¼¿ä.")) return;
	}


	if (f.popupyn)	{
		if (f.popupyn.checked) {
			if ( (!f.sYear.value) || (!f.sMonth.value) || (!f.sDay.value) || (!f.eYear.value) || (!f.eMonth.value) || (!f.eDay.value) ) {
				alert("ÆË¾÷ ±â°£¼³Á¤À» Á¤È®È÷ ¼±ÅÃÇÏ¼¼¿ä."); return;
			}		
			if ( !_jsIsDate(f.sYear.value,f.sMonth.value,f.sDay.value,f.eYear.value,+f.eMonth.value,f.eDay.value)) return;
		}
	}


	if (!_jsRegularExp("",f.subject,"Á¦¸ñÀ» ÀÔ·ÂÇÏ¼¼¿ä.")) return;

	if (f.movielink) {
		if (!_jsRegularExp("",f.movielink,"µ¿¿µ»ó°æ·Î¸¦ ÀÔ·ÂÇÏ¼¼¿ä.")) return;
	}
	if (f.contents){
		if (!_jsRegularExp("",f.contents,"³»¿ëÀ» ÀÔ·ÂÇÏ¼¼¿ä.")) return;
	}



	
	if (f.gbn.value=="new"){
		var yn = true;
		
		if ((typeof(f.filecnt)!="undefined")&&(f.filecnt.value >= 1 )){	//ÆÄÀÏÀ» 1°³¶óµµ ¼±ÅÃÇßÀ¸¸é;
			var file = f.file
			
			for (i = 1 ; i <= f.filecnt.value ; i++){
				if (file[i-1].value =="") { yn=false;}
			}
		}
		
		if (!yn){alert("¼±ÅÃÇÏ½Å ÆÄÀÏ¼ö¿¡ ¸Â°Ô Ã·ºÎÆÄÀÏÀ» ¼±ÅÃÇÏ¿© ÁÖ½Ã±â ¹Ù¶ø´Ï´Ù."); return; }
	}


//	f.target=actionfrm;
	f.submit();

}


function _jsBoard_Modify(f,ix){
	if (!_jsRegularExp("", f.pwd ,"ºñ¹Ð¹øÈ£¸¦ ÀÔ·ÂÇÏ¼¼¿ä.")) return;
	f.gbn.value = "modifyYn";
	f.ix.value = ix;
//	f.target = actionfrm;
	f.submit();
}


//´äº¯ 
function _jsBoard_Reply(f){
	if (!_jsRegularExp("",f.a_contents,"´äº¯À» ÀÔ·ÂÇÏ¼¼¿ä.")) return;
//	f.target=actionfrm;
	f.submit();
}



//±Û»èÁ¦
function _jsBoard_Delete(f,ix){
	if (f.pwd){
		if (!_jsRegularExp("",f.pwd,"ºñ¹Ð¹øÈ£¸¦ ÀÔ·ÂÇÏ¼¼¿ä.")) return;
	}

	if (confirm("»èÁ¦ÇÏ½Ã¸é º¹±¸ÇÒ ¼ö ¾ø½À´Ï´Ù.\n»èÁ¦ÇÏ°Ú½À´Ï±î?")) {
		f.gbn.value = "delete";
		f.ix.value = ix;
	//	f.target = actionfrm ; 
		f.submit();
	}

}


function _jsBoard_Movie(bbs,ix){
	_jsOpen('/common/pb_board_movie.asp?bbsID='+bbs+'&ix='+ix,'movie','width=500,height=450,scrollbars=no');
}





//³¯Â¥ ÀÚµ¿»Ñ·ÁÁÖ±â.
function _jsGetDateInit(start,end){	//start ´Â ½ÃÀÛÀÏ , end Á¾·áÀÏ , ¹ßÇ¥ÀÏÀÚ

	try {

		_jsGetDateYear(document.frm.sYear , start);
		_jsGetDateYear(document.frm.eYear , end);

		if ( (start != '') ){

			_jsGetDateMonth(document.frm.sMonth , start);
			_jsGetDateDay(document.frm.sMonth.value , document.frm.sDay , start);

		}

		if ( (end != '') ){
			_jsGetDateMonth(document.frm.eMonth , end);
			_jsGetDateDay(document.frm.eMonth.value , document.frm.eDay , end);
		}
		
	}
	catch (e) {
		alert(contErrorMsg + e);
	}



}


datez = new Date();


//*****************************************************************************************
//³âµµ SELECT BOX ¼¼ÆÃ
function _jsGetDateYear(obj,data){
	try{
		var old_data = data.substr(0,4);

		var sY = parseInt(datez.getYear());
		var inum = 1;
		for (y=2005 ;  y <= sY+2  ; y++){
			var option1 = new Option(""+y,""+ y);
			obj.options[inum] = option1;

			if (y==Math.ceil(old_data)){
				obj.options[inum].selected = true;
			}


			inum++;
		}
	}

	catch (e) { alert(e); }

}


//*****************************************************************************************
//¿ù SELECT BOX ¼¼ÆÃ
function _jsGetDateMonth(obj,data){
	try{
		var old_data = data.substr(5,2);

		var inum = 1;
		for (m=1 ; m <= 12 ; m++){
			var option1 = new Option(""+m,""+ m);
			obj.options[inum] = option1;

			if (m==Math.ceil(old_data)){
				obj.options[inum].selected = true;
			}

			inum++;
		}
	}

	catch (e) { alert(e); }
}


//*****************************************************************************************
//ÀÏ SELECT BOX ¼¼ÆÃ
function _jsGetDateDay(nowmonth , obj , data){

	try{
		var old_data = data.substr(8,2);

		days = 31
		if (nowmonth == 2) {
			days = 28
		}
		var inum = 1;
		for (d=1 ; d <= days ; d++){
			var option1 = new Option(""+d,""+ d);
			obj.options[inum] = option1;

			if (d==Math.ceil(old_data)){
				obj.options[inum].selected = true;
			}

			inum++;
		}
	}

	catch (e) { alert(e); }
}





//³¯Â¥ ºñ±³ÇÏ±â.
function _jsIsDate(sYear,sMonth,sDay,eYear,eMonth,eDay){

	
	var cur_y = datez.getYear();		//³âµµ
	var cur_m = datez.getMonth();	//¿ù
	var cur_d  = datez.getDate();	//³¯ÀÚ
	var cur_date = new Date(cur_y,cur_m,cur_d);
	//num=3;

	var start_date = new Date(sYear,sMonth-1,sDay);
	var end_date = new Date(eYear,eMonth-1,eDay);



	var now_date = new Date(Date.parse(cur_date));
	var start_date = new Date(Date.parse(start_date));
	var end_date = new Date(Date.parse(end_date));
	


	if (now_date > end_date) {
		alert("Á¾·áÀÏÀÌ ¿À´Ãº¸´Ù ÀÌÀü ÀÏ ¼ö ¾ø½À´Ï´Ù.");
		return false;
	}
	else {
		if (start_date > end_date){
			alert("Á¾·áÀÏÀÌ ½ÃÀÛÀÏº¸´Ù ÀÌÀü ÀÏ¼ö ¾ø½À´Ï´Ù.");
			return false;
		}
		else {
			return true;
		}
	}
}





//===== ÆË¾÷ °øÁö»çÇ× =============================================
var nowDate = new Date();
var nowHours = nowDate.getHours();
var nowMin = nowDate.getMinutes();
var setCookieValue = 1440 - (nowHours*60+nowMin);		//¿À´ÃÀÚÁ¤±îÁö¸¸..


//ÄíÅ°¼³Á¤ ¹× °¡Á®¿À±â
function _jsGetCookie( name ){ 
		var nameOfCookie = name + "="; 
		var x = 0; 
		while ( x <= document.cookie.length ) 
		{ 
				 var y = (x+nameOfCookie.length); 
				 if ( document.cookie.substring( x, y ) == nameOfCookie ) { 
					   if ( (endOfCookie=document.cookie.indexOf( ";", y )) == -1 ) 
								endOfCookie = document.cookie.length; 
					   return unescape( document.cookie.substring( y, endOfCookie ) ); 
				 } 
				 x = document.cookie.indexOf( " ", x ) + 1; 
				 if ( x == 0 ) 
					   break; 
		} 
		return ""; 
}


function _jsSetCookie( name, value, expiredays ) { 
	var todayDate = new Date();
	todayDate.setTime( todayDate.getTime() + (1000*60*parseInt(expiredays)) );
	document.cookie = name + "=" + escape( value ) + "; path=/; expires=" + todayDate.toGMTString() + ";" 
} 



function _jsCloseToday(popid){
	_jsSetCookie(popid , "none" , setCookieValue);
	_jsCloseWindow();
}


function _jsCloseWindow(){
	window.close()
}



//DESIGN¿¡ ÇÊ¿äÇÑ ½ºÅ©¸³Æ®

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 flash(c,d,e) {
 var flash_tag = "";
 flash_tag = '<OBJECT classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" ';
 flash_tag +='codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0" ';
 flash_tag +='WIDTH="'+c+'" HEIGHT="'+d+'" >';
 flash_tag +='<param name="wmode" value="transparent">'; 
 //ÀÌºÎºÐÀº ÇÃ·¡½¬ ¹è°æÀ» Åõ¸íÀ¸·Î ¼³Á¤ÇÏ´Â ºÎºÐÀ¸·Î ÇÊ¿ä¾ø´Ù¸é »èÁ¦ÇØµµ ¹«¹æÇÔ
 flash_tag +='<param name="movie" value="'+e+'">';
 flash_tag +='<param name="quality" value="high">';
 flash_tag +='<embed src="'+e+'" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" ';
 flash_tag +='type="application/x-shockwave-flash"  WIDTH="'+c+'" HEIGHT="'+d+'"></embed></object>'
 document.write(flash_tag);
}



function tabChg(nu) {          //°øÁö»çÇ× ´º½º ÅÇ¸Þ´º¿ë
		if (nu == 1) {
		notice.style.display='block';
		news.style.display='none';
	 
		} else if (nu == 2) {
		notice.style.display='none';
		news.style.display='block';
										
		}
}


function ptabChg2(nu) {        //ÀÔ½Ã news tip
			if (nu == 1) {
			ent_news.style.display='block';
			ent_qna.style.display='none';
			ent_faq.style.display='none';

			} else if (nu == 2) {
			ent_news.style.display='none';
			ent_qna.style.display='block';
			ent_faq.style.display='none';
											
			} else if (nu == 3) {
			ent_news.style.display='none';
			ent_qna.style.display='none';
			ent_faq.style.display='block';
											
			}
	}


function ptabChg(nu) {        //Ä¿¹Â´ÏÆ¼ ¸Þ´º¿ë
			if (nu == 1) {
			data.style.display='block';
			days.style.display='none';
			schedule.style.display='none';
			tender.style.display='none';

			} else if (nu == 2) {
			data.style.display='none';
			days.style.display='block';
			schedule.style.display='none';
			tender.style.display='none';
											
			} else if (nu == 3) {
			data.style.display='none';
			days.style.display='none';
			schedule.style.display='block';
			tender.style.display='none';
											
			} else if (nu == 4) {
			data.style.display='none';
			days.style.display='none';
			schedule.style.display='none';
			tender.style.display='block';
											
			}
	}


function gopage(type){
     var goUrl = "";

	if( type == "1_1" ){ goUrl = "/main/common/subpage.asp?code=m0101"; }	//´ëÇÐ¾È³»
	if( type == "1_2" ){ goUrl = "/ipsi/index.asp"; }	//ÀÔÇÐ¾È³»
	if( type == "1_3" ){ goUrl = "/main/common/subpage.asp?code=m0200"; }	//ÇÐ°ú¼Ò°³
	if( type == "1_4" ){ goUrl = "/main/common/subpage.asp?code=m0501"; }	//ÇÐ»çÇàÁ¤
	if( type == "1_5" ){ goUrl = "/main/common/subpage.asp?code=m0301"; }	//Ä·ÆÛ½º¶óÀÌÇÁ
    if( type == "1_6" ){ goUrl = "/main/common/subpage.asp?code=m0601"; }	//¹èÈ­±¤Àå

	if( type == "1_1a" ){ goUrl = "/main/common/subpage.asp?code=m0101"; }	//ÇÐ±³¼Ò°³
	if( type == "1_1b" ){ goUrl = "/main/common/subpage.asp?code=m0102_1"; }	//ÇÐÀåÀÎ»ç¸»
	if( type == "1_1c" ){ goUrl = "/main/common/subpage.asp?code=m0103"; }	//¹èÈ­ºñÀü
	if( type == "1_1d" ){ goUrl = "/main/common/subpage.asp?code=m0104"; }	//¹èÈ­»óÂ¡¹°
	if( type == "1_1e" ){ goUrl = "/main/common/subpage.asp?code=m0105_1"; }	//ºÎ¼­¾È³»
	if( type == "1_1f" ){ goUrl = "/main/common/subpage.asp?code=m0106_2"; }	//ºÎ¼Ó/ºÎ¼³±â°ü
	if( type == "1_1g" ){ goUrl = "/main/common/subpage.asp?code=m0107_1"; }	//±³³»ÀüÈ­¹øÈ£
	if( type == "1_1h" ){ goUrl = "/main/common/subpage.asp?code=m0108_1"; }	//ÀåÇÐÁ¦µµ
	if( type == "1_1i" ){ goUrl = "/main/common/subpage.asp?code=m0109"; }	//±¹Á¦±³·ù
	if( type == "1_1j" ){ goUrl = "/main/common/subpage.asp?code=m0110"; }	//ÇÐ±³¿À½Ã´Â±æ
	if( type == "1_1k" ){ goUrl = "/main/common/subpage.asp?code=m0111"; }	//±ÔÁ¤
	if( type == "1_1l" ){ goUrl = "/main/common/subpage.asp?code=m0112"; }	//´ëÇÐÆòÀ§¿øÈ¸

	if( type == "1_3a" ){ goUrl = "/main/common/subpage.asp?code=m0201_1"; }	//½ÄÇ°¿µ¾ç°ú
	if( type == "1_3b" ){ goUrl = "/main/common/subpage.asp?code=m0202_1"; }	//À¯¾Æ±³À°°ú
	if( type == "1_3c" ){ goUrl = "/main/common/subpage.asp?code=m0203_1"; }	//ÄÄÇ»ÅÍÁ¤º¸°ú
	if( type == "1_3d" ){ goUrl = "/main/common/subpage.asp?code=m0204_1"; }	//ÀüÅëÁ¶¸®°ú
	if( type == "1_3e" ){ goUrl = "/main/common/subpage.asp?code=m0205_1"; }	//¿µ¾îÅë¹ø¿ª°ú
	if( type == "1_3f" ){ goUrl = "/main/common/subpage.asp?code=m0206_1"; }	//ÀÏ¾îÅë¹ø¿ª°ú
	if( type == "1_3g" ){ goUrl = "/main/common/subpage.asp?code=m0207_1"; }	//ºñ¼­ÇàÁ¤°ú
	if( type == "1_3h" ){ goUrl = "/main/common/subpage.asp?code=m0208_1"; }	//Áß±¹¾îÅë¹ø¿ª°ú
	if( type == "1_3i" ){ goUrl = "/main/common/subpage.asp?code=m0209_1"; }	//±¹Á¦¹«¿ª°ú
	if( type == "1_3j" ){ goUrl = "/main/common/subpage.asp?code=m0210_1"; }	//ÀÇ»óµðÀÚÀÎ°ú
	if( type == "1_3k" ){ goUrl = "/main/common/subpage.asp?code=m0211_1"; }	//ÀüÅëÀÇ»ó°ú
	if( type == "1_3l" ){ goUrl = "/main/common/subpage.asp?code=m0212_1"; }	//°æ¿µ°ú

	if( type == "1_4a" ){ goUrl = "/main/common/subpage.asp?code=m0501"; }	//±³À°°úÁ¤Æí¼º
	if( type == "1_4b" ){ goUrl = "/main/common/subpage.asp?code=m0502"; }	//¼ö°­½ÅÃ»
	if( type == "1_4c" ){ goUrl = "/main/common/subpage.asp?code=m0503"; }	//¼ºÀû°ü¸®
	if( type == "1_4d" ){ goUrl = "/main/common/subpage.asp?code=m0504"; }	//ÈÞÇÐ
	if( type == "1_4e" ){ goUrl = "/main/common/subpage.asp?code=m0505"; }	//º¹ÇÐ
	if( type == "1_4f" ){ goUrl = "/main/common/subpage.asp?code=m0506"; }	//Á¦Àû
	if( type == "1_4g" ){ goUrl = "/main/common/subpage.asp?code=m0507"; }	//Áõ¸í¼­¹ß±Þ
	if( type == "1_4h" ){ goUrl = "/main/common/subpage.asp?code=m0508"; }	//ÇÐÁ¡ÀÎÁ¤
	if( type == "1_4i" ){ goUrl = "/main/common/subpage.asp?code=m0509"; }	//Ãâ¼®ÀÎÁ¤
	if( type == "1_4j" ){ goUrl = "/main/common/subpage.asp?code=m0510"; }	//ÇÐÀû»çÇ×Á¤Á¤

	if( type == "1_5a" ){ goUrl = "/main/common/subpage.asp?code=m0301"; }	//ÇÐ»çÀÏÁ¤
	if( type == "1_5b" ){ goUrl = "/main/common/subpage.asp?code=m0302_1"; }	//ÇÐ»ýÈ°µ¿
	if( type == "1_5c" ){ goUrl = "/main/common/subpage.asp?code=m0303"; }	//º¹Áö½Ã¼³¾È³»
	if( type == "1_5d" ){ goUrl = "/main/common/subpage.asp?code=m0304"; }	//±³³»È¨ÆäÀÌÁö
	if( type == "1_5e" ){ goUrl = "/main/common/subpage.asp?code=m0305_1"; }	//µ¿¾Æ¸®¼Ò°³
	if( type == "1_5f" ){ goUrl = "/main/common/subpage.asp?code=m0306"; }	//»çÈ¸ºÀ»ç
	if( type == "1_5g" ){ goUrl = "/main/common/subpage.asp?code=m0307"; }	//µ¿Ã¢È¸
	if( type == "1_5h" ){ goUrl = "/main/common/subpage.asp?code=m0308"; }	//ºÐ½Ç¹°¼¾ÅÍ
	if( type == "1_5i" ){ goUrl = "/main/common/subpage.asp?code=m0309"; }	//»ýÈ°»ó´ã
	if( type == "1_5j" ){ goUrl = "/main/common/subpage.asp?code=m0310"; }	//±ÝÁÖÀÇ½Ä´Ü
	
	if( type == "1_6a" ){ goUrl = "/main/common/subpage.asp?code=m0601"; }	//°øÁö»çÇ×
	if( type == "1_6b" ){ goUrl = "/main/common/subpage.asp?code=m0602"; }	//¹èÈ­´º½º
	if( type == "1_6c" ){ goUrl = "/main/common/subpage.asp?code=m0612"; }	//ÀÔÂû°ø°í
	if( type == "1_6d" ){ goUrl = "/main/common/subpage.asp?code=m0604"; }	//Q&A
	if( type == "1_6e" ){ goUrl = "/main/common/subpage.asp?code=m0605"; }	//FAQ
	if( type == "1_6f" ){ goUrl = "/main/common/subpage.asp?code=m0606"; }	//Ä·ÆÛ½ºÅõ¾î
	if( type == "1_6g" ){ goUrl = "/main/common/subpage.asp?code=m0607"; }	//¿Â¶óÀÎºê·Î¼Å
	if( type == "1_6h" ){ goUrl = "/main/common/subpage.asp?code=m0608"; }	//¹Ìµð¾î¹èÈ­
	if( type == "1_6i" ){ goUrl = "/main/common/subpage.asp?code=m0609"; }	//Æ÷Åä°¶·¯¸®
	if( type == "1_6j" ){ goUrl = "/main/common/subpage.asp?code=m0610"; }	//¿Â¶óÀÎ¼³¹®Á¶»ç
	if( type == "1_6k" ){ goUrl = "/main/common/subpage.asp?code=m0611"; }	//ÀÚ¶û½º·±¹èÈ­




	if( type == "2_1" ){ goUrl = "/ipsi/common/subpage.asp?code=ip0401"; }	//¼ö½Ã¸ðÁý
	if( type == "2_2" ){ goUrl = "/ipsi/common/subpage.asp?code=ip0410"; }	//Á¤½Ã¸ðÁý
	if( type == "2_3" ){ goUrl = "/ipsi/common/subpage.asp?code=ip0430"; }	//Á¤¿ø¿Ü¸ðÁý
	if( type == "2_4" ){ goUrl = "/ipsi/common/subpage.asp?code=ip0420"; }	//»ê¾÷Ã¼À§Å¹
	if( type == "2_5" ){ goUrl = "/ipsi/common/subpage.asp?code=ip0440"; }	//Àü°ø½ÉÈ­°úÁ¤
    if( type == "2_6" ){ goUrl = "/ipsi/common/subpage.asp?code=ip0501"; }	//ÀÔ½Ãµµ¿ì¹Ì
	if( type == "2_7" ){ goUrl = "/ipsi/common/subpage.asp?code=ip0601"; }	//¿ø¼­Á¢¼ö
    if( type == "2_8" ){ goUrl = "/ipsi/common/subpage.asp?code=ip0101"; }	//´ëÇÐÁ¤º¸(¼öÁ¤ÇØ¾ßÇÔ.)


// ¼ö½Ã¸ðÁý
	if( type == "2_1a" ){ goUrl = "/ipsi/common/subpage.asp?code=ip0401"; }	//¸ðÁýÇÐ°ú¹×Á¤¿ø
	if( type == "2_1b" ){ goUrl = "/ipsi/common/subpage.asp?code=ip0402"; }	//ÀüÇüÀÏÁ¤
	if( type == "2_1c" ){ goUrl = "/ipsi/common/subpage.asp?code=ip0403"; }	//¼ºÀû¹Ý¿µ¹æ¹ý
	if( type == "2_1d" ){ goUrl = "/ipsi/common/subpage.asp?code=ip0404"; }	//¿ø¼­Á¢¼ö ¹× Áö¿ø¹æ¹ý
	if( type == "2_1e" ){ goUrl = "/ipsi/common/subpage.asp?code=ip0405"; }	//ÇÕ°ÝÀÚ¹ßÇ¥ ¹× µî·Ï
	if( type == "2_1f" ){ goUrl = "/ipsi/common/subpage.asp?code=ip0406"; }	//ÀÏ¹ÝÀüÇü¾È³»
	if( type == "2_1g" ){ goUrl = "/ipsi/common/subpage.asp?code=ip0407"; }	//Á¤¿ø³»Æ¯º°ÀüÇü
	if( type == "2_1h" ){ goUrl = "/ipsi/common/subpage.asp?code=ip0408"; }	//Á¤¿ø¿ÜÆ¯º°ÀüÇü
	if( type == "2_1i" ){ goUrl = "/ipsi/common/subpage.asp?code=ip0409"; }	//Áö¿øÀÚÀ¯ÀÇ»çÇ×
	if( type == "2_1j" ){ goUrl = "/ipsi/common/subpage.asp?code=ip0410"; }	//ÀÚ·áÃâ·Â(ÆË¾÷Ã³¸®)

//Á¤½Ã¸ðÁý
	if( type == "2_2a" ){ goUrl = "/ipsi/common/subpage.asp?code=ip0410"; }	//¸ðÁýÇÐ°ú¹×Á¤¿ø
	if( type == "2_2b" ){ goUrl = "/ipsi/common/subpage.asp?code=ip0411"; }	//ÀüÇüÀÏÁ¤
	if( type == "2_2c" ){ goUrl = "/ipsi/common/subpage.asp?code=ip0412"; }	//¼ºÀû¹Ý¿µ¹æ¹ý
	if( type == "2_2d" ){ goUrl = "/ipsi/common/subpage.asp?code=ip0413"; }	//¿ø¼­Á¢¼ö ¹× Áö¿ø¹æ¹ý
	if( type == "2_2e" ){ goUrl = "/ipsi/common/subpage.asp?code=ip0414"; }	//ÇÕ°ÝÀÚ¹ßÇ¥ ¹× µî·Ï
	if( type == "2_2f" ){ goUrl = "/ipsi/common/subpage.asp?code=ip0415"; }	//ÀÏ¹ÝÀüÇü¾È³»
	if( type == "2_2g" ){ goUrl = "/ipsi/common/subpage.asp?code=ip0416"; }	//Æ¯º°ÀüÇü¾È³»
	if( type == "2_2h" ){ goUrl = "/ipsi/common/subpage.asp?code=ip0417"; }	//Áö¿øÀÚÀ¯ÀÇ»çÇ×
	if( type == "2_2i" ){ goUrl = "/ipsi/common/subpage.asp?code=ip0418"; }	//ÀÚ·áÃâ·Â(ÆË¾÷Ã³¸®)


//Á¤¿ø¿Ü¸ðÁý
	if( type == "2_3a" ){ goUrl = "/ipsi/common/subpage.asp?code=ip0430"; }	//¸ðÁýÇÐ°ú¹×Á¤¿ø
	if( type == "2_3b" ){ goUrl = "/ipsi/common/subpage.asp?code=ip0431"; }	//ÀüÇüÀÏÁ¤
	if( type == "2_3c" ){ goUrl = "/ipsi/common/subpage.asp?code=ip0432"; }	//Áö¿øÀÚ°Ý
	if( type == "2_3d" ){ goUrl = "/ipsi/common/subpage.asp?code=ip0433"; }	//Á¦Ãâ¼­·ù
	if( type == "2_3e" ){ goUrl = "/ipsi/common/subpage.asp?code=ip0434"; }	//ÀüÇü¹æ¹ý
	if( type == "2_3f" ){ goUrl = "/ipsi/common/subpage.asp?code=ip0435"; }	//ÇÕ°ÝÀÚ¹ßÇ¥¹×µî·Ï
	if( type == "2_3g" ){ goUrl = "/ipsi/common/subpage.asp?code=ip0436"; }	//À¯ÀÇ»çÇ×
	if( type == "2_3i" ){ goUrl = "/ipsi/common/subpage.asp?code=ip0438"; }	//ÀÚ·áÃâ·Â(ÆË¾÷Ã³¸®)

//»ê¾÷Ã¼À§Å¹
	if( type == "2_4a" ){ goUrl = "/ipsi/common/subpage.asp?code=ip0420"; }	//Á¦µµ¾È³»
	if( type == "2_4b" ){ goUrl = "/ipsi/common/subpage.asp?code=ip0421"; }	//À§Å¹±³À°½ÅÃ»¼­ Á¦Ãâ
	if( type == "2_4c" ){ goUrl = "/ipsi/common/subpage.asp?code=ip0422"; }	//¸ðÁýÇÐ°ú ¹× ÀÎ¿ø
	if( type == "2_4d" ){ goUrl = "/ipsi/common/subpage.asp?code=ip0423"; }	//ÀüÇüÀÏÁ¤
	if( type == "2_4e" ){ goUrl = "/ipsi/common/subpage.asp?code=ip0424"; }	//Áö¿øÀÚ°Ý
	if( type == "2_4f" ){ goUrl = "/ipsi/common/subpage.asp?code=ip0425"; }	//ÀüÇü¹æ¹ý ¹× ¿ì¼±¼øÀ§
	if( type == "2_4g" ){ goUrl = "/ipsi/common/subpage.asp?code=ip0426"; }	//Á¦Ãâ¼­·ù
	if( type == "2_4h" ){ goUrl = "/ipsi/common/subpage.asp?code=ip0427"; }	//Áö¿øÀÚ À¯ÀÇ»çÇ×
	if( type == "2_4i" ){ goUrl = "/ipsi/common/subpage.asp?code=ip0428"; }	//»ê¾÷Ã¼À§Å¹±³À°FAQ
	if( type == "2_4j" ){ goUrl = "/ipsi/common/subpage.asp?code=ip042_1"; }	//»ê¾÷Ã¼À§Å¹±³À°Q&A
	if( type == "2_4k" ){ goUrl = "/ipsi/common/subpage.asp?code=ip042_2"; }	//ÀÚ·á½Ç
//Àü°ø½ÉÈ­°úÁ¤
	if( type == "2_5a" ){ goUrl = "/ipsi/common/subpage.asp?code=ip0440"; }	//°úÁ¤¾È³»
	if( type == "2_5b" ){ goUrl = "/ipsi/common/subpage.asp?code=ip0441"; }	//¸ðÁýÇÐ°ú¹×¸ðÁýÀÎ¿ø
	if( type == "2_5c" ){ goUrl = "/ipsi/common/subpage.asp?code=ip0442"; }	//ÀüÇüÀÏÁ¤
	if( type == "2_5d" ){ goUrl = "/ipsi/common/subpage.asp?code=ip0443"; }	//Áö¿øÀÚ°Ý
	if( type == "2_5e" ){ goUrl = "/ipsi/common/subpage.asp?code=ip0444"; }	//»ê¾÷Ã¼ÀÎÁ¤¹üÀ§
	if( type == "2_5f" ){ goUrl = "/ipsi/common/subpage.asp?code=ip0445"; }	//À¯ÀÇ»çÇ×
	if( type == "2_5g" ){ goUrl = "/ipsi/common/subpage.asp?code=ip0446"; }	//Àü°ø½ÉÈ­°úÁ¤q&a


//ÀÔ½Ãµµ¿ì¹Ì
	if( type == "2_6a" ){ goUrl = "/ipsi/common/subpage.asp?code=ip0501"; }	//ÀÔ½Ã»ó´ãfaq
	if( type == "2_6b" ){ goUrl = "/ipsi/common/subpage.asp?code=ip0502"; }	//ÀÔ½Ã»ó´ãq&a
	if( type == "2_6c" ){ goUrl = "/ipsi/common/subpage.asp?code=ip0502_1"; }//Àü³âµµ ÀÔ½Ã°á°ú
	if( type == "2_6d" ){ goUrl = "/ipsi/common/subpage.asp?code=ip0503"; }	//ÀÔ½ÃÀÚ·á½Ç
	if( type == "2_6e" ){ goUrl = "/ipsi/common/subpage.asp?code=ip0504"; }	//ÀÔ½Ã°øÁö»çÇ×
	if( type == "2_6f" ){ goUrl = "/ipsi/common/subpage.asp?code=ip0508"; }	//ÀÔ½Ã´º½º
	if( type == "2_6g" ){ goUrl = "/ipsi/common/subpage.asp?code=ip0505"; }	//¼ºÀû»êÃâ
	if( type == "2_6h" ){ goUrl = "/ipsi/common/subpage.asp?code=ip0506"; }	//ÀÔ½ÃÀÚ·á½ÅÃ»
	if( type == "2_6h" ){ goUrl = "/ipsi/common/subpage.asp?code=ip0507"; }	//¹®ÀÇ¹×¿¬¶ôÃ³


//¿ø¼­Á¢¼ö
	if( type == "2_7a" ){ goUrl = "/ipsi/common/subpage.asp?code=ip0601"; }	//¼öÇè»ýÁÖÀÇ»çÇ×
	if( type == "2_7b" ){ goUrl = "/ipsi/common/subpage.asp?code=ip0602"; }	//ÀÎÅÍ³ÝÀÔ½ÃÁ¢¼ö
	if( type == "2_7c" ){ goUrl = "/ipsi/common/subpage.asp?code=ip0603"; }	//¿ø¼­Á¢¼öÈ®ÀÎ
	if( type == "2_7d" ){ goUrl = "/ipsi/common/subpage.asp?code=ip0604"; }	//°æÀï·üº¸±â
	if( type == "2_7e" ){ goUrl = "/ipsi/common/subpage.asp?code=ip0605"; }	//ÇÕ°ÝÀÚÁ¶È¸
	if( type == "2_7f" ){ goUrl = "/ipsi/common/subpage.asp?code=ip0606"; }	//µî·Ï±Ý°íÁö¼­Ãâ·Â
	if( type == "2_7g" ){ goUrl = "/ipsi/common/subpage.asp?code=ip0608"; }	//¼­·ùµµÂøÈ®ÀÎ
	if( type == "2_7h" ){ goUrl = "/ipsi/common/subpage.asp?code=ip0609"; }	//µî·Ï±Ý³³ºÎÈ®ÀÎ
	if( type == "2_7i" ){ goUrl = "/ipsi/common/subpage.asp?code=ip0610"; }	//¹®ÀÇ¹×¿¬¶ôÃ³

//´ëÇÐÁ¤º¸
	if( type == "2_8a" ){ goUrl = "/ipsi/common/subpage.asp?code=ip0501"; }	//´ëÇÐÈ¨ÆäÀÌÁö
	if( type == "2_8b" ){ goUrl = "/ipsi/common/subpage.asp?code=ip0501"; }	//ÇÐ°ú¼Ò°³
	if( type == "2_8c" ){ goUrl = "/ipsi/common/subpage.asp?code=ip0501"; }	//ÀåÇÐÁ¦µµ
	if( type == "2_8d" ){ goUrl = "/ipsi/common/subpage.asp?code=ip0501"; }	//¿À½Ã´Â±æ




	this.location.href = goUrl;
}



