/*
*/



	///////////////////////////////////////
	// Frame Buster
	///////////////////////////////////////

if (window != window.top)
  top.location.href = location.href;


	///////////////////////////////////////
	// Row-Over Effect
	///////////////////////////////////////

	function mouseOverWhite(i) {
		i.style.backgroundColor='#F2F2F2';
	}
	function mouseOutWhite(i) {
		i.style.backgroundColor='#FFFFFF';
	}
	
	function mouseOverGray(i) {
		i.style.backgroundColor='#F2F2F2';
	}
	function mouseOutGray(i) {
		i.style.backgroundColor='#F2F2F2';
	}
	


	///////////////////////////////////////
	// On-Click-Pop-Center
	///////////////////////////////////////
	// Requires "onClick="NewWindow(this.href,'title','400','300','no');return false;"" in the A HREF tag
	// Example: <a href="doc.html" onClick="NewWindow(this.href,'title','400','300','no');return false;">LINK</a>

function NewWindow(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=yes'
win = window.open(mypage, myname, winprops)
if (parseInt(navigator.appVersion) >= 4) { win.window.focus(); }
}




	///////////////////////////////////////
	// Auto-Select Field
	///////////////////////////////////////
	// Requires "onLoad=ready()" in the BODY tag
	// Example: <body onLoad=ready()>
	// Requires form name to match where it reads "form" in script
	// Example: <form name="form">
	// Requires form field name to match where it reads "field" in script
	// Example: <input name="field">

function ready(){document.form.field.focus();}


	///////////////////////////////////////
	// Form Validation
	///////////////////////////////////////


function validateSubUnsub(form) {
	return (
				 checkSelect(form.elements["email"],"V","","Please enter Your E-mail.",false) &&
				 checkEmail(form.elements["email"],false) &&
				 checkSelect(form.elements["email"],"V","joe@example.com","Please supply valid E-mail Address.",false));
}

function validateEmailme(form) {
	return (
				 checkSelect(form.elements["recipient"],"V","","Please enter the Recipient's Name.",false) &&
				 checkSelect(form.elements["to"],"V","","Please enter the Recipient's E-mail.",false) &&
				 checkEmail(form.elements["to"],false) &&
				 checkSelect(form.elements["to"],"V","joe@example.com","Please supply valid E-mail Address.",false) &&
				 checkSelect(form.elements["comments"],"V","","Please enter the Message to Recipient.",false) &&
				 checkSelect(form.elements["sender"],"V","","Please enter Your Name.",false) &&
				 checkSelect(form.elements["from"],"V","","Please enter Your E-mail.",false) &&
				 checkEmail(form.elements["from"],false) &&
				 checkSelect(form.elements["from"],"V","joe@example.com","Please supply valid E-mail Address.",false));
}

function validateQuote(form) {
	return (
				 checkSelect(form.elements["companyname"],"V","","Please enter your Company Name.",false) &&
				 checkSelect(form.elements["companyname"],"V","Company Name","Please enter a valid Company Name. If you are an individual, please enter Individual for the Company Name.",false) &&
				 checkSelect(form.elements["firstname"],"V","","Please enter your First Name.",false) &&
				 checkSelect(form.elements["firstname"],"V","First Name","Please enter your real First Name.",false) &&
				 checkSelect(form.elements["lastname"],"V","","Please enter your Last Name.",false) &&
				 checkSelect(form.elements["lastname"],"V","First Name","Please enter your real Last Name.",false) &&
				 checkSelect(form.elements["email"],"V","","Please enter your E-mail.",false) &&
				 checkEmail(form.elements["email"],false) &&
				 checkSelect(form.elements["email"],"V","joe@example.com","Please supply a valid E-mail Address.",false) &&
				 checkUSPhone(form.elements["phone"],false) &&
				 checkSelect(form.elements["interest"],"V","","Please select your Primary Interest.",false) &&
				 checkSelect(form.elements["project"],"V","","Please provide a Project Description.",false));
}

function validateComment(form) {
	return (
				 checkSelect(form.elements["firstname"],"V","","Please enter your First Name.",false) &&
				 checkSelect(form.elements["firstname"],"V","First Name","Please enter your real First Name.",false) &&
				 checkSelect(form.elements["lastname"],"V","","Please enter your Last Name.",false) &&
				 checkSelect(form.elements["lastname"],"V","First Name","Please enter your real Last Name.",false) &&
				 checkSelect(form.elements["email"],"V","","Please enter your E-mail.",false) &&
				 checkEmail(form.elements["email"],false) &&
				 checkSelect(form.elements["email"],"V","joe@example.com","Please supply a valid E-mail Address.",false) &&
				 checkSelect(form.elements["questions"],"V","","Please provide some information in the Questions/Comments field. No sense in submitting this form without anything here.",false));
}

function validateDemo(form) {
	return (
				 checkSelect(form.elements["company"],"V","","Please enter your Company or Agency name. If you are not representing a company, please enter Independent in the field.",false) &&
				 checkSelect(form.elements["firstname"],"V","","Please enter your First Name.",false) &&
				 checkSelect(form.elements["firstname"],"V","First Name","Please enter your real First Name.",false) &&
				 checkSelect(form.elements["lastname"],"V","","Please enter your Last Name.",false) &&
				 checkSelect(form.elements["lastname"],"V","First Name","Please enter your real Last Name.",false) &&
				 checkSelect(form.elements["email"],"V","","Please enter your E-mail.",false) &&
				 checkEmail(form.elements["email"],false) &&
				 checkSelect(form.elements["email"],"V","joe@example.com","Please supply a valid E-mail Address.",false) &&
				 checkUSPhone(form.elements["phone"],false) &&
				 checkSelect(form.elements["interest"],"V","","Please select the Site Reign product in which you are interested.",false));
}

function validatePress(form) {
	return (
				 checkSelect(form.elements["companyname"],"V","","Please enter your Company Name.",false) &&
				 checkSelect(form.elements["companyname"],"V","Company Name","Please enter a valid Company Name. If you are an independent news source, please enter Independent for the Company Name.",false) &&
				 checkSelect(form.elements["mediatype"],"V","","Please select the Media Type that best matches your company's primary media focus.",false) &&
				 checkSelect(form.elements["firstname"],"V","","Please enter your First Name.",false) &&
				 checkSelect(form.elements["firstname"],"V","First Name","Please enter your real First Name.",false) &&
				 checkSelect(form.elements["lastname"],"V","","Please enter your Last Name.",false) &&
				 checkSelect(form.elements["lastname"],"V","First Name","Please enter your real Last Name.",false) &&
				 checkSelect(form.elements["email"],"V","","Please enter your E-mail.",false) &&
				 checkEmail(form.elements["email"],false) &&
				 checkSelect(form.elements["email"],"V","joe@example.com","Please supply a valid E-mail Address.",false) &&
				 checkUSPhone(form.elements["phone"],false) &&
				 checkSelect(form.elements["questions"],"V","","Please provide some information in the Questions/Request field. No sense in submitting this form without anything here.",false));
}

function validateReference(form) {
	return (
				 checkSelect(form.elements["companyname"],"V","","Please enter your Company Name.",false) &&
				 checkSelect(form.elements["companyname"],"V","Company Name","Please enter a valid Company Name. If you are an individual, please enter Individual for the Company Name.",false) &&
				 checkSelect(form.elements["firstname"],"V","","Please enter your First Name.",false) &&
				 checkSelect(form.elements["firstname"],"V","First Name","Please enter your real First Name.",false) &&
				 checkSelect(form.elements["lastname"],"V","","Please enter your Last Name.",false) &&
				 checkSelect(form.elements["lastname"],"V","First Name","Please enter your real Last Name.",false) &&
				 checkSelect(form.elements["email"],"V","","Please enter your E-mail.",false) &&
				 checkEmail(form.elements["email"],false) &&
				 checkSelect(form.elements["email"],"V","joe@example.com","Please supply a valid E-mail Address.",false) &&
				 checkUSPhone(form.elements["phone"],false) &&
				 checkSelect(form.elements["found"],"V","","Please tell us How You Found Us by selecting an answer from the drop-down menu.",false));
}