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 ()
{ laod = window.open('../apps/link.htm?url=https://www3.dsal.gov.mo/laod/');} 

function openDSALhrdb ()
{ hrdb = window.open('../apps/link.htm?url=https://www3.dsal.gov.mo/hrdb/');} 

function openDSALfaq ()
{ lawquestion = window.open('../apps/link.htm?url=http://www3.dsal.gov.mo/lawquestion/');}

function openDSALjob ()
{ job = window.open('../apps/link.htm?url=http://www3.dsal.gov.mo/job/','job','scrollbars=yes,resizable=yes,height=500,width=800');}

function openDSALChinagrad ()
{ dfpdata = window.open('dfp_chinagrad.htm', 'chigrad', 'scrollbars=no, resizable=yes, width=520,height=400'); }


function openDSALPositionpWin ()
{ thireplan = window.open('thireplan_p.htm', 'thire', 'scrollbars=no, resizable=yes, width=480,height=500');}

function openDSALPositioneWin ()
{ thireplan = window.open('thireplan_e.htm', 'thire', 'scrollbars=no, resizable=yes, width=480,height=500');}


<!-- icon_第一欄_中文版 -->
function openDSALLawWin ()
{ lawdata = window.open('../rule/labor_nr_law.htm');}

function openDSALPositionWin ()
{ lawdata = window.open('thireplan.htm', 'thire', 'scrollbars=yes, resizable=yes, width=520,height=650'); }

function openDSALEmployWin ()
{ employdata = window.open('../chinese/dsal_employ.htm', 'dsalemploy', 'scrollbars=yes, resizable=yes, width=580,height=400');}

<!-- icon_第二欄_中文版 -->
function openDPEservice ()
{ DPEservice = window.open('../chinese/DPEservice/01_introduction.htm', 'dpe', 'scrollbars=yes, resizable=yes, width=860,height=600');}

function opendfpcomp ()
{ dfpcomp = window.open('../dfp_comp/index.html'); }

function opnedfpcourse ()
{ dfpcourse = window.open('../dfp_coursepage/index.htm'); }

<!-- icon_第三欄_中文版 -->
function opendsso ()
{ dsso = window.open('../chinese/dsso/dsso_front.htm');}

function openMinorbodycheck ()
{ Minorbodycheck = window.open('../chinese/servicelist/2009.htm');}

function openDSALisopage ()
{ isopage = window.open('../iso_page/index.htm');}
<!-- end -->

<!-- enents -->
function openFirstaid ()
{ rules = window.open('../chinese/popup/20110110_dsso_Firstaid.htm', 'rules', 'scrollbars=no, resizable=no, width=440,height=280'); }

function openSafetyshoes ()
{ rules = window.open('../chinese/popup/20110110_dsso_Safetyshoes.htm', 'rules', 'scrollbars=no, resizable=no, width=440,height=280'); }
<!-- end -->

function openDSALLawWinPort ()
{ lawdata = window.open('../rule/labor_nr_law.htm');}

function openDSALLawWinEng ()
{ lawdata = window.open('../rule/labor_nr_law.htm');}

function openDSALEmployWin_p ()
{ employdata = window.open('../portuguese/dsal_employ.htm', 'dsalemploy', 'scrollbars=yes, resizable=yes, width=580,height=400') }

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'); }

<!-- Dsso電子報 -->
function openDssonewsletter ()
{ newsletter = window.open('../../link/dssonewsletter/oshenews.htm', 'newsletter', 'scrollbars=yes, resizable=yes, width=530,height=530'); }
<!-- end -->



