/*ÇÃ·¡½¬*/
function common_object(width,height,dir){ document.write("<object classid='clsid:D27CDB6E-AE6D-11cf-96B8-444553540000' codebase='http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0' width='"+width+"' height='"+height+"'><param name='movie' value='"+dir+"'><param name='quality' value='high'><param name='wmode' value='transparent'><embed src='"+dir+"' quality='high' pluginspage='http://www.macromedia.com/go/getflashplayer' type='application/x-shockwave-flash' width='"+width+"' height='"+height+"'></embed></object>"); } 

/*//´äº¯·¹ÀÌ¾î */
	
	var old_menu = '';
	function menuclick(submenu) {
	    if( old_menu != submenu ) {
	    if( old_menu !='' ) {
	        old_menu.style.display = 'none';
	}
	    submenu.style.display = 'block';
	    old_menu = submenu;
	    } else {
	        submenu.style.display = 'none';
	        old_menu = '';
	    }
	}
	
/*ÇÁ¸°Æ®*/

//print layer
var initBody 
function beforePrint(){ 
	initBody = document.body.innerHTML; 
	document.body.innerHTML = PrintLayer.innerHTML; 
} 

function afterPrint(){ 
	document.body.innerHTML = initBody; 
} 

function goSearch(){
	if (document.frm_search.keyword.value == "")
	{
		alert("°Ë»ö¾î¸¦ ÀÔ·ÂÇÏ¼¼¿ä");
		document.frm_search.keyword.focus();
		return false;
	}
}

function goPrint(){
//		result = opener.document.getElementById("formBody").innerHTML;
//		var conts = document.getElementById('PrintLayer');
//		conts.innerHTML = result;
//		reSizePopup();
//		window.print();
//		close();
//		tempBody = document.getElementById("PrintLayer").innerHTML;

//		document.body.innerHTML = tempBody;
		window.open('/include/printPop.asp','print','left=50,top=50,width=50,height=100,toolbar=no,menubar=no,status=no,scrollbars=yes,resizable=no');
		//window.print();

	}

function imageView(what) { 
var imgwin = window.open("",'WIN','scrollbars=no,status=no,toolbar=no,resizable=1,location=no,menu=no,width=10,height=10'); 
imgwin.focus(); 
imgwin.document.open(); 
imgwin.document.write("<html>\n"); 
imgwin.document.write("<head>\n"); 
imgwin.document.write("<title>**</title>\n"); 

imgwin.document.write("<sc"+"ript>\n"); 
imgwin.document.write("function resize() {\n"); 
imgwin.document.write("pic = document.il;\n"); 
//imgwin.document.write("alert(eval(pic).height);\n"); 
imgwin.document.write("if (eval(pic).height) { var name = navigator.appName\n"); 
imgwin.document.write(" if (name == 'Microsoft Internet Explorer') { myHeight = eval(pic).height + 40; myWidth = eval(pic).width + 12;\n"); 
imgwin.document.write(" } else { myHeight = eval(pic).height + 9; myWidth = eval(pic).width; }\n"); 
imgwin.document.write(" clearTimeout();\n"); 
imgwin.document.write(" var height = screen.height;\n"); 
imgwin.document.write(" var width = screen.width;\n"); 
imgwin.document.write(" var leftpos = width / 2 - myWidth / 2;\n"); 
imgwin.document.write(" var toppos = height / 2 - myHeight / 2; \n"); 
imgwin.document.write(" self.moveTo(leftpos, toppos);\n"); 
imgwin.document.write(" self.resizeTo(myWidth, myHeight);\n"); 
imgwin.document.write("}else setTimeOut(resize(), 100);}\n"); 
imgwin.document.write("</sc"+"ript>\n"); 

imgwin.document.write("</head>\n"); 
imgwin.document.write('<body topmargin="0" leftmargin="0" marginheight="0" marginwidth="0" bgcolor="#f5f5f5">\n'); 

imgwin.document.write("<a href='javascript:window.close();' alt='ÀÌ¹ÌÁö¸¦ Å¬¸¯ÇÏ½Ã¸é Ã¢ÀÌ ´ÝÈü´Ï´Ù'><img border=0 src="+what+" xwidth=100 xheight=9 name=il onload='resize();'></a>\n"); 
imgwin.document.write("</body>\n"); 
imgwin.document.close(); 

} 
	