// JavaScript Document
function MM_reloadPage(init) {  //reloads the window if Nav4 resized
  if (init==true) with (navigator) {
	  if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
	    document.MM_pgW=innerWidth; 
	    document.MM_pgH=innerHeight; 
	    onresize=MM_reloadPage; 
	  }
  }
  else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) 
  	location.reload();
}
function toHome()
{
	location.replace("/jsp/index.jsp");
}
function toSiteMap()
{
		location.replace("/jsp/sitemap.jsp");
}
function openWindow(theURL, winName, feature) 
{
    var tmp_focus;

	if (feature=="" || feature==null) 
	{
		tmpFocus = window.open(theURL, winName );
	} 
	else 
	{
		tmpFocus = window.open(theURL, winName, feature );
	}
	tmpFocus.focus();
}
function OpenWindowCenter(theURL,winName,feature,swidth,sheight)
{
	 sw=screen.availWidth;
	 sh=screen.availHeight;
	
	 //열 창의 포지션
	 px=(sw-swidth)/2;
	 py=(sh-sheight)/2;
	 
    var tmp_focus;

	
	if (feature==null) 
	{
		alert("NULL");
		tmpFocus = window.open(theURL, winName );
	} 
	else 
	{
		
		if(feature.length > 0 )
			feature += ',';
		feature += 'left=' +px + ',top='+py+',width=' + swidth + ',height=' + sheight;
		
		tmpFocus = window.open(theURL, winName, feature );
	}
	tmpFocus.focus();
}

