function MM_jumpMenu(targ,selObj,restore){ //v3.0
	if (selObj == null || selObj == "") {
		selObj = document.getElementById("sel_footer_menu");
	}
	
	var buburl="http://www.iros.go.kr";
	var glawurl="http://glaw.scourt.go.kr";
	if (selObj.options[selObj.selectedIndex].value=="bubin") {
		window.open(buburl,"bub_internet");
	}
	else if (selObj.options[selObj.selectedIndex].value=="glaw") {
		window.open(glawurl,"glaw_internet");
	}
	else {
		if (selObj.options[selObj.selectedIndex].value == "N")
	 		return;
	else
		window.open(selObj.options[selObj.selectedIndex].value, "family_site");
	}
	if (restore) selObj.selectedIndex=0;
}

function f_goWhitePaper(){
	window.open('/pos1/html/com/PCOMWhitePaperH.html','WhitePaper', 'width=943px,height=707px,top=0,left=0,toolbar=no,scrollbars=no,resizable=yes,status=no,titlebar=no,menubar=no,location=no'  );
}

// Á¤º¸°ÝÂ÷È­¸é ÆË¾÷
function f_doiros()
{
	window.open('http://do.iros.go.kr','doiros','');
}

// ¹ýÀÎÈ­¸é ÆË¾÷
function f_gobubin()
{
	document.frmMain.action =   "/icis/index.jsp";
	document.frmMain.target =   "_blank";
	document.frmMain.submit();
}

/*----------------------------------------------------------------------------*/
/*  NAME : f_AgentSearch()                                                   */
/*  DESC : ÀüÀÚ½ÅÃ»»ç¿ëÀÚ Á¶È¸ ÆË¾÷À» ¿ÀÇÂÇÑ´Ù.                                */
/*  DATE : 2006.09.05                                                         */
/*  AUTH : À±ÇýÁ¤                                                             */
/*----------------------------------------------------------------------------*/
function f_AgentSearch()
{
	var vUrl ="/pos1/pfrontservlet?cmd=PMEMAgentSearchC";
	window.open(vUrl,"new","top=40,left=110,width=800,height=620,toolbar=no,scrollbars=yes,resizable=yes,status=no,titlebar=yes,menubar=no,location=no");
}

/*----------------------------------------------------------------------------*/
/*  NAME : f_Agentmovieview()                                                   */
/*  DESC : ÀüÀÚ½ÅÃ»µ¿¿µ»ó º¸±â  ÆË¾÷À» ¿ÀÇÂÇÑ´Ù.                                */
/*  DATE : 2007.04.12                                                         */
/*  AUTH : ¼­µ¿±¹                                                             */
/*----------------------------------------------------------------------------*/
function f_Agentmovieview()
{
	var vUrl ="/re1/help/r0/eRecv_first1.htm";
	window.open(vUrl,"05_01","top=40,left=110,width=940,height=730,toolbar=no,scrollbars=no,resizable=no,status=no,titlebar=yes,menubar=no,location=no");
}

/*----------------------------------------------------------------------------*/
/*  NAME : f_Agentedumovieview()                                                   */
/*  DESC : ÀüÀÚ½ÅÃ»µ¿¿µ»ó±³À° º¸±â  ÆË¾÷À» ¿ÀÇÂÇÑ´Ù.                                */
/*  DATE : 2007.05.14                                                         */
/*  AUTH : ¼­µ¿±¹                                                             */
/*----------------------------------------------------------------------------*/
function f_Agentedumovieview()
{
	var vUrl ="/pos1/pfrontservlet?cmd=PCOMMovViewCntC";
	window.open(vUrl,"agentedumov","top=40,left=110,width=700,height=581,toolbar=no,scrollbars=no,resizable=no,status=no,titlebar=yes,menubar=no,location=no");
}

/*----------------------------------------------------------------------------*/
/*  NAME : f_Agentedumovieview3()                                                   */
/*  DESC : ÀüÀÚ½ÅÃ»µ¿¿µ»ó±³À°3 º¸±â  ÆË¾÷À» ¿ÀÇÂÇÑ´Ù.                                */
/*  DATE : 2007.11.19                                                         */
/*  AUTH : ±èº´ÅÂ                                                         */
/*----------------------------------------------------------------------------*/
function f_Agentedumovieview3()
{
	var vUrl ="/pos1/pfrontservlet?cmd=PCOMMovViewCntC3";
	window.open(vUrl,"new","top=0,left=0,width=1008,height=578,toolbar=no,scrollbars=no,resizable=no,status=no,titlebar=yes,menubar=no,location=no");
}

function goMEMLoginWindowOpen(smsgubun)
{
	alert("»èÁ¦´ë»ó PCOMMain.js goMEMLoginWindowOpen()");
	var vUrl = "/pos1/jsp/mem/PMEMPreLoginJ.jsp?smsgubun=" + smsgubun;
	window.open(vUrl,"login","top=200,left=250,width=500,height=296,toolbar=no,scrollbars=auto,resizable=no,status=no,titlebar=yes,menubar=no,location=no");
}

function gologout()
{
	message.location.replace("/pos1/jsp/common/PCOMLogoutJ.jsp");
	return;
}

function goMEMaddmembModify()
{
	alert("»èÁ¦´ë»ó PCOMMain.js goMEMaddmembModify()");
	document.location.replace("/pos1/pfrontservlet?cmd=&menu=menu06&submenu=s0604");
}

function goMEMaddmembEnr()
{
	alert("»èÁ¦´ë»ó PCOMMain.js goMEMaddmembEnr()");
	alert("PMainJ¿¡¼­Ã³¸®ÇÏµµ·Ï º¯°æÇÔ.(¿¹Àü PMainJ¶§¹®¿¡ ÀÓ½Ã·Î ¿­¾îµÒ. ÃßÈÄ¿¡ PCOMMain.js ¼öÁ¤ÇÒ°Í -¹Ý½ÂÇö)");
	document.location.replace("/pos1/pfrontservlet?cmd=Home&menu=menu06&submenu=s0601");
	//document.location.replace("/pos1/pfrontservlet?cmd=PMEMUseEgrmntC&q=A5F4071A0C4E00525989BC5C8CFBA1703E839A413E4392;gqtZPEOhFV1u7k7v4uxXDueTy4YiIfPo52pAf607/Yo%3D;dTG7DW70x3Bgk7B1kUjTn3U9L2U%3D");
	//document.location.replace(XecureURL('/pos1/pfrontservlet?cmd=PMEMUseEgrmntC'));
	//PMEMUseEgrmntC&q=A5F4071A0C4E00525989BC5C8CFBA1703E839A413E4392;gqtZPEOhFV1u7k7v4uxXDueTy4YiIfPo52pAf607/Yo%3D;dTG7DW70x3Bgk7B1kUjTn3U9L2U%3D
}

function goMailModify(){
	document.location.replace("/pos1/pfrontservlet?cmd=Home&menu=menu06&submenu=s0606");
}
function goMailEnr(){
	document.location.replace("/pos1/pfrontservlet?cmd=Home&menu=menu06&submenu=s0605");
}

function PCOMNextControl(target) {
	if(event.keyCode != 13) return false;
	MM_openBrWindowTop3();
}

//****** °Ë»ö ½ÇÇàÇÏ±â ******//
function MM_openBrWindowTop3() {
	var var_textfield = document.frmMain.textfield.value;
	if( var_textfield.length < 2 ){
		alert("°Ë»ö¾î¸¦ 2ÀÚ ÀÌ»ó ÀÔ·ÂÇÏ½Ã±â ¹Ù¶ø´Ï´Ù.");
		document.frmMain.textfield.focus();
		return false;
	} else {
		url = "/pos1/pfrontservlet?cmd=Home&menu=menu06&submenu=s060101&notice_seq="+ var_textfield;
		document.frmMain.action =   url;
		document.frmMain.target =   "_self";
		document.frmMain.submit();
	}
}

function goUserGuidJWindowOpen()
{
	var vUrl ="/pos1/html/mem/PMEMUserGuidH.html";
	window.open(vUrl,"new","top=40,left=130,width=668,height=600,toolbar=no,scrollbars=yes,resizable=yes,status=no,titlebar=yes,menubar=no,location=no");
}

function f_law()
{
	//  var vUrl ="http://glaw.scourt.go.kr/glis/legal_r/top04.jsp";
	var vUrl ="http://www.iros.go.kr/pos1/html/inf/PINFPreceedH.html";
	window.open(vUrl,"new","top=40,left=130,width=800,height=630,toolbar=no,scrollbars=auto,resizable=yes,status=no,titlebar=yes,menubar=no,location=no");
}

function f_openPrivacy()
{
	var vUrl ="/pos1/html/com/PCOMPrivacyH.html";
	window.open(vUrl,"new","top=40,left=130,width=540,height=530,toolbar=no,scrollbars=auto,resizable=yes,status=no,titlebar=yes,menubar=no,location=no");
}

function f_openLink()
{
	var vUrl ="/pos1/html/com/PCOMLinkH.html";
	window.open(vUrl,"new","top=40,left=130,width=540,height=530,toolbar=no,scrollbars=auto,resizable=yes,status=no,titlebar=yes,menubar=no,location=no");
}

function f_openUse()
{
	var vUrl ="/pos1/html/com/PCOMUseEgrmntH.html";
	window.open(vUrl,"new","top=40,left=130,width=540,height=530,toolbar=no,scrollbars=auto,resizable=yes,status=no,titlebar=yes,menubar=no,location=no");
}

function f_openDown()
{
	var vUrl ="/manual.html";
	window.open(vUrl,"new","top=40,left=130,width=650,height=637,toolbar=no,scrollbars=auto,resizable=yes,status=no,titlebar=yes,menubar=no,location=no");
}

function f_openXecure()
{
	var vUrl ="/pos1/html/com/ErrorSolveH.html";
	window.open(vUrl,"new","top=40,left=130,width=650,height=619,toolbar=no,scrollbars=auto,resizable=yes,status=no,titlebar=yes,menubar=no,location=no");
}

//****** ¿­¶÷¹ß±Þ ÇÃ·¡½¬¿¡¼­ È£ÃâµÊ ******//
function f_Linkurl(gb) {
    f = document.frmMain;

    if( gb == 'comm_review' ) {
       vUrl = "/iris/vin/RVINIsuChkNumShortcutJ.jsp";
       f.isu_view.value  = "";
       f.frompotal.value = "";
       iwid = 758;
       ihei = 500;
       //iwid = screen.width-10;
       //ihei = screen.height;
       wndIsuChkNum = window.open( vUrl,"RVINIsuChkNumShortcut","top=0,left=0,width="+iwid+",height="+ihei+",toolbar=no,scrollbars=yes,resizable=no,status=no,titlebar=yes,menubar=no,location=no");
       return;
    }

    if( gb == 'isu' )     {
         f.isu_view.value = "isu"; vMainUrl = "/iris/index.jsp";
    }
    if( gb == 'view' )  {
           f.isu_view.value = "view";  vMainUrl = "/iris/index.jsp";
    }
//    if( gb == 'review' )     {  f.isu_view.value = "review";vMainUrl = "/iris/index.jsp";}

    if( gb == 'corp_isu' )    {
      f.gomenu.value = "menu1";vMainUrl = "/icis/index.jsp";
    }
    if( gb == 'corp_view' )   { f.gomenu.value = "";     vMainUrl = "/icis/index.jsp";}
//    if( gb == 'corp_review' ) { f.gomenu.value = "menu2";vMainUrl = "/icis/index.jsp";}

    if( gb == 'real')  var vMainUrl ="/iris/index.jsp";
    if( gb == 'corp')  var vMainUrl ="/icis/index.jsp";

    var vlinkUrl =  "/PnextJ.jsp?Nurl="+ vMainUrl +"&frompotal=Y&isu_view="+ gb +"&gomenu="+ f.gomenu.value;
    MainRegFormWin = window.open(vlinkUrl,"MainRegForm","top=0,left=0,directories=yes,toolbar=yes,menubar=yes,scrollbars=yes,resizable=yes,status=yes,titlebar=yes,location=yes");
    MainRegFormWin.focus();
}

//****** E-FORM È£Ãâ ******//
function f_openEFORM() {
	alert("PMainJ.jsp¿¡¼­ È£ÃâµÇ¹Ç·Î »èÁ¦¿¹Á¤ÀÓ. PCOMMain.js¿¡ ÀÖÀ½");
	var vlinkUrl =  "/re1/EnextJ.jsp";
	var handle = window.open(vlinkUrl,"re1main","top=0,left=0,directories=yes,toolbar=yes,menubar=yes,scrollbars=yes,resizable=yes,status=yes,titlebar=yes,location=yes");
	handle.focus();
}

//****** UHDÀüÀÚ¹Î¿ø½Ç  ******//
function openUhd() {
	if ( window.name != "rx1main" ){
		var handle = window.open("/uhd/index_faq.html","uhdmain","top=0,left=0,directories=yes,toolbar=yes,menubar=yes,scrollbars=yes,resizable=yes,status=yes,titlebar=yes,location=yes");
		//  handle.opener = null;
		//  opener = self;
		//  self.close();
	}
	var xx = screen.availWidth;
	var yy = screen.availHeight;
	var leftpos = xx / 2 - 1024/2;
	var toppos = yy / 2 - 768/2;
	var sxx = 0;
	var syy = 0;
	if ( xx > 1024 ) {
		sxx = (xx-1024)/2;
		xx = 1024;
	} else {
		syy = 0;
	}
	if ( yy > 768 ) {
		syy = (768)/2; yy = 768;
	} else {
		syy = 0;
	}
	handle.moveTo(leftpos,toppos);
	handle.resizeTo(xx,yy);
}

//****ÀüÀÚ½ÅÃ»*****//
function f_openWindow() {
	alert("PMainJ.jsp¿¡¼­ Á÷Á¢ È£ÃâÇÏ¹Ç·Î »èÁ¦¿¹Á¤ÀÓ PCOMMain.js¿¡ ÀÖÀ½");
	if ( window.name != "re1main" ) {
		var vlinkUrl =  "/re1/InextJ.jsp";
		var handle = window.open(vlinkUrl,"re1main","top=0,left=0,directories=yes,toolbar=yes,menubar=yes,scrollbars=yes,resizable=yes,status=yes,titlebar=yes,location=yes");
		handle.focus();
	}
}

function f_misurequest()
{
	var vUrl ="/pos1/html/co2/CHRTSukiRequest.htm";
//	window.open(vUrl,"new","top=40,left=130,width=740,height=655,toolbar=no,scrollbars=no,resizable=yes,status=no,titlebar=yes,menubar=no,location=no");
	document.location.href = "/pos1/html/co2/CHRTSukiRequest.htm";
}

function f_popup_10()
{
	f = document.frmMain;
	vUrl = "/iris/hom/RHOMViewEvtJ.jsp";
	f.isu_view.value  = "";
	f.frompotal.value = "";
	iwid = 829;
	ihei = 650;
	//iwid = screen.width-10;
	//ihei = screen.height;
	RHOMViewEvtWin = window.open( vUrl,"RHOMViewEvt","top=0,left=0,width="+iwid+",height="+ihei+",toolbar=no,scrollbars=yes,resizable=no,status=no,titlebar=yes,menubar=no,location=no");
}

function f_newpageopen( vUrl )
{
	window.open(vUrl,"new","");
}

function f_changeDivStyleOver(divid) {
	if(document.getElementById(divid).style.display == "none" || document.getElementById(divid).style.display == "" ){
		document.getElementById(divid).style.display = "block";
	}
	document.getElementById(divid).onmouseout = changeStyleOut;
//  document.getElementById(divid).onblur = changeStyleOut;
}

function f_changeDivStyleOut(divid) {
	if(document.getElementById(divid).style.display == "block"){
		document.getElementById(divid).style.display = "none";
	}
	document.getElementById(divid).onmouseover = changeStyleOver;
	//document.getElementById(divid).onfocus = changeStyleOver;
}

function changeStyleOver() {
	if(this.style.display == "none"){
		this.style.display = "block";
	}
}

function changeStyleOut() {
	if(this.style.display == "block"){
		this.style.display = "none";
	}
}

function f_changeClassName( Robj ,RClassNm )
{
	Robj.className=RClassNm  ;
}