
function JS_viewObj(objhtml) { 
    document.write(objhtml); 
} 

function pop(url){
    win =  "width=660,height=720,toolbars=no,location=no,directories=no,top=0,left=0,menubar=no,scrollbars=yes,resizable=no";
    popWindow=window.open(url,"pop1",win);
}	

function pop_resize(url,iw,ih){
    win =  "width="+iw+",height="+ih+",toolbars=no,location=no,directories=no,top="+(screen.availHeight-ih)/2+",left="+(screen.availWidth-iw)/2+",menubar=no,scrollbars=yes,resizable=yes";
    window.open(url,"pop2",win);
}	

function pop_noresize(url,iw,ih){
    win =  "width="+iw+",height="+ih+",toolbars=no,location=no,directories=no,top="+(screen.availHeight-ih)/2+",left="+(screen.availWidth-iw)/2+",menubar=no,scrollbars=no,resizable=no";
    popWindow=window.open(url,"pop3",win);
}	

function pop_center(url,iw,ih){
	var resizeHeight

	if(ih>screen.availHeight-100) {
		resizeHeight=screen.availHeight-100
	}
	else {
		resizeHeight=ih
	}

    var x = ( screen.availWidth - iw)/2;
    var y = ( screen.availHeight-100 - resizeHeight)/2;

    win =  "width="+iw+",height="+resizeHeight+",left="+x+",top="+y+",toolbars=no,location=no,directories=no,menubar=no,scrollbars=yes,resizable=no";
    popWindow=window.open(url,"pop",win);
}	

var ifrContentsTimer; 

function resizeRetry() { //ÀÌ¹ÌÁö°°ÀÌ ·Îµù½Ã°£ÀÌ °É¸®´Â °ÍµéÀÌ ·ÎµùµÈÈÄ ´Ù½Ã ÇÑ¹ø ¸®»çÀÌÁî
	if(document.body.readyState == "complete") { 
		clearInterval(ifrContentsTimer); 
	}else { 
		resizeFrame(); 
	} 
} 

function resizeFrame(){ //ÆäÀÌÁö°¡ ·ÎµùµÇ¸é ¹Ù·Î ¸®»çÀÌÁî..
	self.resizeTo(document.body.scrollWidth + (document.body.offsetWidth-document.body.clientWidth), parseInt(document.body.scrollHeight)+10); 
} 
