globalFlashFlag=1;

<!--
function cOn(td){
if(document.getElementById||(document.all && !(document.getElementById))){
td.style.backgroundColor="#E0F0FF";
}
}

function cOut(td){
if(document.getElementById||(document.all && !(document.getElementById))){
td.style.backgroundColor="#E7E6E6";
}
}

function cOn1(td){
if(document.getElementById||(document.all && !(document.getElementById))){
td.style.backgroundColor="#E7E6E6";
}
}

function cOut1(td){
if(document.getElementById||(document.all && !(document.getElementById))){
td.style.backgroundColor="#FFFFFF";
}
}

function cOn2(td){
if(document.getElementById||(document.all && !(document.getElementById))){
td.style.backgroundColor="#E0F0FF";
}
}

function cOut2(td){
if(document.getElementById||(document.all && !(document.getElementById))){
td.style.backgroundColor="#FFFFFF";
}
}
//-->

//mouseover script
<!--
function MM_swapImgRestore() { //v3.0
  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}

function MM_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}

function MM_findObj(n, d) { //v3.0
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document); return x;
}

function MM_swapImage() { //v3.0
  var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
   if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}
//-->


// dropnav
browser = navigator.appName;
ie = "Microsoft Internet Explorer";
netscape = "Netscape";

//Declaring variables for setting and manipulating navigation
var navActive   //Name of active navigation
var timerID     //Timer variable

//Creating a custom object called nav with the methods "name" and "menuExist"
function nav(name) {
this.name = name;
}

//Array of all navigation objects with variables "name" and "menuExist"
//var linkcount
//linkcount = parseInt(document.links[linkcount].innerHTML);

navItem = new Array()
for (i=0;i<7;i++) {
navItem[i] = new nav('drop'+(i+1));
}
//navItem[0] = new nav('drop1');
//navItem[1] = new nav('drop2');
//navItem[2] = new nav('drop3');
//navItem[3] = new nav('drop4');

//Simple function to turn on a <DIV>
function showMenu(navInput) {
if (globalFlashFlag==1)
{
	if (browser == netscape) {
	document.layers['M' + navInput].visibility = 'show';
	}
	else if (browser == ie) {
	document.all['M' + navInput].style.visibility = 'visible';
	}
}
}

//Simple function to turn off a <DIV>
function hideMenu(navInput) {
if (browser == netscape) {
document.layers['M' + navInput].visibility = 'hide';
}
else if (browser == ie) {
document.all['M' + navInput].style.visibility = 'hidden';
}
}

function activateMenu(navInput) {
stopTimer()
for (i = 0; i < navItem.length; i++) {
if (navItem[i].name == navInput) {
  showMenu(navItem[i].name);
}
else {
  hideMenu(navItem[i].name);
}
}
}

function setTimer(navInput) {
for (i = 0; i < navItem.length; i++) {
if (navItem[i].name == navInput) {
  navActive = navItem[i].name;
  timerID = setTimeout('hideMenu(navActive)', 100);
}
}
}

function stopTimer() {
clearTimeout(timerID);
}
//-->

//show and hide layer script


<!--
function MM_showHideLayers() { //v3.0
  var i,p,v,obj,args=MM_showHideLayers.arguments;
  for (i=0; i<(args.length-2); i+=3) if ((obj=MM_findObj(args[i]))!=null) { v=args[i+2];
    if (obj.style) { obj=obj.style; v=(v=='show')?'visible':(v='hide')?'hidden':v; }
    obj.visibility=v; }
}
//-->

function popWindow(path,name,restinfo)
{
	popWin = window.open(path,name,restinfo);
}

//HIDE FLASH MENU
function setTimerFlash() {
  //globalFlashFlag=0;
  flashTimerID = setTimeout('hideFlash()', 14000);
}

function hideFlash() {
	if (browser == netscape) {
	document.layers["divWelcomeFlash"].visibility = 'hide';
	}
	else if (browser == ie) {
	document.all["divWelcomeFlash"].style.visibility = 'hidden';
	}
	globalFlashFlag=1;
}

function OpenPageFromPop(path){
	opener.location.href=path;
	window.close();
}

//popup script
<!-- Begin
function NewWindow1(mypage, myname, w, h, scroll) {
var winl = (screen.width - w) / 2;
var wint = (screen.height - h) / 2;
winprops = 'height='+h+',width='+w+',top='+wint+',left='+winl+',scrollbars='+scroll+',resizable'
win = window.open(mypage, myname, winprops)
if (parseInt(navigator.appVersion) >= 4) { win.window.focus(); }
}
//  End -->


//PHONE NUMBER VALIDATION**********************************************************
// VARIABLE DECLARATIONS

var digits = "0123456789";
// non-digit characters which are allowed in phone numbers
var phoneNumberDelimiters = "()- ";
// characters which are allowed in US phone numbers
var validUSPhoneChars = digits + phoneNumberDelimiters;
// U.S. phone numbers have 10 digits.
// They are formatted as 123 456 7890 or (123) 456-7890.
var digitsInUSPhoneNumber = 10;
var sPhone = "Phone Number"
var iUSPhone = "This field must be a 10 digit U.S. phone number (like 415 555 1212). Please reenter it now."
var pUSPhone = "10 digit U.S. phone number (like 415 555 1212)."
var defaultEmptyOK = false

// Check whether string s is empty.
function isEmpty(s)
{   
return ((s == null) || (s.length == 0))
}

function isDigit (c)
{   return ((c >= "0") && (c <= "9"))
}

function isInteger (s)
{   

	var i;

    if (isEmpty(s))
	{ 
       if (isInteger.arguments.length == 1) return defaultEmptyOK;
       else return (isInteger.arguments[1] == true);
	}
    // Search through string's characters one by one
    // until we find a non-numeric character.
    // When we do, return false; if we don't, return true.
    for (i = 0; i < s.length; i++)
    {   
        // Check that current character is number.
        var c = s.charAt(i);

        if (!isDigit(c)) return false;
    }

    // All characters are numbers.
    return true;
}


// Removes all characters which appear in string bag from string s.
function stripCharsInBag (s, bag)

{   var i;
    var returnString = "";

    // Search through string's characters one by one.
    // If character is not in bag, append to returnString.

    for (i = 0; i < s.length; i++)
    {   
        // Check that current character isn't whitespace.
        var c = s.charAt(i);
        if (bag.indexOf(c) == -1) returnString += c;
    }

    return returnString;
}


// Notify user that contents of field theField are invalid.
// String s describes expected contents of theField.value.
// Put select theField, pu focus in it, and return false.
function warnInvalid (theField, s)
{   theField.focus()
    theField.select()
    alert(s)
    return false
}

function reformat (s)
{   var arg;
    var sPos = 0;
    var resultString = "";

    for (var i = 1; i < reformat.arguments.length; i++) {
       arg = reformat.arguments[i];
       if (i % 2 == 1) resultString += arg;
       else {
           resultString += s.substring(sPos, sPos + arg);
           sPos += arg;
       }
    }
    return resultString;
}


// isUSPhoneNumber (STRING s [, BOOLEAN emptyOK])
// 
// isUSPhoneNumber returns true if string s is a valid U.S. Phone
// Number.  Must be 10 digits.
//
// NOTE: Strip out any delimiters (spaces, hyphens, parentheses, etc.)
// from string s before calling this function.
//
// For explanation of optional argument emptyOK,
// see comments of function isInteger.
function isUSPhoneNumber (s)
{   
	if (isEmpty(s))
	{
	  	if (isUSPhoneNumber.arguments.length == 1) 
			return defaultEmptyOK;
		else 
			return (isUSPhoneNumber.arguments[1] == true);
	}
	return (isInteger(s) && s.length == digitsInUSPhoneNumber)
}


// takes USPhone, a string of 10 digits
// and reformats as (123) 456-789
function reformatUSPhone (USPhone)
{   return (reformat (USPhone, "(", 3, ") ", 3, "-", 4))
}

// checkUSPhone (TEXTFIELD theField [, BOOLEAN emptyOK==false])
//
// Check that string theField.value is a valid US Phone.
//
// For explanation of optional argument emptyOK,
// see comments of function isInteger.

function checkUSPhone (theField, emptyOK)
{   
	if (checkUSPhone.arguments.length == 1) emptyOK = defaultEmptyOK;
    if ((emptyOK == true) && (isEmpty(theField.value))) return true;
    else
    {  
		var normalizedPhone = stripCharsInBag(theField.value, phoneNumberDelimiters)
		if (normalizedPhone.length>10)
	   	{
	   		normalizedPhoneNum=normalizedPhone.substring(0,10);
			normalizedPhoneExt=normalizedPhone.substring(10,normalizedPhone.length);
			if (!isUSPhoneNumber(normalizedPhoneNum, false))
			{ 
	          	return warnInvalid (theField, iUSPhone);
			}
	       	else 
	       	{  // if you don't want to reformat as (123) 456-789, comment next line out
	          	
				formattedPhone = reformatUSPhone(normalizedPhoneNum);
				formattedPhone = formattedPhone+" "+normalizedPhoneExt;
				theField.value = formattedPhone;
	          	return true;
	       	}
	   	}
		else
		{
		   	if (!isUSPhoneNumber(normalizedPhone, false)) 
	          	return warnInvalid (theField, iUSPhone);
	       	else 
	       	{  // if you don't want to reformat as (123) 456-789, comment next line out
				theField.value = reformatUSPhone(normalizedPhone)
	          	return true;
	       	}
		}
    }
}

//END PHONE NUMBER VALIDATION**********************************************************