
function open_win(URL, w, h, scb)
{
	sx = (screen.width - w)/2;
	sy = (screen.height - h)/2 ;
	sub = window.open(URL, "open_win2" , 'toolbar=no,status=no,menubar=no,copyhistory=yes,scrollbars='+scb+',resizable=no,status=no,width='+w+',height='+h+',top='+sy+',left='+sx);

}

function fclose( )
{
	self.close();
}

///////////// ÁÖ¹Î¹øÈ£ Ã¼Å©ÇÏ´Â ÇÔ¼ö /////////////////////////
function JuminCheck(){
	var frm = document.all;
	if(!CheckJumin2(frm.jumin1,frm.jumin2,frm.jumin1.value,frm.jumin2.value)) return false;
}

function MFocus(){
	var frm = document.all;
	if(frm.jumin1.value.length==6) frm.jumin2.focus();
}

////////// JavaScript·Î ÄíÅ°»ý¼º ÇÔ¼ö name:ÄíÅ°ÀÌ¸§ value:ÄíÅ°°ª expiredays:ÄíÅ°À¯Áö½Ã°£(ÀÏ) //////////
function setCookie(name,value,expiredays){
	if(expiredays){   // ÄíÅ°À¯Áö½Ã°£(ÀÏ)ÀÌ ÀÖÀ¸¸é
		var todayDate = new Date();
		todayDate.setDate(todayDate.getDate() + expiredays);
		document.cookie = name + "=" + escape(value) + "; path=/; expires=" + todayDate.toGMTString() + ";";
		//document.write(todayDate.toGMTString());
	}else{            // ÄíÅ°À¯Áö½Ã°£(ÀÏ)ÀÌ ¾øÀ¸¸é À¯Áö½Ã°£ ¼³Á¤ÇÏÁö ¾ÊÀ½ (ÇöÀçºê¶ó¿ìÀú ³»¿¡¼­¸¸ À¯Áö)
		document.cookie = name + "=" + escape(value) + "; path=/;";
	}
}

////////// JavaScript·Î ÄíÅ°°ª ºÒ·¯¿À´Â ÇÔ¼ö name:ÄíÅ°ÀÌ¸§ //////////
function getCookie(name){
	var Found = false;
	var start, end, i;
	for(i=0; i<=document.cookie.length; i++){
		start = i;
		end = start + name.length;
		if(document.cookie.substring(start,end)==name){
			Found = true;
			break;
		}
	}
	if(Found==true){
		start = end + 1;
		end = document.cookie.indexOf(";",start);
		if(end<start) end = document.cookie.length;   // ¸¶Áö¸·¿¡´Â ";"°¡ ¾øÀ¸¹Ç·Î
		return unescape(document.cookie.substring(start,end));   // JavaScript°¡ ÀÐÀ»¶§´Â unescape°¡ ÇÊ¿ä, PHP³ª ASP°¡ ÀÐÀ»¶§´Â ±×³É ÀÐÀ¸¸é µÊ
	}else{
		return "";
	}
}

////////// login submitÀÌÀüÀÇ ÇÔ¼ö //////////
function beforelogin(frm){
	if(!frm.id.value){ alert('ID(¾ÆÀÌµð)¸¦ ÀÔ·ÂÇÏ¼¼¿ä!');    frm.id.focus(); return false;}
	if(!frm.pw.value){ alert('P/W(ºñ¹Ð¹øÈ£)¸¦ ÀÔ·ÂÇÏ¼¼¿ä!'); frm.pw.focus(); return false;}
	if(frm.idmemchk.checked) {
		setCookie('mem_id',document.frm.id.value);
	}
	//document.cookie = 'previous_url=' + escape('$REQUEST_URI') + '; path=/';   // ÀÌÀü ÁÖ¼Ò¸¦ ÄíÅ°·Î ±â¾ï
}

////////// ·Î±×ÀÎ ¹öÆ°À» ´©¸¦ °æ¿ìÀÇ ÇÔ¼ö //////////
function login_onclick(){
	setCookie('previous_url',location.href);
	location = '/webmanager/weblogin.html';
}

////////// POPUPÃ¢À» ¶ç¿ì´Â ÇÔ¼ö //////////
function MM_openBrWindow(theURL,winName,features){
	window.open(theURL,winName,features);
}

////////// ·Î±×ÀÎ submitÀÌÀüÀÇ ÇÔ¼ö //////////
function BeforeSubmit_login(frm){
	//alert('·Î±×ÀÎ submitÀÌÀüÀÇ ÇÔ¼ö');
	if(frm.id){   // ¾ÆÀÌµðÀÔ·Â¶õÀÌ ÀÖÀ¸¸é ¾ÆÀÌµð Ã¼Å©
		str = frm.id.value;
		if(isNull(str)){                 alert('¾ÆÀÌµð¸¦ ÀÔ·ÂÇÏ¼¼¿ä !!');                    frm.id.focus(); return false;}
		if(!isAlphaNum(str,'AlphaNum')){ alert('¾ÆÀÌµð¸¦ ¿µ¹®ÀÚ³ª ¼ýÀÚ¸¸ ÀÔ·ÂÇÏ¼¼¿ä !!');    frm.id.focus(); return false;}
		if(!isLengthOk(str,4,20)){       alert('¾ÆÀÌµð¸¦ 4ÀÚÀÌ»ó 20ÀÚÀÌÇÏ·Î ÀÔ·ÂÇÏ¼¼¿ä !!'); frm.id.focus(); return false;}
	}
	if(frm.pw){   // ºñ¹Ð¹øÈ£ÀÔ·Â¶õÀÌ ÀÖÀ¸¸é ºñ¹Ð¹øÈ£ Ã¼Å©
		str = frm.pw.value;
		if(isNull(str)){                  alert('ºñ¹Ð¹øÈ£¸¦ ÀÔ·ÂÇÏ¼¼¿ä !!');                     frm.pw.focus(); return false;}
		if(!isLengthOk(str,4,20)){        alert('ºñ¹Ð¹øÈ£¸¦ 4ÀÚÀÌ»ó 20ÀÚÀÌÇÏ·Î ÀÔ·ÂÇÏ¼¼¿ä !!');  frm.pw.focus(); return false;}
	}
	//setCookie('previous_url',location.href);   // ÀÌÀü ÁÖ¼Ò¸¦ ÄíÅ°·Î ±â¾ï, ASP¿¡¼­ ÄíÅ°¸¦ ÀÌ¹Ì ¸¸µç °æ¿ì º¯°æ¾ÈµÊ
	return true;
}

////////// Null Ã¼Å© ÇÔ¼ö //////////
function isNull(str){
	if(str!=null && str.length!=0) return false;
	else                           return true;
}

////////// Alphabet, Number, AlphaNum, PhoneNum Ã¼Å© ÇÔ¼ö //////////
function isAlphaNum(str,div){
					  //checkOK = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789`~!@#$^*()_\+-=||{}[]:;<>?/\\";
	if(div=="Alphabet") checkOK = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz";
	if(div=="Number")   checkOK = "0123456789";
	if(div=="AlphaNum") checkOK = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789";
	if(div=="PhoneNum") checkOK = "0123456789-";
	for(i=0; i<str.length; i++){
		ch = str.charAt(i);
		for(j=0; j<checkOK.length; j++){
			if(ch==checkOK.charAt(j)) break;
		}
		if(j==checkOK.length){
			return false;
			break;
		}
	}
	return true;
}

////////// Æ¯Á¤¹®ÀÚ Á¸Àç Ã¼Å© ÇÔ¼ö //////////
function isExistChr(str,div){
						//checkOK = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789`~!@#$^*()_\+-=||{}[]:;<>?/\\";
	if(div=="FolderName") checkOK = "`~!@#$^*()_\+-=||{}[]:;<>?/\\\"";
	for(i=0; i<str.length; i++){
		ch = str.charAt(i);
		for(j=0; j<checkOK.length; j++){
			if(ch==checkOK.charAt(j)){
				return true;
				break;
			}
		}
	}
	return false;
}

////////// ¹®ÀÚ±æÀÌ Ã¼Å© ÇÔ¼ö //////////
function isLengthOk(str,min,max){
	if(str.length<min || str.length>max) return false;
	else                                 return true;
}

////////// ÁÂ¿ì °ø¹éÁ¦°ÅÇÔ¼ö //////////
function trim(strSource){
	re = /^\s+|\s+$/g;
	return strSource.replace(re,'');
}
////////// ÁÂ °ø¹éÁ¦°ÅÇÔ¼ö //////////
function ltrim(strSource){
	re = /^\s+/g;
	return strSource.replace(re,'');
}
////////// ¿ì °ø¹éÁ¦°ÅÇÔ¼ö //////////
function rtrim(strSource){
	re = /\s+$/g;
	return strSource.replace(re,'');
}

////////// ÁÖ¹Îµî·Ï¹øÈ£ À¯È¿ Ã¼Å© ÇÔ¼ö //////////
function CheckJumin(obj_jumin1,obj_jumin2,val_jumin1,val_jumin2){
	if(!val_jumin1){ alert('ÁÖ¹Îµî·Ï¹øÈ£¸¦ ÀÔ·ÂÇÏ¼¼¿ä !!'); obj_jumin1.focus(); return false;}
	if(!val_jumin2){ alert('ÁÖ¹Îµî·Ï¹øÈ£¸¦ ÀÔ·ÂÇÏ¼¼¿ä !!'); obj_jumin2.focus(); return false;}
	ju = [0,0,0,0,0,0,0,0,0,0,0,0,0];   // ÁÖ¹Î¹øÈ£ Ã¼Å© ¹è¿­¼±¾ð
	for(i=0; i<6; i++) ju[i] = val_jumin1.substring(i,i+1);
	for(i=0; i<7; i++) ju[i+6] = val_jumin2.substring(i,i+1);
	for(sum=0,i=0; i<=11; i++) sum+= ju[i] * ((i>7)?(i-6):(i+2));
	mod = 11 - (sum % 11);
	if(mod>=10) mod-= 10;
	if(mod!=ju[12]){
		alert('ÁÖ¹Îµî·Ï¹øÈ£ ¿À·ùÀÔ´Ï´Ù !!\n\nÁÖ¹Îµî·Ï¹øÈ£ È®ÀÎ ÈÄ ´Ù½Ã ÀÔ·ÂÇØÁÖ¼¼¿ä.');
		obj_jumin1.select();
		obj_jumin2.value = '';
		return false;
	}

	//alert('Á¤È®ÇÑ ÁÖ¹Î¹øÈ£ ÀÔ´Ï´Ù.!!')
	return true;
}

////////// ÁÖ¹Îµî·Ï¹øÈ£ À¯È¿ Ã¼Å© ÇÔ¼ö //////////
function CheckJumin2(obj_jumin1,obj_jumin2,val_jumin1,val_jumin2){
	if(!val_jumin1){ alert('ÁÖ¹Îµî·Ï¹øÈ£¸¦ ÀÔ·ÂÇÏ¼¼¿ä !!'); obj_jumin1.focus(); return false;}
	if(!val_jumin2){ alert('ÁÖ¹Îµî·Ï¹øÈ£¸¦ ÀÔ·ÂÇÏ¼¼¿ä !!'); obj_jumin2.focus(); return false;}
	ju = [0,0,0,0,0,0,0,0,0,0,0,0,0];   // ÁÖ¹Î¹øÈ£ Ã¼Å© ¹è¿­¼±¾ð
	for(i=0; i<6; i++) ju[i] = val_jumin1.substring(i,i+1);
	for(i=0; i<7; i++) ju[i+6] = val_jumin2.substring(i,i+1);
	for(sum=0,i=0; i<=11; i++) sum+= ju[i] * ((i>7)?(i-6):(i+2));
	mod = 11 - (sum % 11);
	if(mod>=10) mod-= 10;
	if(mod==ju[12]){
		alert('Á¤È®ÇÑ ÁÖ¹Î¹øÈ£ ÀÔ´Ï´Ù.!!')
		return true;
	}
	alert('ÁÖ¹Îµî·Ï¹øÈ£ ¿À·ùÀÔ´Ï´Ù !!\n\nÁÖ¹Îµî·Ï¹øÈ£ È®ÀÎ ÈÄ ´Ù½Ã ÀÔ·ÂÇØÁÖ¼¼¿ä.');
	obj_jumin1.select();
	obj_jumin2.value = '';
	return false;

}

////////// FromFormControlÀÔ·Â¶õ¿¡ ±ÛÀÚ¼ö°¡ StringLength°³ÀÌ¸é ToFormControl·Î Æ÷Ä¿½º ÀÌµ¿ÇÔ¼ö //////////
////////// onkeyup='MoveFocus(6,this,this.form.jumin2)' //////////
function MoveFocus(StringLength,FromFormControl,ToFormControl){
	if(FromFormControl.value.length==StringLength) ToFormControl.focus();
}


////////// ÆË¾÷Ã¢ Ã³¸® //////////
function popup(theURL,winName,features){
	window.open(theURL,winName,features);
}

////////// ÆäÀÌÁö ²¿¸´¸» Ã¼Å© //////////
function checktail(form){
	if (!trim(form.irum.value))   { alert("¼º¸íÀ» ÀÔ·ÂÇØÁÖ¼¼¿ä..");      form.irum.focus();   return false;}
	if (!trim(form.body.value))   { alert("³»¿ëÀ» ÀÔ·ÂÇØ ÁÖ¼¼¿ä..");     form.body.focus();   return false;}
	if (!trim(form.pwtail.value)) { alert("ºñ¹Ð¹øÈ£¸¦ ÀÔ·ÂÇØ ÁÖ¼¼¿ä.."); form.pwtail.focus(); return false;}

	return true
}

////////// ²¿¸®¸» »èÁ¦ submitÀÌÀüÀÇ ÇÔ¼ö //////////
function BeforeSubmit_pagetail_del(frm,delno){
	frm.tail_no.value = delno;
	// ·Î±×ÀÎ ¹æ½ÄÀÌ ¾Æ´Ï¸é ºñ¹Ð¹øÈ£ ¹°¾îº¸±â

		PopWidth = 300 + 6;   // Å×ÀÌºí³ÐÀÌ + Ã¢Å×µÎ¸®
		PopHeight = 120;
		MoArr = window.showModalDialog('/common/pagetail_pw.html', '', 'dialogWidth='+PopWidth+'px; dialogHeight='+PopHeight+'px; center:yes; help:no; status:no; resizable:no;');
		if(MoArr!=null){
			frm.tail_passwd.value = MoArr['tail_passwd'];
			frm.submit();
		}else{
			return false;
		}
		// ºñ¹Ð¹øÈ£ ÀÔ·Â ÀçÈ®ÀÎ
		if(!frm.tail_passwd.value){ alert('ºñ¹Ð¹øÈ£¸¦ ÀÔ·ÂÇÏ¼¼¿ä !!'); return false;}

	frm.submit();
}

////////// ¿ìÆí¹øÈ£ ¹× ÁÖ¼Ò ÀÚµ¿ÀÔ·Â popupÃ¢ ÇÔ¼ö //////////
function zipauto(frm,zip1,zip2,addr1,addr2){
	PopWidth = 470;
	PopHeight = 350;
	PopLeft = (screen.width-PopWidth)/2;
	PopTop = (screen.height-PopHeight)/2;
	Pop_zip = open('/common/zipauto.html?frm='+frm+'&zip1='+zip1+'&zip2='+zip2+'&addr1='+addr1+'&addr2='+addr2, 'Pop_zip', 'width='+PopWidth+',height='+PopHeight+',scrollbars=no,status=no,left='+PopLeft+',top='+PopTop);
	Pop_zip.focus();
}


//
//  Filtering MouseRollover. js
//
//  Copyright reserved by All-M Developer Labs.
function BrowserCheck() {
	var b = navigator.appName
	if (b=="Netscape") this.b = "ns"
	else if (b=="Microsoft Internet Explorer") this.b = "ie"
	else this.b = b
	this.version = navigator.appVersion
	this.v = parseInt(this.version)
	this.ns = (this.b=="ns" && this.v>=4)
	this.ns4 = (this.b=="ns" && this.v==4)
	this.ns5 = (this.b=="ns" && this.v==5)
	this.ie = (this.b=="ie" && this.v>=4)
	this.ie4 = (this.version.indexOf('MSIE 4')>0)
	this.ie5 = (this.version.indexOf('MSIE 5')>0)
	this.min = (this.ns||this.ie)
}
is = new BrowserCheck()

function chng(ImgName,ImgSrc){

	if ((screen.colorDepth >= 24) && (is.ie4)){
		eval('document.images.'+ImgName+'.src = '+ImgSrc+'.src;');
	}else{
		eval(ImgName + '.filters.blendTrans.stop();');
		eval(ImgName + '.filters.blendTrans.Apply();');
		eval(ImgName + '.src=' + ImgSrc + '.src;');
		eval(ImgName + '.filters.blendTrans.Play();');
	}
}

function chng2(ImgName,ImgSrc){
	eval('document.images.'+ImgName+'.src = '+ImgSrc+'.src;');
}

////////// ¹æ¹®ÀÚÄ«¿îÆ® Ã³¸® //////////
if(!getCookie("C_visit")){
	document.write("<iframe name=WebLog scrolling=no width=0 height=0 frameborder=0 style='position:absolute; left:0; top:0; visibility:hidden;' src='http://www.netimo.net/common/count_visit.html'></iframe>");
	setCookie("C_visit",true);
}

///////// S_Public ÄíÅ° »ý¼º //////////////////
function S_Public(key, val){
	url = "http://www.netimo.net/common/S_Public.html?key="+key+"&value="+val;
	document.write("<iframe name=S_Public scrolling=no width=0 height=0 frameborder=0 style='position:absolute; left:0; top:0; visibility:hidden;' src='"+url+"'></iframe>");
}

////////// WebManual ³»¿ëº¸±â POPUPÃ¢ ÇÔ¼ö //////////
function WebManual_pop()
{
	PopWidth = 800;
	PopHeight = 640;
	PopLeft = (window.screen.width-(PopWidth+10)) / 2;         // Å×µÎ¸®(10)
	PopTop = (window.screen.height-(PopHeight+60)) / 2 - 20;   // toolbar(60)
	Pop_WebManual = window.open('http://www.netimo.net/WebManual_03/', 'Pop_WebManual', 'left='+PopLeft+',top='+PopTop+',width='+PopWidth+',height='+PopHeight+',menubar=no,toolbar=yes,scrollbars=no,status=no,resizable=yes');
	try{Pop_WebManual.focus()}catch(e){}
}


// ÆË¾÷ ·Î±×ÀÎ Ã¢
function openLogin(HostURL){
	var newWin = window.open('http://www.baroga.net/Login.html?HostURL=' + HostURL,'MyanywareLogIn','Top=100,Left=100,Width=400,Height=350,toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=0,resizable=0');
	newWin.focus();
}

// ¾Æµðµð/ÆÐ½º¿öµå È®ÀÎÃ¢ Ã¢
function openFindID(HostURL){
	var newWin = window.open('http://www.baroga.net/Login_Find_ID.html?HostURL=' + HostURL,'BarogaFindID','Top=100,Left=100,Width=400,Height=350,toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=0,resizable=0');
	newWin.focus();
}

// ÆË¾÷ È¸¿ø°¡ÀÔ Ã¢
function openRegMember(HostURL){
	var newWin = window.open('http://www.baroga.net/member/member_m.html?HostURL=' + HostURL,'MyanywareMemReg','Top=100,Left=100,Width=688,Height=600,toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=1,resizable=0');
	newWin.focus();
}

// È¸¿ø¼öÁ¤ Ã¢
function openInfoMember(HostURL){
//	location.href = 'http://www.baroga.net/MyPage3/index.html?HostURL=' + HostURL + '&name=m_09';
	var newWin = window.open('http://www.baroga.net/MyPage3/index.html?HostURL=' + HostURL + '&name=m_09','MyanywareMemInfo','');
//	var newWin = window.open('http://www.baroga.net/member/membership.html?sel=mod&HostURL=' + HostURL,'MyanywareMemInfo','Top=100,Left=100,Width=688,Height=600,toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=1,resizable=0');
	newWin.focus();
}

// ÆË¾÷ ·Î±×¾Æ¿ô Ã¢
function openLogout(HostURL){
	//location.href = "http://www.baroga.net/Before_Logoff.html?Mode=Logout&PreURL=http://www.netimo.net";
	location.href = "http://www.netimo.net/Netimo_Logoff.html?PreURL=http://www.netimo.net";
//	var newWin = window.open('http://www.baroga.net/Logout.html?HostURL=' + HostURL,'MyanywareLogOut','Top=100,Left=100,Width=100,Height=100,toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=0,resizable=0');
//	newWin.focus();
}

// ÆË¾÷ MyPage Ã¢
function openMyPage(HostURL){
//	var newWin = window.open('http://www.baroga.net/MyPage/index.html?HostURL=' + HostURL,'MyPage','Top=100,Left=100,Width=600,Height=600,toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=0,resizable=0');
	var newWin = window.open('http://www.baroga.net/MyPage3/index.html?HostURL=' + HostURL + '&name=m_09','MyanywareMemInfo','');
	//location.href = 'http://www.baroga.net/MyPage3/index.html?HostURL=' + HostURL + '&name=m_08';
}

//ÆË¾÷ MyPage > SMS Ã¢
function openSMS(HostURL){
//	location.href = 'http://www.baroga.net/MyPage3/index.html?HostURL=' + HostURL + '&name=m_06';
		location.href = 'http://my.netimo.net/modules/public202/';
		//	var newWin = window.open('http://www.baroga.net/MyPage/SMS_Send.html','MyPage','Top=100,Left=100,Width=600,Height=600,toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=0,resizable=0');
//	newWin.focus();
}


//ÆË¾÷ °øÁö»çÇ× Ã¢
function openNotice(){
	var newWin = window.open('/Pupup/index.html','Notice','Top=100,Left=100,Width=300,Height=380,toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=0,resizable=0');
	newWin.focus();
}

//ºÒ·® °Ô½Ã¹° °æ°í
function warning(table, div, no){
	var newWin = window.open('http://www.netimo.net/board/warning.html?table='+table+'&div='+div+'&no='+no,'warning','Top=100,Left=100,Width=420,Height=200,toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=1,resizable=0');
	newWin.focus();
}

//ºÒ·® °Ô½Ã¹° °æ°í ÃÊ±âÈ­
function warning_reset(id){
	var newWin = window.open('/board/warning_act.html?id='+id,'warning_reset','Top=100,Left=100,Width=400,Height=200,toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=0,resizable=0');
}

/**********************************
**  ¼³¹®Á¶»ç Å¬¸¯½Ã          *
***********************************/
function check(form,islogin)
{
	if(islogin=="")
	{
		location.href= "http://www.netimo.net/login/index_login.html";
		return;
	}
	var j;
	for(var i = 0 ; i < form.recommend.length; i++ ){
		if(form.recommend[i].checked == true){
			form.submit();
			j=1;
		}
	}
	if(j!=1) alert("¼±ÅÃÇÏ½Å Ç×¸ñÀÌ ¾øÀ¾´Ï´Ù!!");
}

function ListViewDELETE(Div){
	GoPoll(Div);
//	location.href="/home/onlinepoll/history.html?Div="+Div;
}


var TopMenuId = '';//ÀÌ¹ÌÁö ¹Ù²ÙÁö ¾ÊÀ» id¸í


/// ¸¶¿ì½º ¿À¹ö,¾Æ¿ô½Ã ÀÌ¹ÌÁö ¹Ù²Ù±â ///
function EventMouseOverOut(obj,isOver){
	ImgName = obj.id
	if(isOver=="Y") obj.src = "http://www.netimo.net/image/" + ImgName + "_r.gif";
	else            obj.src = "http://www.netimo.net/image/" + ImgName + ".gif";
}


/// ¸¶¿ì½º ¿À¹ö,¾Æ¿ô½Ã ÀÌ¹ÌÁö ¹Ù²Ù±â2 ///
function EventMouseOverOut2(obj,isOver){
	ImgName = obj.id
	if(isOver=="Y") obj.src = "http://anyware.netimo.net/image/" + ImgName + "_r.gif";
	else            obj.src = "http://anyware.netimo.net/image/" + ImgName + ".gif";
}

/// ÆÐ¹Ð¸® »çÀÌÆ® »õÃ¢ ¶ç¿ì±â ///
function GoFamilySite(url){
	//alert(url);
	if(url!='') window.open(url,"","");
}

///// ¿ìÃø ¿òÁ÷ÀÌ´Ï ¹è³Ê ½ºÅ©¸³Æ® /////
var isDOM = (document.getElementById ? true : false);
var isIE4 = ((document.all && !isDOM) ? true : false);
var isNS4 = (document.layers ? true : false);

function getRef(id) {
	if (isDOM) return document.getElementById(id);
	if (isIE4) return document.all[id];
	if (isNS4) return document.layers[id];
}

var isNS = navigator.appName == "Netscape";

function moveRightEdge() {

	var yMenuFrom, yMenuTo, yOffset, timeoutNextCheck;

	if (isNS4) {
		yMenuFrom   = divMenu.top;
		yMenuTo     = windows.pageYOffset + 58;

	} else if (isDOM) {
		yMenuFrom   = parseInt (divMenu.style.top, 10);
		yMenuTo     = (isNS ? window.pageYOffset : document.body.scrollTop) + 58;
	}

	timeoutNextCheck = 500;


	if (yMenuFrom != yMenuTo) {
		yOffset = Math.ceil(Math.abs(yMenuTo - yMenuFrom) / 20);
		if (yMenuTo < yMenuFrom)
			yOffset = -yOffset;
		if (isNS4)
			divMenu.top += yOffset;
		else if (isDOM)
			divMenu.style.top = parseInt (divMenu.style.top, 10) + yOffset;
			timeoutNextCheck = 10;
	}

	setTimeout ("moveRightEdge()", timeoutNextCheck);
}

//// ¼­ºñ½º ÁØºñÁßÀÔ´Ï´Ù. ////
function not_service(){ alert("°ð ¼­ºñ½º ÇÏ°Ú½À´Ï´Ù.");  }

function GoLink(u)
{
	var main_url = "http://www.netimo.net/index.php";
	var win = '';//»õÃ¢¿­±â
	var myurl = location.href;//Çö ÆäÀÌÁö ÁÖ¼Ò
	var set = '';
	var url = '';

	if(u =="home")             	url = main_url+"/index.php";
	if(u =="changup")          	url = main_url+"/changup/index.html";
	if(u =="changup_02")   	   	url = main_url+"/data/index.html?mode=franchise";
	if(u =="changup_03") 	   	url = main_url+"/data/index.html?mode=ready";
	if(u =="changup_04") 	   	url = main_url+"/data/index.html?mode=process";
	if(u =="changup_04_01") 	url = main_url+"/data/index.html?mode=process&step=1&part=2#pia";
	if(u =="changup_04_02") 	url = main_url+"/data/index.html?mode=process&step=1&part=2#pib";
	if(u =="changup_04_03") 	url = main_url+"/data/index.html?mode=process&step=1&part=2#pic";
	if(u =="changup_04_04") 	url = main_url+"/data/index.html?mode=process&step=1&part=2#pid";
	if(u =="changup_04_05") 	url = main_url+"/data/index.html?mode=process&step=1&part=2#pie";
	if(u =="changup_04_06") 	url = main_url+"/data/index.html?mode=process&step=1&part=2#pif";
	if(u =="changup_04_07") 	url = main_url+"/data/index.html?mode=process&step=1&part=2#pig";
	if(u =="changup_04_08") 	url = main_url+"/data/index.html?mode=process&step=1&part=2#pih";
	if(u =="changup_04_09") 	url = main_url+"/data/index.html?mode=process&step=1&part=2#pii";
	if(u =="changup_04_10") 	url = main_url+"/data/index.html?mode=process&step=1&part=2#pij";
	if(u =="changup_04_11") 	url = main_url+"/data/index.html?mode=process&step=1&part=2#pik";
	if(u =="changup_05") 		url = main_url+"/data/index.html?mode=management";
	if(u =="franchise") 		url = main_url+"/data/index.html?mode=franchise";
	if(u =="franmanager") 		url = main_url+"/Franchise/admin/main.html";
	if(u =="auction")          	url = "http://www.netimo.net/auction/ntmAuction.html?act=acList";

	//if(u =="pcowner") 		url = main_url+"/changup/index.html?mode=pc_owner";
	if(u =="pcowner") 			url = main_url+"/board/tail.html?boardid=tail&no=376";
	//if(u =="gbook")     		url = main_url+"/operation/index.html?mode=gbook";
	//if(u =="gbook")     		url = main_url+"/board/tail.html?boardid=tail2&no=377";
	if(u =="gbook")     		url = main_url+"/board/tail.html?boardid=tail2";
	if(u =="networkline")     	url = main_url+"/networkline/index.html";

	if(u =="operation") 		url = main_url+"/operation/index.html";
	if(u =="poll")	 			url = main_url+"/operation/index.html?mode=poll";

	//if(u =="job") 		url = main_url+"/board/list.html?table=commu_pcbang&div=job";
	//if(u =="market") 		url = main_url+"/market/index.html";

	if(u =="job") 		url = "http://job.netimo.net";
	if(u =="market") 	url = "http://mart.netimo.net";
	if(u =="pnn") 	url = "http://pnn.netimo.net";

	if(u =="data") 		url = main_url+"/data/index.html";
	if(u =="data_02") 	url = main_url+"/data/index.html?mode=asnumber";
	if(u =="data_03") 	url = main_url+"/data/index.html?mode=gameqna";
	if(u =="data_04") 	url = main_url+"/data/index.html?mode=connection_site";

	if(u =="news") 		url = main_url+"/news/index.html";
	if(u =="cafe") 		url = "http://cafe.netimo.net";
	if(u =="sitemap") 	url = main_url+"/sitemap/index.html";

	if(u =="notice") 		url = main_url+"/board/list.html?table=commu_board&div=notice";
	if(u =="agreement") 	url = main_url+"/notice/index.html?mode=agreement";
	if(u =="agreement2") 	url = main_url+"/notice/index.html?mode=agreement2";
	if(u =="privacy") 	url = main_url+"/notice/index.html?mode=privacy";
	if(u =="privacy17") 	url = main_url+"/notice/index.html?mode=privacy17";
	if(u =="agreement17") 	url = main_url+"/notice/index.html?mode=agreement17";
	if(u =="boranet") 	url = main_url+"/notice/index.html?mode=boranet";
	if(u =="level") 	url = main_url+"/notice/index.html?mode=level";

	if(u =="gamereport") {
		url = "http://gamereport.netimo.net";
	}

	if(u =="mypage") {
		//url = "http://www.baroga.net/MyPage3/index.html?HostURL=netimo&name=m_09";
		url = "http://my.netimo.net/";
		//win = "new";
	}

	if(u =="mypage2") { //PC¹æ¾÷ÁÖ
		//url = "http://www.netimo.net/webmanager/manager_my.html?C_HostURL=www.netimo.net";
		url = "http://www.netimo.net/webmanager/manager_my.html";
		//win = "new";
	}

	if(u == "cafe_helper") {//Ä«Æä ¼³¸í¼­
		url = "http://cafe.netimo.net/cafe_helper/cafe_help_membercafe.html";
		win = "new";
		set = "width=645, height=800, menubar=no, statusbar=no, scrollbars=yes";
	}

	if(u == "cafe_right_banner") { //Ä«Æä ¿À¸¥ÂÊ ¹è³Ê
		//url = "http://infinity.windyzone.com/match/pcbang/index.php";
		//win = "new";
		//set = "width=950, height=720, menubar=no, statusbar=no, scrollbars=no";
	}

	if(u == "nospam") {//ÀÌ¸ÞÀÏ ¹«´Ü ¼öÁý °ÅºÎ
		url = "/_template/notice/main_nospam.html";
		win = "new";
		set = "width=520, height=213, menubar=no, statusbar=no, scrollbars=no";
	}

	if(u =="shopping") {
		url = "http://shop.netimo.net";
		//win = "new";
	}

	if(u == "pcmanager") {//PC°ü¸® °¡ÀÌµå ºÏ
		url = "http://www.netimo.net/event/pcmanager.html";
		win = "new";
		set = "width=940, height=600, menubar=no";
	}

	if(u =="anyware")     url = "http://anyware.netimo.net/";

//	if(u =="login")   url = "http://www.netimo.net/login/index.html?" + myurl;

	if(u =="login")   url = "http://www.netimo.net/login/index_login.html";

	if(win == "new"){
		var newWin = window.open(url,'netimo',set);
		newWin.focus();
		return;
	} else {
		location.href=url;
	}
}

function GoBoard(table,div,section)
{

	var table;
	var div;
	var section;

	//url = "http://www.netimo.net/board/list.html?table="+table+"&div="+div+"&section="+section;

	if(div == '')//div°¡ ¾øÀ¸¸é boardid·Î ÀÎ½Ä
		url = "http://www.netimo.net/board/list.html?boardid="+table;
	else
		//url = "http://www.netimo.net/board/init_cookie.html?table="+table+"&div="+div+"&section="+section;
		url = "http://www.netimo.net/board/list.html?table="+table+"&div="+div+"&section="+section;

	//document.go_board.location.href(url);
	//document.go_board.location.href=url;
	parent.location.href=url;
}


function GoPoll_DELETE(div)
{

	var div;

	//url = "http://www.netimo.net/board/list.html?table="+table+"&div="+div+"&section="+section;

	//url = "http://www.netimo.net/home/onlinepoll/history.html?Div="+div+"&poll=1";
	url = "http://www.netimo.net/poll/history.html?Div="+div+"&poll=1";

	//location.href(url);
	location.href=url;
}

//Ä«Æä ¹Ù·Î°¡±â
function cafe_go(dir_code)
{
			var win_url = 'http://cafe.netimo.net/' + dir_code  + '/';
			location.href=win_url;
			return;
}


function GoMakeCafeNotice()
{
			window.open("http://www.netimo.net/popup/user_check.php","usercheck","width=640,height=660,top=10,left=10,toolbar=no,scrollbars=yes,resizable=no");
}

function SSLCheckLoginForm(f)
{
	if(f.id.value=="")
	{
		alert("¾ÆÀÌµð´Â ÇÊ¼öÇ×¸ñÀÔ´Ï´Ù.");
		f.id.focus();
		return false;
	}
	if(f.pw.value=="")
	{
		alert("ºñ¹Ð¹øÈ£´Â ÇÊ¼öÇ×¸ñÀÔ´Ï´Ù.");
		f.pw.focus();
		return false;
	}
	if(f.ssl.checked==true)
	{
		f.action = "https://www.netimo.net/_ssl/login/proc_login.php";
	}
	else
	{
		f.action = "http://www.netimo.net/_ssl/login/proc_login.php";
	}
	return true;
}

//»õ·Î¿î È¸¿ø°¡ÀÔÆäÀÌÁö
function GlobalMemberRegist(r)
{
	//r = refference
	location.href("http://my.netimo.net/regist/?PreURL="+r);
}

function GlobalMemberRegist2(r)
{
	//r = refference
	self.close();
	opener.location.href("http://my.netimo.net/regist/?PreURL="+r);
}

// »õ·Î¿î ¾Æµðµð/ÆÐ½º¿öµå È®ÀÎÃ¢ Ã¢
function GlobalMemberFindID()
{
	url 	= "http://www.netimo.net/login/find_user_idpw.html";
	var newWin = window.open(url,'GlobalFindID','Top=100,Left=100,Width=400,Height=350,toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=0,resizable=0');
	newWin.focus();
}
//»õ·Î¿î È¸¿ø°¡ÀÔÆäÀÌÁö

function GlobalLogOut()
{
	location.href = "http://www.netimo.net/_ssl/login/proc_logout.php";
}

//¸®ÅÏUrlÀÌ ÀÖ´Â °Í
function _GlobalLogOut(r)
{
	location.href = "http://www.netimo.net/_ssl/login/proc_logout.php?ReturnURL="+r;
}

//Mypage
function GlobalMyPage()
{
	url= "http://my.netimo.net/";
	var set = '';
	var newWin = window.open(url,'netimo',set);
	newWin.focus();
}

function GlobalMemberModify(r)
{
	//r = refference
	location.href("http://my.netimo.net/regist/?name=m_03&PreURL="+r);
}

function GlobalSMS()
{
	url= "http://my.netimo.net/modules/public202/";
	var set = '';
	var newWin = window.open(url,'netimo',set);
	newWin.focus();

}