function jump(where)
{
  window.location=where;
}

function prompt_goto(where,message)
{
  if (confirm(message))
  {
    window.location=where;
  }
}

function open_new_window(theURL, winName, features)
{
  window.open(theURL, winName, features);
}

function validate_name_there(theForm)
{
  if (theForm.fprojname.value == "")
  {
    alert("Please enter the name of the team you wish to add.");
    theForm.fprojname.focus();
    return (false);
  }
}

function validate_formail(theForm)
{
  if (theForm.teamname.value == "")
  {
    alert("Please enter a DC Vault project name.");
    theForm.teamname.focus();
    return (false);
  }
  if (theForm.email.value == "")
  {
    alert("Please enter a contact email address.");
    theForm.email.focus();
    return (false);
  }
}

function validate_new_cat(theForm)
{
  if (theForm.foldcat.value == theForm.fnewcat.value)
  {
    alert("You cannot select the old category when changing categories.");
    theForm.fnewcat.focus();
    return (false);
  }
  if (theForm.fnewcat.value != "1" && theForm.fnewcat.value != "2" && theForm.fnewcat.value != "3" && theForm.fnewcat.value != "4")
  {
    alert("Please select a valid category.");
    theForm.fnewcat.focus();
    return (false);
  }
}

