// open a new window
function  openwin(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);

}
// jump to a menu
function jumpmenu(targ,selObj,restore){ //v3.0
  eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");
//  if (restore) selObj.selectedIndex=0;
}
// redirect to the specified URL
function redirect(theURL) {
  window.location.replace = theURL;

}
// check options
function check()
{
var x=document.forms.myForm
 for (var i=0; i <= document.forms.myForm.elements.length-1;i++) {
   if(document.myForm.elements[i].value=="0") {
      x[i].checked=1
   }
   if(document.myForm.elements[i].value=="1") {
      x[i].checked=1
   }

 }
}
// uncheck options
function uncheck()
{
var x=document.forms.myForm
 for (var i=0; i <= document.forms.myForm.elements.length-1;i++) {
   if(document.myForm.elements[i].value=="1") {
      x[i].checked=0
   }
   if(document.myForm.elements[i].value=="0") {
      x[i].checked=0
   }
 }
}





