/* Select button to jump to different page */
function MM_jumpMenu(targ,selObj,restore){ //v3.0
  eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");
  if (restore) selObj.selectedIndex=0;
}

/* Select button to jump different page or open new window, use this! */
/* eg (new window): <option value="blank+http://www.pidm.gov.my/">PIDM</option>*/
/* eg (parent window): <option value="parent+http://www.pidm.gov.my/">PIDM</option>*/
function MM_jumpMenuBlank(selObj,restore){ //v3.0

  var selectedVal= selObj.options[selObj.selectedIndex].value;
  var selectedVal_array=selectedVal.split("+");
  
  if (selectedVal_array[0] == "parent") parent.location = selectedVal_array[1];
  else if (selectedVal_array[0] == "blank") window.open(selectedVal_array[1]);
  else void(0);
  
  if (restore) selObj.selectedIndex=0;
}

function goBack(){
//author Dan Stewart
//purpose: differentiate between IE and Netscape to perform a back() function
if (navigator.appName != "Microsoft Internet Explorer"){
window.back();
}
else{
history.back();
} 
}
