var _g_is_inited = false;

function initMLReport()
{
	if(!_g_is_inited) 
	{
		//codebase Æ÷ÇÔÇÏÁö ¾ÊÀ½
		//MLdummy.innerHTML = "<object classid=\"clsid:77AB1CE3-41B3-49B5-8836-1FBC07FE452D\"   id=\"pwp\"  width=\"0\" height=\"0\"></OBJECT>";

		//codebase Æ÷ÇÔ
		MLdummy.innerHTML = "<object classid=\"clsid:77AB1CE3-41B3-49B5-8836-1FBC07FE452D\" codebase=\"http://166.104.177.24/lib/MLReport/MLReport.cab#Version=2,1,9,6\" id=\"pwp\" width=\"0\" height=\"0\"></OBJECT>";

		this.pwp.license="http://166.104.177.24/lib/MLReport/DLJQCBCR6B5H5ML.pwl";    
		this.pwp.enablescript=false;

		_g_is_inited = true;	
	}
}


function PrintProc()
{
	initMLReport();
	this.pwp.CellOptimizeDivide = true;
	this.pwp.printindirect (document);
}

function OptionProc()
{
	initMLReport();
	this.pwp.optiondlg ();
}   

function PreviewProc()
{  
	initMLReport();

	try
	{	
		this.pwp.CellOptimizeDivide = true;
		this.pwp.previewdlg (document);
	} catch (e) {
		document.location.reload(true);
		window.open('http://www.hanyang.ac.kr/controller/installguide.html','MLInstallWnd','width=455; height=290');
	}

}

function MakepdfProc()
{
	initMLReport();

	try
	{
		this.pwp.Makepdf (document);
	} catch (e) {
		document.location.reload(true);
		window.open('http://www.hanyang.ac.kr/controller/installguide.html','MLInstallWnd','width=455; height=290');
	}

}

