//===== relative URL handling code for js files ================
sWZBaseFolder = "www.kocell.com";                          
sWZ = window.location.href;                                     
iWZ = sWZ.indexOf(sWZBaseFolder) + sWZBaseFolder.length + 1;    
sWZBase = sWZ.substring(0,iWZ);                                 
//===== Copyright © 2001 Spidersoft. All rights reserved. ======

<!--
  
   function funOpenerRefresh() 
   {
       curLocation = opener.document.location ;
       opener.document.location = curLocation ;
       window.close();

   }


   function funWebsite_Refresh() 
   {
       curLocation = parent.document.location.href ;
       parent.document.location.href = curLocation ;
	   document.location.href = ' + sWZBase + "webpart/ui/loading.asp.html" + '  ;
	   window.close();

	}


	function funSiteManager_Close()
	{

		document.location.href = ' + sWZBase + "webpart/ui/loading.asp.html" + '  ;
		parent.funcMenuMushin_Hidden('layerWebparts');
		parent.funcMenuMushin_Hidden('layerXWSManager');


	}

    //ÇöÀç Å¬¶óÀÌ¾ðÆ®ÀÇ Áß°£¿¡ layer°¡ µé¾î°¥ ¼ö ÀÖµµ·Ï ÇÏ´Â ÁÂÇ¥¸¦ ¸®ÅÏÇØÁÖ´Â ÇÔ¼ö

	function funLayerCenterPosition_Get( W , H)
	{	
		var windowX = Math.ceil( (document.body.offsetHeight  - H ) / 2 ) ;
		var windowY = Math.ceil( (document.body.offsetWidth - W) / 2 );

		var str ;
		str = windowX.toString() + " , "  + windowY.toString()  + " , "  +  W.toString()  + " , " + H.toString()  ;

		return str ;
	}

	function funLayerXWSManagerLocation( W , H)
	{	
		var windowX = Math.ceil( (document.body.offsetHeight  - H ) / 2 ) ;
		var windowY = Math.ceil( (document.body.offsetWidth - W) / 2 );

		var str ;
		str = windowX.toString() + " , "  + windowY.toString()  + " , "  +  W.toString()  + " , " + H.toString()  ;

		return str ;
	}




function beginDrag() {

		if (window.event.srcElement.className == 'mobile' || window.event.srcElement.parentElement.className == 'mobile' ){

			dragThis = parent.document.all['layerXWSManager']
			dragThis.style.position = 'absolute' ; 
			dragThis.setCapture();
			
	        oldX = (event.clientX + document.body.scrollLeft); 
    	    oldY = (event.clientY + document.body.scrollTop); 
		}
		else
		{
		
			//alert(window.event.srcElement.className);

		}
		

}


function dragIt(){
	

	
	if (dragThis == null) { return };

		
        newX = (event.clientX + document.body.scrollLeft);
        newY = (event.clientY + document.body.scrollTop);

        var distanceX = (newX - oldX);
        var distanceY = (newY - oldY);

        oldX = newX;
        oldY = newY;
                  
        dragThis.style.pixelLeft += distanceX; 
        dragThis.style.pixelTop += distanceY;

		dragThis.releaseCapture();

        event.returnValue = false;


}


function endDrag() {

	//parent.document.all['layerXWSManager2'].style.visibility = '' ;                  


	dragThis = null; 

}

function setDrag() {

        document.onmousemove = dragIt;
        document.onmousedown = beginDrag;
        document.onmouseup = endDrag;

        oldX=oldY=newX=newY=0, dragThis=null;


}



//-->
