//XmlHttpRequest»ç¿ë½Ã º¸¿©ÁÖ´Â ¸Þ¼¼Áö
//2009.5.21 Auther : ±èÈ«¹ü
var workHandler = {
	onCreate : function(){
	    var unit = "px";
		this.progressDiv = document.createElement("div");

		//ºê¶ó¿ìÁ®°¡ IEÀÎÁö ±×¿Ü(ÆÄÀÌ¾îÆø½º, ¿ÀÆä¶ó, »çÆÄ¸®, Å©·Òµî)ÀÇ °ÍÀÎÁö ±¸ºÐ
		//IE¿Í ±×¿ÜÀÇ ºê¶ó¿ìÁ®°¡ ³Êºñ¿Í ³ôÀÌ¸¦ ±¸ÇÏ´Â DOMÀÌ ´Þ¶ó¼­ ±×·¸´Ù
		if(isIE()){
			this.left = document.body.offsetWidth/2;
			this.top = document.body.offsetHeight/2;
		}else {
			this.left = document.width/2;
			this.top = document.height/2;
		}

		this.progressDiv.id = "progressDiv";
		this.progressDiv.style.position = "absolute";
		this.progressDiv.style.left = this.left + unit;
		this.progressDiv.style.top = this.top + unit;
		this.progressDiv.align = "center";
		
		this.src = "/html/images/webv2/common/icon_progressbar.gif";
		
		//ÀÌ¹ÌÁöÀÇ »çÀÌÁî¸¦ ¾Ë¾Æ¿À±â À§ÇØ¼­
		this.Img = document.createElement("img");
		this.Img.src = this.src;

		//IE6.0ÀÏ °æ¿ì Div°´Ã¼ ¾È¿¡  iFrame°´Ã¼¸¦ »ý¼ºÇÏ°í ±× ¾È¿¡ ÀÌ¹ÌÁö¸¦ ºÒ·¯¾ß
		//´Ù¸¥ Form°´Ã¼µé(Select¹Ú½ºµî)°ú ÁßÃ¸µÉ°æ¿ì °¡·ÁÁöÁö ¾Ê´Â´Ù		
		this.iFrame = document.createElement("iframe");
		this.iFrame.src = this.src;
		this.iFrame.width = this.Img.width + unit;
		this.iFrame.height = this.Img.height + unit;
		this.iFrame.frameborder = "0" + unit;
		this.iFrame.marginHeight = "0" + unit;
		this.iFrame.marginWidth = "0" + unit;
		this.iFrame.scrolling = "no";
		
		this.progressDiv.style.left = this.left - (this.Img.width/2) + unit;
		this.progressDiv.appendChild(this.iFrame);

	    document.body.appendChild(this.progressDiv);
	},

	onComplete : function(){
		this.progressDiv = $('progressDiv');
        document.body.removeChild(this.progressDiv);
        alert("ÀúÀåµÇ¾ú½À´Ï´Ù.");
	}
}

function isIE(){
	if(navigator.appName == "Microsoft Internet Explorer"){
		return true;
	}else {
		return false;
	}
}
