<!--

if (document.images) {
  image1on = new Image();
  image1on.src = "images/product2.gif";

  image2on = new Image();
  image2on.src = "images/playplan2.gif";

  image3on = new Image();
  image3on.src = "images/aboutpw2.gif";

  image4on = new Image();
  image4on.src = "images/catreq2.gif";

  image5on = new Image();
  image5on.src = "images/locaterep2.gif";

  image6on = new Image();
  image6on.src = "images/sitemap2.gif";

  image7on = new Image();
  image7on.src = "images/contactus2.gif";

  image8on = new Image();
  image8on.src = "images/home2.gif";

  image1off = new Image();
  image1off.src = "images/product1.gif";

  image2off = new Image();
  image2off.src = "images/playplan1.gif";

  image3off = new Image();
  image3off.src = "images/aboutpw1.gif";

  image4off = new Image();
  image4off.src = "images/catreq1.gif";

  image5off = new Image();
  image5off.src = "images/locaterep1.gif";

  image6off = new Image();
  image6off.src = "images/sitemap1.gif";

  image7off = new Image();
  image7off.src = "images/contactus1.gif";

  image8off = new Image();
  image8off.src = "images/home1.gif";

}

function changeImages() {
  if (document.images) {
    for (var i=0; i<changeImages.arguments.length; i+=2) {
      document[changeImages.arguments[i]].src = eval(changeImages.arguments[i+1] + ".src");
    }
  }
}

function validate()
{
x=document.form1
email2=x.email2.value.indexOf("@")

submitOK="True"

if (email2 == -1)
 {
  alert("Must provide a valid e-mail!")
  submitOK="False"
 }
if (submitOK=="False")
 {
 return false
 }
else if(submitOK=="True")
 {
 alert("Your e-mail has been sent!")
 }
}
function validateCatalog()
{
x=document.CatalogForm
name=x.name.value
organization=x.organization.value
address=x.address.value
city=x.city.value
state=x.state.value
zip=x.zip.value
country=x.country.value
phone=x.phone.value
emailaddress=x.emailaddress.value.indexOf("@")

submitOK="True"

if (name.length < 1)
 {
  alert("Must provide a name!")
  submitOK="False"
 }
if (organization.length < 1)
 {
  alert("Must provide a organization!")
  submitOK="False"
 }
if (address.length < 1)
{
alert("Must provide a address!")
submitOK="False"
}
if (city.length < 1)
{
alert("Must provide a city!")
submitOK="False"
}
if (state.length < 1)
{
alert("Must provide a state!")
submitOK="False"
}
if (zip.length < 1)
{
alert("Must provide a zip!")
submitOK="False"
}
if (country.length < 1)
{
alert("Must provide a country!")
submitOK="False"
}
if (phone.length < 1)
{
alert("Must provide a phone!")
submitOK="False"
}
if (emailaddress == -1)
 {
  alert("Must provide a valid e-mail!")
  submitOK="False"
 }
if (submitOK=="False")
 {
 return false
 }
else if(submitOK=="True")
 {
 alert("Thank you for requesting a catalog!")
 }
}

function checkRadioControl(strFieldName){
	 strFieldName = eval("document.CatalogForm." + strFieldName);
     bolSelected = false;
     for (i=0;i<strFieldName.length;i++){
	     if(strFieldName[i].checked){
	          bolSelected = true;
	     break;
	     }
	 }     
     if(!bolSelected){
          return false;
          }
     return true;
	
	}
	
function sfCheck(form) {
	var e, title, empty_fields;
	var msg, upperLine, lowerLine;
	var num, mserrStr, eMail, invalid_eMail;
	var strReturn, eMail_Mismatch, Not_Agree;
		
	msg = "";
	empty_fields = "";
	strReturn = true;
	num = form.length;

	for (var i = 0; i < form.length; i++) {
		e = form.elements[i]
		
		if ((e.title == null)||(e.title == "")) {
			title = e.name;
		}
		else {
			title = e.title;
		}
		
		if (((e.type == "text") || (e.type == "textarea") || (e.type == "password"))  && !e.special && !e.disabled) {
			strTrim = e.value;
			strTrim = strTrim.replace(/^\s*|\s*$/g,"");
			
			if ((e.value.length <= 0 && !e.optional) || strTrim == "") {
				if (e.name != "comments" && e.name != "fax") {
					empty_fields += "\n            " + title;
				}
				continue;
			}
		}
			
		if (e.name == "emailaddress" || e.name == "confirmemailaddress") {
			if (e.value.length > 0) {
				eMail = e.value;
				if ((eMail.indexOf("@") != -1) && (eMail.indexOf(".") != -1)) {
					invalid_eMail = false;
				}
				else {
				  
					invalid_eMail = true;
				}
			}

		}	
		
		if (e.name == "emailaddress" ) {
			if (e.value.length > 0) {
				eMail = e.value;
				if 	(eMail != form.confirmemailaddress.value) {
					eMail_Mismatch = true;
				}		
			}

		}	
		
		if (e.type == "select-one" && !e.optional) {
			if (e.value == "") {
				empty_fields += "\n            " + title;
				continue;	
			}
		}				
	}		
	
	msg = "The form was not submited due to the following error(s).\n";
	
	upperLine = "\n_________________________________________________________\n\n";
	lowerLine = "_________________________________________________________\n";
	
	if (empty_fields) {
		msg += upperLine;
		msg += "The following field(s) must be filled in:\n";
		msg += lowerLine;
		msg += empty_fields;
		strReturn = false;
	}
	if (invalid_eMail) {
		msg += upperLine;
		msg += "Please make sure E-mail address entered is/are valid.\n";
		msg += lowerLine;
		strReturn = false;
	}
	if (eMail_Mismatch) {
		msg += upperLine;
		msg += "Your email address does not match. \n";
		msg += lowerLine;
		strReturn = false;
	}
	if (!strReturn) {
		alert(msg);
		//form.sbut.disabled = false;
	}
	else {
		alert("Thank you for requesting a catalog!");
	}
	
	return strReturn;
}	

// -->
