function fn_WindowOnLoad()
{
	try
	{
		if(document.all.errorMessage.value != null)
		{
			// 1. ¿¡·¯ ¸Þ½ÃÁö°¡ ÀÖ´Â °æ¿ì ÆË¾÷ Ãâ·Â
			if ( document.all.errorMessage.value.length > 0 )
				fn_OpenErrorMessage();
		}
	}
	catch ( exception ) {}

	window.status = "";
}

function fn_OpenErrorMessage()
{
	var args = new Object();
	args.win = window;
	args.errMessage = window.document.all.errorMessage.value;
	
	alert(args.errMessage);
}

function Popfind(cls, grade) 
{				
	var width1 = 696 ;
	var height1 = 588 ;
	var winl = (screen.width - width1 ) / 2;
	var wint = (screen.height - height1 ) / 2;
	var url = '/02_Product/Product/pop_product_' + cls + '_' + grade + '.html' ;
	winprops = 'width='+width1+',height='+height1+',top='+wint+',left='+winl+',resizable=no,scrollbars=yes,toolbars=no,status=no,menu=no';
	win = window.open(url, "new1", winprops)
	if (parseInt(navigator.appVersion) >= 4) { win.window.focus(); }
}

function Popfind1(url, width1, height1) 
{				
	var winl = (screen.width - width1 ) / 2;
	var wint = (screen.height - height1 ) / 2;
	winprops = 'width='+width1+',height='+height1+',top='+wint+',left='+winl+',resizable=no,scrollbars=yes,toolbars=no,status=no,menu=no';
	win = window.open(url, "new1", winprops)
	if (parseInt(navigator.appVersion) >= 4) { win.window.focus(); }
}	

function PopDownLoad(url)
{
	window.document.location.href = url;
}

function view(what) 
{ 
var imgwin = window.open("",'WIN','scrollbars=no,status=no,toolbar=no,resizable=0,location=no,menu=no,width=10,height=10'); 
	imgwin.focus(); 
	imgwin.document.open(); 
	//imgwin.document.write("<script language='javascript'> alert('aaa')</script>");
	imgwin.document.write("<html>\n"); 
	imgwin.document.write("<head>\n"); 
	imgwin.document.write("<title>ÀÌ¹ÌÁö Å©°Ôº¸±â</title>\n"); 

	imgwin.document.write("<script>\n"); 
	imgwin.document.write("function resize() {\n"); 
	imgwin.document.write("pic = document.il;\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-12);\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="#FFFFFF">\n'); 

	imgwin.document.write("<img border=0 src="+what+" xwidth=100 xheight=9 name=il onload='resize();' style='cursor:hand' onclick='window.close();'>\n"); 
	imgwin.document.write("</body>\n");
	imgwin.document.close(); 
}

function getObj_Activex(id) {
  document.write(document.getElementById(id).value);
}