function loginWin(url,name,operator){
    if(operator){

        var win=window.open(url,name,'menubar=no,toolbar=no,location=no,directories=no,status=yes,scrollbars=yes,resizable=yes,width='+(window.screen.availWidth-8)+',height='+(window.screen.availHeight-50)+',top=0,left=0');

    }else{
        window.open(url,name);
    }
}
function openWin(url,name,widthpar,heightpar){
    window.open(url,name,'menubar=no,toolbar=no,location=no,directories=no,status=yes,scrollbars=yes,resizable=yes,width='+widthpar+',height='+heightpar+',top=20,left=40');
}
function openShipin(url,name,widthpar,heightpar){
    window.open(url,name,'menubar=no,toolbar=no,location=no,directories=no,status=yes,scrollbars=yes,resizable=no,width='+widthpar+',height='+heightpar+',top=20,left=40');
}
function  listClass( objId ){
    //var currObj = eval("document.all."+objId);
	var currObj=document.getElementById(objId);
	if( currObj.style.display == ''){
		currObj.style.display = 'none';
	}else{
		currObj.style.display = '' ;
	}
}
 function displayMenu(obj){
    obj.style.visibility="visible";
 }
 function hideMenu(obj){
    obj.style.visibility="hidden";
 }

function adjustSubMenu(){
  var dw = document.body.offsetWidth;
  var subMenu=document.getElementById("kfm_menuNav_sub");

  if(dw >= 1024){
	
  var currentWidth = dw / 2 - 1024 / 2;   
	    	    
  subMenu.style.left = 205 + currentWidth;

  }else{

     subMenu.style.left = 205;

   }
	
}	
function menuFix() { 
	var sfEls = document.getElementById("nav").getElementsByTagName("li"); 
	for (var i=0; i<sfEls.length; i++) { 
		sfEls[i].onmouseover=function() { 
			this.className+=(this.className.length>0? " ": "") + "sfhover"; 
		} 
		sfEls[i].onmousedown=function() { 
			this.className+=(this.className.length>0? " ": "") + "sfhover"; 
		} 
		sfEls[i].onmouseup=function() { 
			this.className+=(this.className.length>0? " ": "") + "sfhover"; 
		} 
		sfEls[i].onmouseout=function() { 
			this.className=this.className.replace(new RegExp("( ?|^)sfhover\\b"), ""); 
		} 
	} 
}
function menuThird(objId){
	var currObj=document.getElementById(objId);
	if( currObj.style.display == 'block'){
		currObj.style.display = 'none';
	}else{
		currObj.style.display = 'block' ;
	}
}

function menuFix2(obj){
	for(var i=1;i<=3;i++){
		if(i == obj){
			document.getElementById("subnav" + i).style.display = "block";
		}else{
			document.getElementById("subnav" + i).style.display = "none";
		}
	}
		
}
function menuFix3(){
	for(var i=1;i<=3;i++){
		document.getElementById("subnav" + i).style.display = "none";
	}
}
function chkURL(urlId){
   var currObj = document.getElementById(urlId);
   var selAreaURL = currObj.value;
   /*window.location.href=selAreaURL;*/
   window.open(selAreaURL);
}
function chkURL_self(urlId){
   var currObj = document.getElementById(urlId);
   var selAreaURL = currObj.value;
   if(selAreaURL == "null"){
	 return;
   }
   window.location.href=selAreaURL;
}