<!--

function launch(url) {
  self.name = "opener";
  remote = open(url, "remote", "'toolbar=0,scrollbars=0,location=0,statusbar=0,menubar=0,resizable=0,width=144,height=113,left=431,top=98");
}

function dosubmit(var1) {
alert("here");
document.frmMain.age.value = 9;
alert(document.frmMain.age.value);
alert(var1);
 document.frmMain.submit();
}

function jumpMenu(targ,selObj,restore){
   svalue =selObj.options[selObj.selectedIndex].value;
   getcontent('age='+svalue);
}

function getcontent(var1) {
   var lhs;
   var rhs;
   lhs = var1.substr(0,var1.indexOf("="));
   rhs = var1.substr(var1.indexOf("=")+1,var1.length - var1.indexOf("="));

   if (lhs == "cat") {
      document.frmMain.cat.value = rhs;
      document.frmMain.id.value = "";
      document.frmMain.res_id.value = "";
   }
   if (lhs == "age") {document.frmMain.id.value = "";}
   if (lhs == "id")  {
      document.frmMain.id.value = rhs;
      document.frmMain.res_id.value = "";
      }

   if (lhs == "res_id")  {
//      document.frmMain.id.value = "";
      document.frmMain.res_id.value = rhs;
   }
   document.frmMain.submit();
}

function glossary(var1) {
   var gloss_win_features;
   winLeft=screen.width/2;       // Open at the center of the screen
   winTop=screen.height/2;
   gloss_win_features = 'toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=no,width=300,height=300,left='+winLeft+',top='+winTop;
   window.open('/glossary/glossary.php?term='+var1,'Glossary',gloss_win_features);
//   if (var1=="sanskrit") window.open('sanskrit.html','Glossary',gloss_win_features);
//   if (var1=="Navajo") window.open('Navajo.html','Glossary',gloss_win_features);
}

function new_win(loc,wintitle) {
   var new_win_features;
   winLeft=screen.width/3;       // Open at the center of the screen
   winTop=screen.height/3;
   winWidth=2 * winLeft - 10;
   winHeight=2 * winTop - 85;
   new_win_features = 'toolbar=no,location=yes,directories=no,status=no,menubar=no,scrollbars=yes,resizable=no,width='+winWidth+',height='+winHeight+',left='+winLeft+',top='+winTop;
   window.open(loc,'',new_win_features);
}

function print_win(loc,wintitle) {
   var new_win_features;
   winLeft=0;                       // Open at the top left of the screen
   winTop=0;
   winWidth=750;
   winHeight=2 * screen.height/3 - 85;
   new_win_features = 'toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=no,width='+winWidth+',height='+winHeight+',left='+winLeft+',top='+winTop;
   window.open(loc,'',new_win_features);
}

function popUp(evt,currElem) {
   if ((isNS4 && currElem != 0) || (isIE4 && currElem != 0)) {
//      dom = eval(docObj + '.' + currElem + styleObj);
//      state = dom.visibility;
//      if (state == "visible" || state == "show")
//         {dom.visibility = "hidden";}
//      else {						// get mouse(x,y), then offset a little
//         if (isNS4) {
//            topVal = eval(evt.pageY + 2);
//            leftVal = eval(evt.pageX -125);
//         }
//         if (isIE4) {
//            topVal = eval(event.y + 2);
//            leftVal = eval(event.x - 125);
//         }
//         if(leftVal < 2) {leftVal = 2;}
//         dom.top = topVal;
//         dom.left = leftVal;
//         dom.visibility = "visible";
//      }
   }
}

function cw_goto(newloc, def_age) {
   document.form1.age.selectedIndex = def_age;
   MM_jumpMenu('parent',document.form1.age,0);
}
//-->


