//************************************************************************
//      À©µµ¿ì »õÃ¢ ¶ç¿ì±â (È­¸éÁß¾Ó¿¡) 
//************************************************************************

function open_winc(URL, WindowName, aWidth, aHeight, sc)
{
	
	var w = aWidth - 0;
	var h = aHeight - 0;
	
	if ((w == 0) || (w > window.screen.width)) {		w = window.screen.width;	}
	if ((h == 0) || (h > window.screen.height - 40)) {	h = window.screen.height - 40;	}
	var l = window.screen.width  / 2 - w / 2;
	var t = window.screen.height / 2 - h / 2 - 40;

	if (t < 0 ) {	t = 0;	}
	
		if(dd != null) dd.close();
		var dd = window.open(URL, WindowName, "Width="+ w +",Height="+ h +",Left="+ l +",Top="+ t +",status=no,scrollbars="+sc);

}

//************************************************************************
//    ÆË¾÷Ã¢ ¶ç¿ì±â
//************************************************************************

function open_win(url,win,features) 
{ 
	var openwindow = window.open(url,win,features);
}

//************************************************************************
//    ÀÔ·Â¹ÞÀº URL·Î ÆäÀÌÁö ¿­±â (link)
//************************************************************************

function goURL(url)
{
	location.href = url;
}

//************************************************************************
//    ÇÁ¸°Æ® ÇÏ±â
//************************************************************************

function printWindow() { 
	bV = parseInt(navigator.appVersion); 
	if (bV >= 4) window.print(); 
} 

//************************************************************************
//    ¸µÅ©¿¡ Á¡¼±Å×µÎ¸® ¾ø¾Ö±â
//************************************************************************

function bluring(){ 
	if(event.srcElement.tagName=="A"||event.srcElement.tagName=="IMG") 
	document.onfocusin=bluring; 
} 
function flash_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>");	
}


