<!--

function initArray() {
 for(i=0;i<initArray.arguments.length; i++)
  this[i] = initArray.arguments[i];
}

var isnMonths=new 
initArray("January","February","March","April","May","June","July","August","September","October","November","December");
var isnDays= new initArray("Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday","Sunday");
today=new Date();

var stnr="";
var ns="0123456789";
var a="";

imag = new Array()
imag[1] = "images/password.gif"
imag[2] = "images/btn-ckt1.gif"
imag[3] = "images/password.gif"
imag[4] = "images/btn-crs1.gif"
imag[5] = "images/password.gif"
imag[6] = "images/btn-crs2.gif"
imag[7] = "images/password.gif"
imag[8] = "images/btn-crs3.gif"
imag[9] = "images/password.gif"
imag[10] = "images/btn-brk1.gif"
imag[11] = "images/password.gif"
imag[12] = "images/btn-skn1.gif"
imag[13] = "images/password.gif"
imag[14] = "images/finney1.gif"
imag[15] = "images/password.gif"
imag[16] = "images/smelley1.gif"
imag[17] = "images/password.gif"
imag[18] = "images/riggs1.gif"
imag[19] = "images/password.gif"
imag[20] = "images/btn-knp1.gif"
imag[21] = "images/password.gif"
imag[22] = "images/btn-knp3.gif"
imag[23] = "images/password.gif"
imag[24] = "images/btn-mck1.gif"
imag[25] = "images/password.gif"
imag[26] = "images/btn-mcd1.gif"
imag[27] = "images/password.gif"
imag[28] = "images/btn-rtg1.gif"
imag[29] = "images/password.gif"
imag[30] = "images/btn-pcd1.gif"
imag[31] = "images/password.gif"
imag[32] = "images/btn-shw1.gif"
imag[33] = "images/password.gif"
imag[34] = "images/btn-tkt1.gif"
imag[35] = "images/password.gif"
imag[36] = "images/btn-mwlk1.gif"
imag[37] = "images/password.gif"
imag[38] = "images/btn-jhal1.gif"
imag[39] = "images/password.gif"
imag[40] = "images/btn-tkt2.gif"
imag[41] = "images/password.gif"
imag[42] = "images/btn-tkt3.gif"
imag[43] = "images/password.gif"
imag[44] = "images/btn-mck2.gif"
imag[45] = "images/password.gif"
imag[46] = "images/btn-mck3.gif"
imag[47] = "images/password.gif"
imag[48] = "images/btn-pst1.gif"
imag[49] = "images/password.gif"
imag[50] = "images/btn-pst2.gif"
imag[51] = "images/password.gif"
imag[52] = "images/btn-fsh1.gif"
imag[53] = "images/password.gif"
imag[54] = "images/btn-lny1.gif"
imag[55] = "images/password.gif"
imag[56] = "images/btn-ser1.gif"
imag[57] = "images/password.gif"
imag[58] = "images/btn-fin2.gif"
imag[59] = "images/password.gif"
imag[60] = "images/btn-prpt1.gif"
imag[61] = "images/password.gif"
imag[62] = "images/btn-rib1.gif"
imag[63] = "images/password.gif"
imag[64] = "images/btn-prpt2.gif"
imag[65] = "images/password.gif"
imag[66] = "images/btn-prpt3.gif"
imag[67] = "images/password.gif"
imag[68] = "images/btn-prpt4.gif"
imag[69] = "images/password.gif"
imag[70] = "images/btn-prpt5.gif"
imag[71] = "images/password.gif"
imag[72] = "images/btn-mcdavd1.gif"
imag[73] = "images/password.gif"
imag[74] = "images/btn-hbt1.gif"
imag[75] = "images/password.gif"
imag[76] = "images/btn-mwilsn1.gif"
imag[77] = "images/password.gif"
imag[78] = "images/btn-dbs1.gif"
imag[79] = "images/password.gif"
imag[80] = "images/btn-wic1.gif"
imag[81] = "images/password.gif"
imag[82] = "images/btn-wrt1.gif"
imag[83] = "images/password.gif"
imag[84] = "images/btn-wht1.gif"
imag[85] = "images/password.gif"
imag[86] = "images/btn-wht2.gif"
imag[87] = "images/password.gif"
imag[88] = "images/btn-wbk1.gif"
imag[89] = "images/password.gif"
imag[90] = "images/btn-wrn1.gif"
imag[91] = "images/password.gif"
imag[92] = "images/btn-gnzn1.gif"
imag[93] = "images/password.gif"
imag[94] = "images/btn-ex.gif"
imag[95] = "images/password.gif"
imag[96] = "images/btn-lind1.gif"
imag[97] = "images/password.gif"
imag[98] = "images/btn-sechad.gif"
imag[99] = "images/password.gif"
imag[100] = "images/btn-undrwd1.gif"
imag[101] = "images/password.gif"
imag[102] = "images/btn-boyd1.gif"
imag[103] = "images/password.gif"
imag[104] = "images/btn-thoms1.gif"
imag[105] = "images/password.gif"
imag[106] = "images/btn-pieper1.gif"
imag[107] = "images/password.gif"
imag[108] = "images/btn-se1.gif"
imag[109] = "images/password.gif"
imag[110] = "images/btn-hatchel.gif"
imag[111] = "images/password.gif"
imag[112] = "images/btn-piarist.gif"
imag[113] = "images/password.gif"
imag[114] = "images/btn-wlr1.gif"
imag[115] = "images/password.gif"
imag[116] = "images/btn-se3h.gif"
function swtch(num,imgname){ imgname.src = im[num].src}

im = new Array()
for (var i = 1; i < imag.length; i++)
{
im[i] = new Image()
im[i].src = imag[i]
}

function goLogInqc()
{
window.open("","height=300,width=375,scrollbars=yes,toolbar=yes,menubar=yes,location=yes,resizable=yes,status=yes");
}

function goLogInpro()
{
window.open("","height=350,width=375,scrollbars=yes,toolbar=yes,menubar=yes,location=yes,resizable=yes,status=yes");
}

function goLogInVeri()
{
window.open("","verisign","scrollbars=yes,toolbar=yes,menubar=yes,location=yes,resizable=yes,status=yes");
}

function goVerisign()
{
window.open("","verisign","scrollbars=yes,toolbar=yes,menubar=yes,location=yes,resizable=yes,status=yes");
}

var capable;
var name = navigator.appName.toLowerCase();
var vers = parseFloat(navigator.appVersion);

if ((name.indexOf("netscape") >= 0 && vers >= 4) || (name.indexOf("microsoft") >= 0 && vers >= 4))
capable = true;
else
capable = false;

// Constants.

var FLDSEP;    // Special characters used as separators in cookie data string.
var IDXSEP;

if (capable) 
{
FLDSEP = String.fromCharCode(1);
IDXSEP = String.fromCharCode(2);
}

// Stores data currently entered on a form as cookies. Always returns true.
//
//   name    - The form name.
//   days    - Number of days to keep the cookies.
//   exclude - A comma-delimited list of field names that should not be
//             stored. Use to exclude sensitive data such as password,
//             credit card numbers, etc.

function storeData(name, days, exclude) 
{

var f;
var expdate;
var list, include;
var i;
var fld;
var data;

if (!capable)
return true;

// Get the named form, skip processing if not found.

if (!(f = document.forms[name]))
return true;

// Initialize the data field.

// Set the expiration date.

if (days == "")
days = 0;
expdate = new Date();
expdate.setTime (expdate.getTime() + (86400 * 1000 * days));

// Build a list of field names for exclusion.

list = new Array();
if (exclude != "") {
i = 0;
while ((i = exclude.indexOf(",")) >= 1) {
list[list.length] = exclude.substr(0, i);
exclude = exclude.substr(i + 1)
}
list[list.length] = exclude;
}

// Run through the fields and add field name/value pairs to the data string.

data = FLDSEP;
for (i = 0; i < f.length; i++) {
fld = f.elements[i];

// Is field in exclusion list?

include = true;
for (j = 0; j < list.length; j++)
if (fld.name == list[j])
include = false;

if (include) {

// Checkboxes and radio buttons.

if ((fld.type == "checkbox" || fld.type == "radio") && fld.checked)
data += setData(fld.name, fld.value);

// Selection lists (single).

if (fld.type == "select-one")
if (fld.selectedIndex >= 0)
data += setData(fld.name, fld.options[fld.selectedIndex].value);

// Selection lists (multiple). Add a unique name/value pair for each selected item.

if (fld.type == "select-multiple")
for (j = 0; j < fld.options.length; j++)
if (fld.options[j].selected)
  data += setData(fld.name + IDXSEP + j, fld.options[j].value);

// Text fields.

if (fld.type == "hidden" || fld.type == "password" || fld.type == "text" || fld.type == "textarea")
data += setData(fld.name, fld.value);
}
}

// Set the cookie.

deleteCookie(name);
setCookie(name, data, expdate);

return true;
}

// Retrieves data from the cookie and sets the values in the corresponding
// form fields. Returns true if data was found, false otherwise.
//
//   name - The form name.

function retrieveData(name) {

var f;
var i, j;
var fld;
var s;
var data;

if (!capable)
return false;

// Get the named form, return if not found.

if (!(f = document.forms[name]))
return false;

// Get the cookie for this form.

data = getCookie(name);
if (data == "")
return false;

// Run through the fields and retrieve the values.

for (i = 0; i < f.elements.length; i++) {
fld = f.elements[i];

// Checkboxes and radio buttons.

if ((fld.type == "checkbox" || fld.type == "radio") && (s = getData(fld.name, data)) != null && fld.value == s)
fld.checked = true;

// Selection lists (single).

if (fld.type == "select-one" && (s = getData(fld.name, data)) != null)
for (j = 0; j < fld.options.length; j++)
if (fld.options[j].value == s)
fld.options[j].selected = true;

// Selection lists (multiple).

if (fld.type == "select-multiple")
for (j = 0; j < fld.options.length; j++)
if ((s = getData(fld.name + IDXSEP + j, data)) != null && fld.options[j].value == s)
fld.options[j].selected = true;

// Text fields.

if ((fld.type == "hidden" || fld.type == "password" || fld.type == "text" || fld.type == "textarea") && (s = getData(fld.name, data)) != null)
fld.value = s;
}

return true;
}
function setData(name, value) {

if (value != "")
return name + "=" + value + FLDSEP;
else
return "";
}

function getData(name, data) {

var i, j;
var s;

if (data == "")
return null;

s = FLDSEP + name + "=";
i = data.indexOf(s);
if (i >= 0) {
i += s.length;
j = data.indexOf(FLDSEP, i);
if (j >= 0)
return data.substr(i, j - i);
}

return null;
}


function setCookie (name, value, expires) {

document.cookie = name + "=" + escape(value) + "; expires=" + expires.toGMTString() +  "; path=/";
}


function getCookie(name) {

var search;

search = name + "="
offset = document.cookie.indexOf(search) 
if (offset != -1) {
offset += search.length ;
end = document.cookie.indexOf(";", offset) ;
if (end == -1)
end = document.cookie.length;
return unescape(document.cookie.substring(offset, end));
}
else
return "";
}

function deleteCookie(name) {

var expdate = new Date();
expdate.setTime(expdate.getTime() - (86400 * 1000 * 1));
setCookie(name, "", expdate);
}

//-- pulls data from the FIRST NAME field and checks it
function checkFname()
{
	var str = document.myForm.fname.value;
// Return false if name field is blank.
	if (str == "")
	{
		alert("\nThe NAME field is blank.\n\nPlease enter your first name.");
		document.myForm.fname.focus();
		return false;
	}
// Return false if data is not alphabetic or a space.
	for (var i = 0; i < str.length; i++)
	{
		var ch = str.substring(i, i + 1);
		if (((ch < "a" || "z" < ch) && (ch < "A" || "Z" < ch)) && ch != ' ')
		{
			alert("\nThe NAME field accepts letters and spaces only.\n\nPlease re-enter your first name");
			document.myForm.fname.select();
			document.myForm.fname.focus();
			return false;
		}
	}
	return true;
}

//-- pulls data from the LAST NAME field and checks it
function checkLname()
{
	var str = document.myForm.lname.value;
// Return false if name field is blank.
	if (str == "")
	{
		alert("\nThe NAME field is blank.\n\nPlease enter your last name.");
		document.myForm.lname.focus();
		return false;
	}
// Return false if data is not alphabetic or a space.
	for (var i = 0; i < str.length; i++)
	{
		var ch = str.substring(i, i + 1);
		if (((ch < "a" || "z" < ch) && (ch < "A" || "Z" < ch)) && ch != ' ')
		{
			alert("\nThe NAME field accepts letters and spaces only.\n\nPlease re-enter your last name");
			document.myForm.lname.select();
			document.myForm.lname.focus();
			return false;
		}
	}
	return true;
}

//-- pulls data from the E-MAIL field and checks it
function checkEmail()
{
	var str = document.myForm.email.value;
	// Return false if E-MAIL field is blank.
	if (str == "")
	{
		alert("\nThe E-MAIL field is blank.\n\nPlease enter your e-mail address.");
		document.myForm.email.focus();
		return false;
	}
	if (document.myForm.email.value.indexOf ('@',0) == -1 || 
	document.myForm.email.value.indexOf ('.',0) == -1)
		{
		alert("\nThe E-MAIL appears to be invalid.\n\nPlease re-enter your e-mail address.")
		document.myForm.email.select();
		document.myForm.email.focus();
		return false;
		}
		else
		{
	return true;
	}
}

//-- pulls data from the PHONE AREA CODE field and checks it
function checkPhoneac()
{
	var str = document.myForm.phoneac.value;
// Return false if PHONE AREA CODE field is blank.
	if (str == "")
	{
		alert("\nThe PHONE NUMBER field is blank.\n\nPlease enter your home phone area code.");
		document.myForm.phoneac.focus();
		return false;
	}
//-- Return false if data is not numeric
	for (var i = 0; i < str.length; i++)
	{
		var ch = str.substring(i, i + 1);
		if ((((((ch < "0" || "9" < ch)) && ch != ' ') && ch != '(') && ch != ')') && ch != '-')
		{
			alert("\nThe PHONE NUMBER field accepts numbers only.\n\nPlease re-enter your home phone area code");
			document.myForm.phoneac.select();
			document.myForm.phoneac.focus();
			return false;
		}
	
	}
	return true;
}

//-- pulls data from the PHONE PREFIX field and checks it
function checkPhonepre()
{
	var str = document.myForm.phonepre.value;
// Return false if PHONE AREA CODE field is blank.
	if (str == "")
	{
		alert("\nThe PHONE NUMBER field is blank.\n\nPlease enter your home phone prefix.");
		document.myForm.phonepre.focus();
		return false;
	}
//-- Return false if data is not numeric
	for (var i = 0; i < str.length; i++)
	{
		var ch = str.substring(i, i + 1);
		if ((((((ch < "0" || "9" < ch)) && ch != ' ') && ch != '(') && ch != ')') && ch != '-')
		{
			alert("\nThe PHONE NUMBER field accepts numbers only.\n\nPlease re-enter your home phone prefix");
			document.myForm.phonepre.select();
			document.myForm.phonepre.focus();
			return false;
		}
	
	}
	return true;
}

//-- pulls data from the PHONE SUFFIX field and checks it
function checkPhonesfx()
{
	var str = document.myForm.phonesfx.value;
// Return false if PHONE AREA CODE field is blank.
	if (str == "")
	{
		alert("\nThe PHONE NUMBER field is blank.\n\nPlease enter your home phone suffix.");
		document.myForm.phonesfx.focus();
		return false;
	}
//-- Return false if data is not numeric
	for (var i = 0; i < str.length; i++)
	{
		var ch = str.substring(i, i + 1);
		if ((((((ch < "0" || "9" < ch)) && ch != ' ') && ch != '(') && ch != ')') && ch != '-')
		{
			alert("\nThe PHONE NUMBER field accepts numbers only.\n\nPlease re-enter your home phone suffix");
			document.myForm.phonesfx.select();
			document.myForm.phonesfx.focus();
			return false;
		}
	
	}
	return true;
}

//-- pulls data from the BUSINESS PHONE AREA CODE field and checks it
function checkBusphoneac()
{
	var str = document.myForm.busphoneac.value;
// Return false if PHONE AREA CODE field is blank.
	if (str == "")
	{
		alert("\nThe PHONE NUMBER field is blank.\n\nPlease enter your business phone area code.");
		document.myForm.busphoneac.focus();
		return false;
	}
//-- Return false if data is not numeric
	for (var i = 0; i < str.length; i++)
	{
		var ch = str.substring(i, i + 1);
		if ((((((ch < "0" || "9" < ch)) && ch != ' ') && ch != '(') && ch != ')') && ch != '-')
		{
			alert("\nThe PHONE NUMBER field accepts numbers only.\n\nPlease re-enter your business phone area code");
			document.myForm.busphoneac.select();
			document.myForm.busphoneac.focus();
			return false;
		}
	
	}
	return true;
}

//-- pulls data from the BUSINESS PHONE PREFIX field and checks it
function checkBusphonepre()
{
	var str = document.myForm.busphonepre.value;
// Return false if PHONE AREA CODE field is blank.
	if (str == "")
	{
		alert("\nThe PHONE NUMBER field is blank.\n\nPlease enter your business phone prefix.");
		document.myForm.busphonepre.focus();
		return false;
	}
//-- Return false if data is not numeric
	for (var i = 0; i < str.length; i++)
	{
		var ch = str.substring(i, i + 1);
		if ((((((ch < "0" || "9" < ch)) && ch != ' ') && ch != '(') && ch != ')') && ch != '-')
		{
			alert("\nThe PHONE NUMBER field accepts numbers only.\n\nPlease re-enter your business phone prefix");
			document.myForm.busphonepre.select();
			document.myForm.busphonepre.focus();
			return false;
		}
	
	}
	return true;
}

//-- pulls data from the BUSINESS PHONE SUFFIX field and checks it
function checkBusphonesfx()
{
	var str = document.myForm.busphonesfx.value;
// Return false if PHONE AREA CODE field is blank.
	if (str == "")
	{
		alert("\nThe PHONE NUMBER field is blank.\n\nPlease enter your business phone suffix.");
		document.myForm.busphonesfx.focus();
		return false;
	}
//-- Return false if data is not numeric
	for (var i = 0; i < str.length; i++)
	{
		var ch = str.substring(i, i + 1);
		if ((((((ch < "0" || "9" < ch)) && ch != ' ') && ch != '(') && ch != ')') && ch != '-')
		{
			alert("\nThe PHONE NUMBER field accepts numbers only.\n\nPlease re-enter your business phone suffix");
			document.myForm.busphonesfx.select();
			document.myForm.busphonesfx.focus();
			return false;
		}
	
	}
	return true;
}

//-- pulls data from the ZIP field and checks it
function checkZip()
{
	var str = document.myForm.zip.value;
// Return false if request ZIP field is blank.
	if (str == "")
	{
		alert("\nThe ZIP CODE field is blank.\n\nPlease enter your zip.");
		document.myForm.zip.focus();
		return false;
	}
	for (var i = 0; i < str.length; i++)
	{
		var ch = str.substring(i, i + 1);
		if (ch < "0" || ch > "9")
		{
			alert("\nThe ZIP CODE field accepts numbers only.\n\nPlease re-enter your zip code");
			document.myForm.zip.select();
			document.myForm.zip.focus();
			return false;
		}
	}
	return true;
}

//-->
