function changeLoc()
{
  priMenuNum = document.SelectMenu.SelectPrimary.selectedIndex; 
  url = "../"+document.SelectMenu.SelectPrimary.options[priMenuNum].value+".htm";
  window.location=url;
  return;
}
function changeOcc()
  {
  priMenuNum = document.SelectMenu.SelectPrimary.selectedIndex; 
  secMenuNum = document.SelectMenu.SelectSecondary.selectedIndex;
  s=document.SelectMenu.SelectSecondary.options[secMenuNum].value
  if (s==""){
	alert("No data on file for this occupation.");
	return;
  }
  url = "../"+document.SelectMenu.SelectPrimary.options[priMenuNum].value.substr(0,10)+"/"+document.SelectMenu.SelectSecondary.options[secMenuNum].value+".htm";
  window.location=url;
  return;
}
function findOcc(s)
  {tot = document.SelectMenu.SelectSecondary.options.length;
//   alert(s);  
   for (var i=0; i<tot;i++){
   if (document.SelectMenu.SelectSecondary.options[i].value==s)
      document.SelectMenu.SelectSecondary.options[i].selected=true;};
}
function openwin(newURL)
// Note: To add the menubar and toolbar add the keywords menubar and/or toolbar after scrollbars=yes
   {NewWindow = window.open(newURL, "AreaProfile", "width=640,height=300,resizable=yes,scrollbars=yes");
    NewWindow.focus();
}

