﻿function MM_openBrWindow(theURL,winName,features) { //v2.0
  newwin=window.open(theURL,winName,features);
  window.newwin.focus();
}

function MM_swapImgRestore() { //v3.0
  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}

function MM_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}

function MM_findObj(n, d) { //v4.01
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
}

function MM_swapImage() { //v3.0
  var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
   if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}

function openPDF (menuname, link){
  var d = "document.form_main." + menuname;
  var filename = "";
  filename = eval (d + '.options [' + d + '.selectedIndex].value');
  link=  link + filename + ".pdf";
  window.open( link, filename,'scrollbars=yes,resizable=yes');
  //window.filename.focus();
}


function openHTM (menuname, link){
  var d = "document.form_main." + menuname;
  var filename = "";
  filename = eval (d + '.options [' + d + '.selectedIndex].value');
  link=  link + filename + ".htm";
  window.open( link, filename,'scrollbars=yes,resizable=yes, width=800, height=600');
  //window.filename.focus();
}


function openPDFby2Value (menuname, menuname2, link){
  var d = "document.form_main." + menuname;
  var d2 = "document.form_main." + menuname2;
  var filename = "", filename2 = "";
  filename = eval (d + '.options [' + d + '.selectedIndex].value');
  filename2 = eval (d2 + '.options [' + d2 + '.selectedIndex].value');
  link = link + filename + '_' + filename2 + ".pdf";
  window.open( link, filename+filename2,'scrollbars=yes,resizable=yes');
  //window.filename.focus();
}

function openMenu (menuname, link, h, w){
  var d = "document.form_main." + menuname;
  var filename = "";
  filename = eval (d + '.options [' + d + '.selectedIndex].value');
  link=  link + filename + ".htm";
  window.open( link, filename,'scrollbars=no,height=' + h + ',width=' + w);
  //window.filename.focus();
}

function showLayer(divID) {
  var targetElement;
  targetElement = document.all(divID);
  if (targetElement.style.display == "none")  targetElement.style.display = "";
  else  targetElement.style.display = "none";
}

function opennews ()
{ rules = window.open('../rule/rule.htm', 'rules', 'scrollbars=no, resizable=no, width=440,height=280'); }

function opennewsp ()
{ rules = window.open('../rule/rulep.htm', 'rules', 'scrollbars=no, resizable=no, width=440,height=280'); }





function openDSALload ()// u@N~¾~fݨƤWt
{ lawdata = window.open('https://www3.dsal.gov.mo/laod/');
  //lawdata = window.open('../rule/conf_uc.htm'); 
} 

function openDSALhrdb ()//|i~HO귽Ʈw
{ lawdata = window.open('https://www3.dsal.gov.mo/hrdb/'); 
  //lawdata =  window.open('../rule/conf_uc.htm');
} 

function openDSALfaq ()//ҰYkD
{ lawdata = window.open('http://www3.dsal.gov.mo/lawquestion');
  //lawdata =  window.open('../rule/conf_uc.htm');
}

function openDSALjob ()//N~t
{ lawdata = window.open('http://www3.dsal.gov.mo/job/','job','scrollbars=yes,resizable=yes,height=500,width=800');
  //lawdata =  window.open('../rule/conf_uc.htm');
}



function openDSALChinagrad ()
{ dfpdata = window.open('dfp_chinagrad.htm', 'chigrad', 'scrollbars=no, resizable=yes, width=520,height=400'); }

function openDSALPositionWin ()
{ lawdata = window.open('thireplan.htm', 'thire', 'scrollbars=yes, resizable=yes, width=520,height=1000'); 
  //lawdata =  window.open('../rule/conf_uc.htm');
}

function openDSALPositionpWin ()
{ lawdata = window.open('thireplan_p.htm', 'thire', 'scrollbars=yes, resizable=yes, width=520,height=500');
  //lawdata =  window.open('../rule/conf_uc.htm');
}

function openDSALPositioneWin ()
{ lawdata = window.open('thireplan_e.htm', 'thire', 'scrollbars=yes, resizable=yes, width=520,height=500');
  //lawdata =  window.open('../rule/conf_uc.htm');
}

<!-- 21/01/2010 ISO Page -->
function openDSALIsoWin ()
{ isodata = window.open('../iso_page/index.htm'); }


function openDSALnrlawWin ()
{ lawdata = window.open('../iso_page/index.htm'); }

function openDSALLawWin ()
{ lawdata = window.open('../rule/labor_nr_law.htm');
  //lawdata =  window.open('../rule/conf_uc.htm');
}

function opensevmWin ()
{ lawdata = window.open('../rule/conf_uc.htm', 'sevm', 'scrollbars=no, resizable=yes, width=520,height=280'); }

function openDSALLawWinPort ()
{ lawdata = window.open('../rule/labor_nr_law.htm');
  //lawdata =  window.open('../rule/conf_uc.htm');
}

function openDSALLawWinEng ()
{ lawdata = window.open('../rule/labor_nr_law.htm');
  //lawdata =  window.open('../rule/conf_uc.htm');
}

function openDSALEmployWin ()
{ employdata = window.open('../chinese/dsal_employ.htm', 'dsalemploy', 'scrollbars=no, resizable=yes, width=580,height=400') }



<!--function openWorkskill2007 () -->
<!--{ workskill2007 = window.open('../chinese/workskill_info.htm', 'workskill2007', 'scrollbars=no, resizable=no, width=360,height=110'); }-->

function opennewclass()
{ rules = window.open('../chinese/11thclass_app.htm', '11thclass_app', 'scrollbars=no, resizable=no, width=420,height=180'); }

function open15thdisc()
{ rules = window.open('../chinese/15th_diss.htm', '15th_diss', 'scrollbars=no, resizable=no, width=500,height=135'); }

<!--function opennews ()-->
<!--{ examlistc = window.open('examlist.htm', 'examlistc', 'scrollbars=no, resizable=no, width=440,height=200'); }-->

<!--function opennews2 ()-->
<!--{ examlistp = window.open('examlist.htm', 'examlistp', 'scrollbars=no, resizable=no, width=510,height=220'); }-->


