var newWindow = null
function openwindow(loadhttp)
{       
        if (! newWindow || newWindow.closed)
        {
        newWindow = window.open(loadhttp,"PrintPage","toolbar=yes,top=60,left=50,width=410,height=230,directories=no,status=no,scrollbars=yes,resizable=yes,menubar=no");
        }else
        {
                newWindow.focus();
        }
}
function opennew(url)
{
	ContentWindow = window.open(url,"_blank","toolbar=no,top=60,left=50,width=620,height=400,directories=no,status=no,scrollbars=yes,resizable=yes,menubar=no")
	
}
function mousemoveshow()
{
   x=event.clientX;
   y=event.clientY;
   window.status="x="+x+" y="+y
   document.all("Layer1").style.visibility="visible";
   document.all("Layer1").style.left=x;
   document.all("Layer1").style.top=350;
}
function mousemovehi()
{
  document.all("Layer1").style.visibility="hidden"
}
//职称考试
function OnClickdept(DivId){
   document.all["报考条件"].style.display='none'; 
   document.all["考试地点"].style.display='none'; 
   document.all["报考时间"].style.display='none'; 
   document.all["报考程序"].style.display='none'; 
   document.all["报考费用"].style.display='none'; 

   if(document.all[DivId].style.display=='none'){
        document.all[DivId].style.display=''; 
     }
//   else{
//        document.all[DivId].style.display='none';
//     }
   return 0;
} 
function OnClickdept1(DivId,n,idn){
//  var tophi=document.body.clientHeight;
//  var whi=document.body.clientWidth;
//  var xhi=event.clientX;
//  var schi=event.clientY;
//  alert(whi+" "+tophi+" "+xhi+" "+schi+" "+scchi);
//  document.all["hi"].style.display='';
//  document.all["hi"].style.left=xhi;
//  document.all["hi"].style.top=schi+scchi;
    var scchi=document.body.scrollTop;
    document.all[DivId].style.display='';
    document.all[DivId].style.left=event.clientX+30;
    document.all[DivId].style.top=event.clientY+scchi-30;
    var strn=document.anchors[n].href;
    var strid=strn.indexOf("?");
    var strend=strn.substr(strid);
    document.idchange.title.value=idn;
    idk0.href=document.anchors[n].href+"&showid=报考条件";
    idk1.href=document.anchors[n].href+"&showid=考试地点";
    idk2.href=document.anchors[n].href+"&showid=报考时间";
    idk3.href=document.anchors[n].href+"&showid=报考程序";
    idk4.href=document.anchors[n].href+"&showid=报考费用";
    idk5.href="javascript:opennew('http://www.himprec.org.cn/gnbwasp/zc_wenjian/showallabout.asp"+strend+"&chk_sort=职称考试')";

} 
function OnClickdept2(DivId){
        document.all[DivId].style.display='none'; 
}
//技能鉴定
function OnClickdept3(DivId){
   document.all["工种定义"].style.display='none'; 
   document.all["适用范围"].style.display='none'; 
   document.all["鉴定机构"].style.display='none'; 
   document.all["收费类别"].style.display='none'; 

   if(document.all[DivId].style.display=='none'){
        document.all[DivId].style.display=''; 
     }
//   else{
//        document.all[DivId].style.display='none';
//     }
   return 0;
} 
function OnClickdept4(DivId,n,idn){
    var scchi=document.body.scrollTop;
    document.all[DivId].style.display='';
    document.all[DivId].style.left=event.clientX+30;
    document.all[DivId].style.top=event.clientY+scchi-30;
    var strn=document.anchors[n].href;
    var strid=strn.indexOf("?");
    var strend=strn.substr(strid);
    document.idchange.title.value=idn;
    idk0.href=document.anchors[n].href+"&showid=工种定义";
    idk1.href=document.anchors[n].href+"&showid=适用范围";
    idk2.href=document.anchors[n].href+"&showid=鉴定机构";
    idk3.href=document.anchors[n].href+"&showid=收费类别";
    idk4.href="javascript:opennew('http://www.himprec.org.cn/gnbwasp/zc_wenjian/showallabout.asp"+strend+"&chk_sort=技能鉴定')";

} 
function OnClickdept5(DivId){
        document.all[DivId].style.display='none'; 
}

function Onexp(DivId){
   		if(document.all[DivId].style.display=='none'){
	  		document.all[DivId].style.display=''; 
//            event.srcElement.src=newimg1.src;
	  		}
		else{
	  		document.all[DivId].style.display='none';
//            event.srcElement.src=newimg2.src;
	  		}
		return 0;
} 