// JavaScript Document
function FrontPage_Form1_Validator(theForm)
{

  if (theForm.Month.selectedIndex == 0)
  {
    alert("The first \"Month\" option is not a valid selection.  Please choose one of the other options.");
    theForm.Month.focus();
    return (false);
  }

  if (theForm.Day.selectedIndex == 0)
  {
    alert("The first \"Day\" option is not a valid selection.  Please choose one of the other options.");
    theForm.Day.focus();
    return (false);
  }

  if (theForm.Month.selectedIndex == 0)
  {
    alert("The first \"Month\" option is not a valid selection.  Please choose one of the other options.");
    theForm.Month.focus();
    return (false);
  }

  if (theForm.Year.selectedIndex == 0)
  {
    alert("The first \"Year\" option is not a valid selection.  Please choose one of the other options.");
    theForm.Year.focus();
    return (false);
  }

  if (theForm.Password.value == "")
  {
    alert("Please enter a value for the \"Password\" field.");
    theForm.Password.focus();
    return (false);
  }

  if (theForm.Password.value.length < 2)
  {
    alert("Please enter at least 2 characters in the \"Password\" field.");
    theForm.Password.focus();
    return (false);
  }

  if (theForm.Password.value.length > 10)
  {
    alert("Please enter at most 10 characters in the \"Password\" field.");
    theForm.Password.focus();
    return (false);
  }
  return (true);
}


function getDocHeight() {
    var D = document;
    return Math.max(
        Math.max(D.body.scrollHeight, D.documentElement.scrollHeight),
        Math.max(D.body.offsetHeight, D.documentElement.offsetHeight),
        Math.max(D.body.clientHeight, D.documentElement.clientHeight)
    );
}

function resizePage() {
	MasterHeight=getDocHeight();
	MasterHeight=MasterHeight-192;
	document.getElementById('Content').style.height=MasterHeight+'px';
}