// for JS > 1.1 browswers
//mostly event handler functions to swap images and current image of the page
//for naviagtion elements
var curName='';
var curLocation='';
function swap(iName,iLocation){
bVer = parseInt(navigator.appVersion); if (bVer<4)return(true);
    if(document.images){
    if(iName!=curName)document.images[iName].src=iLocation;
    else document.images[iName].src=curLocation;
    }
    return(true);
}
function set(iName,iLocation){//Set image for "this" page - never change thereafter
    swap(iName,iLocation);
    curName=iName;
    curLocation=iLocation;
    return(true);
}
var partner_window;
function changeIn(iWords) { //description for inner text of table cell

document.all.dec.innertext=iWords;
}
function popUp(URL) {
day = new Date();
id = day.getTime();
eval("page" + id + " = window.open(URL, '" + id + "', 'toolbar=0,scrollbars=0,location=0,statusbar=0,menubar=0,resizable=0,width=600,height=400,left = 50,top = 50');");
}
function validate() {
mNv=document.mainform.name.value;
//mNv=mainform.first.value;
//mNv=mainform.question.value;
//mNv=mainform.email.value;
if (document.mainform.first.value=='') {
alert('The name field is a required field. Please fill it in and resubmit.');
document.mainform.required-name.focus();
event.returnValue=false;
}
if (document.mainform.email.value=='') {
alert('The email field is a required field. Please fill it in and resubmit.');
document.mainform.email.focus();
event.returnValue=false;
}
if (document.mainform.question.value=='') {
alert('The question field is a required field. Please fill it in and resubmit.');
document.mainform.email.focus();
event.returnValue=false;
}
if(document.mainform.email.value.indexOf("MIME-Version") != -1) {
	alert("For security reasons we do not allow MIME to be submitted with text");
	document.mainform.email.focus();
	document.mainform.email.select();
	event.returnValue=false;
}
if(document.mainform.email.value.indexOf("Content-Type: multipart/mixed") != -1) {
	alert("For security reasons we do not allow MIME to be submitted with text");
	document.mainform.email.focus();
	document.mainform.email.select();
	event.returnValue=false;
}
if(document.mainform.email.value.indexOf("basket-wares") != -1) {
	alert("For security reasons we do not allow @basket-wares.com as an email address");
	document.mainform.email.focus();
	document.mainform.email.select();
	event.returnValue=false;
}
if(document.mainform.email.value.indexOf("Basket-Wares") != -1) {
	alert("For security reasons we do not allow @basket-wares.com as an email address");
	document.mainform.email.focus();
	document.mainform.email.select();
	event.returnValue=false;
}
if(document.mainform.email.value.indexOf("bitsandbridles") != -1) {
	alert("For security reasons we do not allow @bitsandbridles.com as an email address");
	document.mainform.email.focus();
	document.mainform.email.select();
	event.returnValue=false;
}
if(document.mainform.email.value.indexOf("bbmediaservices") != -1) {
	alert("For security reasons we do not allow @bbmediaservices.com as an email address");
	document.mainform.email.focus();
	document.mainform.email.select();
	event.returnValue=false;
}
if(document.mainform.question.value.indexOf("polowrap") != -1) {
	alert("For security reasons we do not allow @polowrap.com as an email address");
	document.mainform.question.focus();
	document.mainform.question.select();
	event.returnValue=false;
}
if(document.mainform.question.value.indexOf("Polowrap") != -1) {
	alert("For security reasons we do not allow @polowrap.com as an email address");
	document.mainform.question.focus();
	document.mainform.question.select();
	event.returnValue=false;
}
if(document.mainform.question.value.indexOf("bitsandbridles") != -1) {
	alert("For security reasons we do not allow @bitsandbridles.com as an email address");
	document.mainform.question.focus();
	document.mainform.question.select();
	event.returnValue=false;
}
if(document.mainform.question.value.indexOf("bbmediaservices") != -1) {
	alert("For security reasons we do not allow @bbmediaservices.com as an email address");
	document.mainform.question.focus();
	document.mainform.question.select();
	event.returnValue=false;
}
if(document.mainform.question.value.indexOf("MIME-Version") != -1) {
	alert("For security reasons we do not allow MIME to be submitted with text");
	document.mainform.question.focus();
	document.mainform.question.select();
	event.returnValue=false;
}
if(document.mainform.question.value.indexOf("Content-Type: multipart/mixed") != -1) {
	alert("For security reasons we do not allow MIME to be submitted with text");
	document.mainform.question.focus();
	document.mainform.question.select();
	event.returnValue=false;
}
}