<!--

function RefGoL2(moveUrl,winName,option,sw){
	var MaxScreenWidth = screen.availWidth;
	if(MaxScreenWidth >801) MaxScreenWidth = 1024;
	else MaxScreenWidth = 800;
	var MaxScreenHeight = screen.availHeight;
	if(MaxScreenHeight >601) MaxScreenHeight = 768;
	else MaxScreenHeight = 600;

	var Ref_W = 100;
	var Ref_H = 400;
	var Ref_X = MaxScreenWidth - Ref_W - 50;
	var Ref_Y = 5;
	var WinOption = "";
	switch(sw){
		case 1:
			// Ç®x Àý¹Ýy Å©±â·Î Áß¾Ó»ó´Ü 
			Ref_W = MaxScreenWidth - 50;
			Ref_H = MaxScreenHeight / 2;
			Ref_X = (MaxScreenWidth - Ref_W)/2;
			Ref_Y = (MaxScreenHeight - Ref_H)/2;
			WinOption = "width="+Ref_W.toString()+",height="+Ref_H.toString()+",left="+Ref_X.toString()+",top="+Ref_Y.toString()+",status=yes,menubar=yes,toobar=yes,scrollbars=auto,location=yes,resizable=yes,copyhistory=no";
			break;
		case 2:
			// ÀÛÀºÇ®x ÀÛÀºy Å©±â·Î È­¸é¿ìÃø ¼ÕÀ¸·Î Å¬¸¯ 
			Ref_W = MaxScreenWidth - 200;
			Ref_H = (MaxScreenHeight / 2) - 200;
			Ref_X = MaxScreenWidth - Ref_W - 40;
			Ref_Y = 5;
			WinOption = "width="+Ref_W.toString()+",height="+Ref_H.toString()+",left="+Ref_X.toString()+",top="+Ref_Y.toString()+",status=yes,menubar=yes,toolbar=yes,scrollbars=3,location=yes,resizable=yes,copyhistory=no";
			break;
		case 21:
			// ÀÛÀºÇ®x ÀÛÀºy Å©±â·Î È­¸é¿ìÃø ¼ÕÀ¸·ÎÅ¬¸¯ »ó´Ü¸Þ´º¾øÀÌ - ÀÓ½ÃÀÔ·Â±â 
			Ref_W = MaxScreenWidth - 200;
			Ref_H = (MaxScreenHeight / 2) - 20;
			Ref_X = MaxScreenWidth - Ref_W - 40;
			Ref_Y = 2;
			WinOption = "width="+Ref_W.toString()+",height="+Ref_H.toString()+",left="+Ref_X.toString()+",top="+Ref_Y.toString()+",status=yes,menubar=0,toolbar=0,scrollbars=3,location=0,resizable=yes,copyhistory=no";
			break;
			
		case 3:
			// Ç®x Ç®y Å©±â·Î ÁÂÃø »ó´Ü
			Ref_W = MaxScreenWidth - 50;
			Ref_H = MaxScreenHeight  - 200;
			Ref_X = 10;
			Ref_Y = 10;
			WinOption = "width="+Ref_W.toString()+",height="+Ref_H.toString()+",left="+Ref_X.toString()+",top="+Ref_Y.toString()+",status=yes,menubar=yes,toolbar=yes,scrollbars=3,location=yes,resizable=yes,copyhistory=no";
			break;
		case 31:
			// faq ÂÊµî¿¡¼­ ¾²±âÀ§ÇØ Ç®x Ç®y Å©±â·Î ÁÂÃø »ó´Ü³¡
			Ref_W = MaxScreenWidth - 100;
			Ref_H = MaxScreenHeight  - 180;
			Ref_X = 25;
			Ref_Y = 5;
			WinOption = "width="+Ref_W.toString()+",height="+Ref_H.toString()+",left="+Ref_X.toString()+",top="+Ref_Y.toString()+",status=yes,menubar=yes,toolbar=yes,scrollbars=3,location=yes,resizable=yes,copyhistory=no";
			break;
		case 32:
			// faq ÂÊµî¿¡¼­ ¾²±âÀ§ÇØ Ç®x Ç®y Å©±â·Î ÁÂÃø »ó´Ü³¡
			Ref_W = MaxScreenWidth - 90;
			Ref_H = MaxScreenHeight  - 180;
			Ref_H = MaxScreenHeight / 2;
			Ref_X = 25;
			Ref_Y = 5;
			WinOption = "width="+Ref_W.toString()+",height="+Ref_H.toString()+",left="+Ref_X.toString()+",top="+Ref_Y.toString()+",status=yes,menubar=yes,toolbar=yes,scrollbars=3,location=yes,resizable=yes,copyhistory=no";
			break;

		default:
			WinOption = "width="+Ref_W.toString()+",height="+Ref_H.toString()+",left="+Ref_X.toString()+",top="+Ref_Y.toString()+",status=yes,menubar=yes,toobar=yes,scrollbars=0,location=0,resizable=yes,copyhistory=no";
	}
	FocusStatus=0;
	setTimeout("FocusON()",2000);
	//
	if(moveUrl){
		newUrls = window.open(moveUrl,winName,WinOption);
	}else{
		newUrls = window.open("",winName,WinOption);
	}
	setTimeout("newUrls.focus()",500);
	//newUrls.focus();
}


function RefGoL3(moveUrl,winName,option,sw,alrtmsg,rssaddr){
	var MaxScreenWidth = screen.availWidth;
	if(MaxScreenWidth >801) MaxScreenWidth = 1024;
	else MaxScreenWidth = 800;
	var MaxScreenHeight = screen.availHeight;
	if(MaxScreenHeight >601) MaxScreenHeight = 768;
	else MaxScreenHeight = 600;

	var Ref_W = 100;
	var Ref_H = 400;
	var Ref_X = MaxScreenWidth - Ref_W - 50;
	var Ref_Y = 5;
	var WinOption = "";
	switch(sw){
		case 1:
			// Ç®x Àý¹Ýy Å©±â·Î Áß¾Ó»ó´Ü 
			Ref_W = MaxScreenWidth - 50;
			Ref_H = MaxScreenHeight / 2;
			Ref_X = (MaxScreenWidth - Ref_W)/2;
			Ref_Y = (MaxScreenHeight - Ref_H)/2;
			WinOption = "width="+Ref_W.toString()+",height="+Ref_H.toString()+",left="+Ref_X.toString()+",top="+Ref_Y.toString()+",status=yes,menubar=yes,toobar=yes,scrollbars=auto,location=yes,resizable=yes,copyhistory=no";
			break;
		case 2:
			// ÀÛÀºÇ®x ÀÛÀºy Å©±â·Î È­¸é¿ìÃø ¼ÕÀ¸·Î Å¬¸¯ 
			Ref_W = MaxScreenWidth - 200;
			Ref_H = (MaxScreenHeight / 2) - 200;
			Ref_X = MaxScreenWidth - Ref_W - 40;
			Ref_Y = 5;
			WinOption = "width="+Ref_W.toString()+",height="+Ref_H.toString()+",left="+Ref_X.toString()+",top="+Ref_Y.toString()+",status=yes,menubar=yes,toolbar=yes,scrollbars=3,location=yes,resizable=yes,copyhistory=no";
			break;
		case 21:
			// ÀÛÀºÇ®x ÀÛÀºy Å©±â·Î È­¸é¿ìÃø ¼ÕÀ¸·ÎÅ¬¸¯ »ó´Ü¸Þ´º¾øÀÌ - ÀÓ½ÃÀÔ·Â±â 
			Ref_W = MaxScreenWidth - 200;
			Ref_H = (MaxScreenHeight / 2) - 20;
			Ref_X = MaxScreenWidth - Ref_W - 40;
			Ref_Y = 2;
			WinOption = "width="+Ref_W.toString()+",height="+Ref_H.toString()+",left="+Ref_X.toString()+",top="+Ref_Y.toString()+",status=yes,menubar=0,toolbar=0,scrollbars=3,location=0,resizable=yes,copyhistory=no";
			break;
			
		case 3:
			// Ç®x Ç®y Å©±â·Î ÁÂÃø »ó´Ü
			Ref_W = MaxScreenWidth - 50;
			Ref_H = MaxScreenHeight  - 200;
			Ref_X = 10;
			Ref_Y = 10;
			WinOption = "width="+Ref_W.toString()+",height="+Ref_H.toString()+",left="+Ref_X.toString()+",top="+Ref_Y.toString()+",status=yes,menubar=yes,toolbar=yes,scrollbars=3,location=yes,resizable=yes,copyhistory=no";
			break;
		case 31:
			// Ç®x Ç®y Å©±â·Î ÁÂÃø »ó´Ü³¡
			Ref_W = MaxScreenWidth - 90;
			Ref_H = MaxScreenHeight  - 180;
			Ref_X = 25;
			Ref_Y = 5;
			WinOption = "width="+Ref_W.toString()+",height="+Ref_H.toString()+",left="+Ref_X.toString()+",top="+Ref_Y.toString()+",status=yes,menubar=yes,toolbar=yes,scrollbars=3,location=yes,resizable=yes,copyhistory=no";
			break;

		default:
			WinOption = "width="+Ref_W.toString()+",height="+Ref_H.toString()+",left="+Ref_X.toString()+",top="+Ref_Y.toString()+",status=yes,menubar=yes,toobar=yes,scrollbars=0,location=0,resizable=yes,copyhistory=no";
	}
	FocusStatus=0;
	setTimeout("FocusON()",2000);
	//
	var Tempdoc = document.body.createTextRange();	
	var Rss2Copy = eval('document.all.' + rssaddr);
	Rss2Copy.style.display='block';
	Tempdoc.moveToElementText(document.all(rssaddr));
	Tempdoc.select();
	Tempdoc.execCommand('copy',rssaddr);
	Rss2Copy.style.display='none';
	var alrtmsgStr = "alert('" + alrtmsg + "')";
	setTimeout(alrtmsgStr,1500);
	//
	if(moveUrl){
		newUrls = window.open(moveUrl,winName,WinOption);
	}else{
		newUrls = window.open("",winName,WinOption);
	}
	//
	setTimeout("newUrls.focus()",100);
	//newUrls.focus();
}


//var FocusStatus=1;
function keypressed() {
		return false;
}
function meFocus(){
	//if(document.bbsForm.nofocus.checked & (FocusStatus == 1)){
	if(FocusStatus == 1){	
		self.focus();
	}
}
function thisFocus(){
	document.onmousemove = meFocus;
}
function FocusOFF(){
	FocusStatus = 0;
}
function FocusON(){
	FocusStatus = 1;
}


function NulError(){
	return true;
}




function ExtrPop(url,name,sTwidth,sTheight,lTwidth,lTheight,toppos,leftpos,toolbar,menubar,statusbar,scrollbar,loca,resizable,moving,bordertype,noframetitle)
{
	// ExtrPop('http://21s.com','_blank',800,600,1024,768,,,'toobar','menu','status','scroll','location','resize','ON','NOFRAME','°øÁöÀÔ´Ï´Ù');
	// NOFRAME ÀÌ¸é Å©±â¸¦ Á¶ÀýÇÒ¼ö ¾ø´Ù ##
	var MaxScreenWidth = screen.availWidth;
	var MaxScreenHeight = screen.availHeight;
	var ExtrWin;
	if(MaxScreenWidth > 1023){
		TWinWidth = lTwidth;
		TWinHeight = lTheight;
	}else{
		TWinWidth = sTwidth;
		TWinHeight = sTheight;
	}
	var CenterScreenWidth = (screen.availWidth-TWinWidth-20)/2;
	var CenterScreenHeight = (screen.availHeight-TWinHeight-20)/2;
	CenterScreenWidth = leftpos ? leftpos : CenterScreenWidth ;
	CenterScreenHeight = toppos ? toppos : CenterScreenHeight ;
	//
	var toolbar_str = toolbar ? 'yes' : 'no';
	var menubar_str = menubar ? 'yes' : 'no';
	var statusbar_str = statusbar ? 'yes' : 'no';
	var	scrollbar_str = scrollbar ? 'yes' : 'no';
	var resizable_str = resizable ? 'yes' : 'no';
	var loc_str = loca ? 'yes' : 'no';
	//
	var windowREALtit		= noframetitle;
	// °øÁöÃ¢ÀÇ Å¸ÀÌÆ²¹Ù¿¡ ³ªÅ¸³ª´Â Å¸ÀÌÆ²
	var windowTIT 	    	= " &nbsp;&nbsp;&nbsp; <font face=±¼¸² size=2 color=white> "+noframetitle+"</font>" ; 
	// Å×µÎ¸® »ö»ó
	var windowBORDERCOLOR   	= "aqua" ; 
	// Å¬¸¯½Ã Å×µÎ¸®»ö
	var windowBORDERCOLORsel	= "#FF0000" ; 
	// Å¸ÀÌÆ²¹Ù ¹è°æ»ö
	var windowTITBGCOLOR    	= "#000000" ; 
	// Å¬¸¯½Ã Å¸ÀÌÆ²¹Ù ¹è°æ»ö
	var windowTITBGCOLORsel 	= "#FF0000" ; 
	var windowCERRARa 		= "/NeoFavor/images/close_a.gif";
	var windowCERRARd 		= "/NeoFavor/images/close_d.gif";
	var windowCERRARo 		= "/NeoFavor/images/close_o.gif";
	var windowNONEgrf 		= "/NeoFavor/images/none.gif";
	var windowCLOCK		= "/NeoFavor/images/clock.gif";
	//
	if (moving == "ON"){
		if(bordertype == "NOFRAME"){
			openchromeless(url, name, CenterScreenWidth, CenterScreenHeight, TWinWidth, TWinHeight, windowCERRARa, windowCERRARd, windowCERRARo, windowNONEgrf, windowCLOCK, windowTIT, windowREALtit , windowBORDERCOLOR, windowBORDERCOLORsel, windowTITBGCOLOR, windowTITBGCOLORsel,"BOARD");
		}else{
			ExtrWin = window.open('', name, 'left='+CenterScreenWidth+',top='+CenterScreenHeight+',width='+TWinWidth+',height='+TWinHeight+',toolbar='+toolbar_str+',menubar='+menubar_str+',status='+statusbar_str+',location='+loc_str+',scrollbars='+scrollbar_str+',resizable='+resizable_str);
			ExtrWin.focus();
		    ExtrWin.document.writeln('<html>');
			ExtrWin.document.writeln('<meta http-equiv="Refresh" content="0;URL='+url+'">');
		    ExtrWin.document.writeln('<head><title>Waiting Server...</title></head>');
		    ExtrWin.document.writeln('<body bgcolor=white background=/back_open.gif><center>');
			ExtrWin.document.writeln('<br></p><br></p><br></p><br></p><br></p><br></p><br></p>');
			ExtrWin.document.writeln("<center><img src=/NeoFavor/images/wait.gif border=0 width=50 height=50>");
			ExtrWin.document.writeln('<br></p>');
			ExtrWin.document.writeln('Connecting to Server ..');
		    ExtrWin.document.writeln('</center></body></html>');
		    ExtrWin.document.close();       
		}
	}else{
		if(bordertype == "NOFRAME"){
			openchromeless(url, name, CenterScreenWidth, CenterScreenHeight, TWinWidth, TWinHeight, windowCERRARa, windowCERRARd, windowCERRARo, windowNONEgrf, windowCLOCK, windowTIT, windowREALtit , windowBORDERCOLOR, windowBORDERCOLORsel, windowTITBGCOLOR, windowTITBGCOLORsel,"BOARD");
		}else{
			ExtrWin = window.open(url, name, 'left='+CenterScreenWidth+',top='+CenterScreenHeight+',width='+TWinWidth+',height='+TWinHeight+',toolbar='+toolbar_str+',menubar='+menubar_str+',status='+statusbar_str+',location='+loc_str+',scrollbars='+scrollbar_str+',resizable='+resizable_str);
			ExtrWin.focus();
		}
	}
}

//-->
