// Java Sripts for use by all pages
// Author: Roy Rodriguez  Updated: 11/25/06
// No code may be used elsewhere without permission
//
var royspopup;

function newWindowGary(){
royspopup=window.open('gary.txt','royspopup',
'width=500,height=50,left=200,top=200,resizable=no,status=no');
{royspopup.focus()} 
     royspopup.document.bgColor="lightyellow"
}

function newWindowINEH(){
royspopup=window.open('required.html','royspopup',
'width=620,height=380,left=200,top=200,resizable=no,status=no');
}

function CloseThis(){
	window.close()
}

var newWindow; heightval; widthval; dimensions; filename;

function subWindow() {
    var heightval = arguments[1];
    var widthval = arguments[2];
    var filename = arguments[3];
    var dimensions = "directory=1,height="+heightval+",width="+widthval+
                     ",'left=130,top=180,resizable=0,statusbar=0,hotkeys=0,menubar=0,scrollbars=0,status=0,toolbar=0'";
    newWindow = window.open(filename,arguments[0],dimensions);
	{newWindow.focus()}
    newWindow.document.bgColor="lightyellow"
 }
 
 function newWindowglogerm() {
   newWindow = window.open('glogerms.html','newWindow','dirctory=1,width=620,height=555,left=250,top=200,resizable=0,statusbar=0,hotkeys=0,menubar=0,scrollbars=0,status=0,toolbar=0');
	{newWindow.focus()}
 }
 
  function newWindowSandInfo() {
   newWindow = window.open('sandinfo.html','newWindow','dirctory=1,width=600,height=370,left=250,top=200,resizable=0,statusbar=0,hotkeys=0,menubar=0,scrollbars=0,status=0,toolbar=0');
	{newWindow.focus()}
 }
 
  function Form1_Validator(theForm)  {
  if (theForm.eop_Sandcastles_class.value == "")
  {
    alert("Please Select a Class for the \"SELECT CLASS\" field.");
    theForm.eop_Sandcastles_class.focus();
    return (false);
  }
  if (theForm.FirstName.value == "")
  {
    alert("Please enter a value for the \"FIRST NAME\" field.");
    theForm.FirstName.focus();
    return (false);
  }
  if (theForm.LastName.value == "")
  {
    alert("Please enter a value for the \"LAST NAME\" field.");
    theForm.LastName.focus();
    return (false);
  }
  if (theForm.textadd_Case_Number.value == "")
  {
    alert("Please the Child's Age in the \"AGE\" field.");
    theForm.textadd_Case_Number.focus();
    return (false);
  }
  if (theForm.eop_County.value == "")
  {
    alert("Please Select a County for the \"COUNTY\" field.");
    theForm.eop_County.focus();
    return (false);
  }
  if (theForm.textadd_Email_0.value == "")
  {
    alert("Please enter a value for the \"EMAIL ADDRESS\" field.");
    theForm.textadd_Email_0.focus();
    return (false);
  }
  if (theForm.textadd_DayPhone_0.value == "")
  {
    alert("Please enter a Phone # for the \"DAYTIME PHONE\" field.");
    theForm.textadd_DayPhone_0.focus();
    return (false);
  }
  if (theForm.textadd_OtherPhone_0.value == "")
  {
    alert("Please enter a Phone # for the \"OTHER PHONE\" field.");
    theForm.textadd_OtherPhone_0.focus();
    return (false);
  }

  return (true);
}