// JavaScript Document
// phplist functions//
function checkform() {
    if (eval("document.subscribeform.elements['email'].value") == "EMAIL" || eval("document.subscribeform.elements['attribute1'].value") == "POSTAL CODE") {
      alert("Please enter your email address and your postal code");
      eval("document.subscribeform.elements['email'].focus()");
	   return false;
	   }   
	
  for (i=0;i<fieldstocheck.length;i++) {
    if (eval("document.subscribeform.elements['"+fieldstocheck[i]+"'].value") == "") {
      alert("Please enter your "+fieldnames[i]);
      eval("document.subscribeform.elements['"+fieldstocheck[i]+"'].focus()");
      return false;
    }
  }

  return true;
}

var fieldstocheck = new Array();
var fieldnames = new Array();
function addFieldToCheck(value,name) {
  fieldstocheck[fieldstocheck.length] = value;
  fieldnames[fieldnames.length] = name;
}

function compareEmail()
{
  return (document.subscribeform.elements["email"].value == document.subscribeform.elements["emailconfirm"].value);
}
// phplist functions//

// cookie and javascript testing
function cc(){
 /* check for a cookie */
 /* the cex form is in the banner */
  if (document.cookie == "") 
  {
    /* if a cookie is not found - alert user -
     change cookieexists field value to false */
    alert("Please enable COOKIES to use our website!");
	window.location="http://www.willibrown.com/tech.php"
    /* If the user has Cookies disabled an alert will let him know 
        that cookies need to be enabled to log on.*/ 
    document.cex.cookieexists.value ="false"  
  } else {
   /* this sets the value to true and nothing else will happen,
       the user will be able to log on*/
    document.cex.cookieexists.value ="true"
    }
}
/* Set a cookie to be sure that one exists.
   Note that this is outside the function*/
document.cookie = 'killme' + escape('nothing')
// -->


<!-- Begin Media Player junk

var bWin32IE;
if ((navigator.userAgent.indexOf("IE")
    > -1) && (navigator.platform == "Win32")) {
     bWin32IE = true;
} else {
     bWin32IE = false;
}

function play(){
   if (bWin32IE == true) {
      WMPlay.CurrentPosition = 0;
       WMPlay.play();
   } else {
      document.WMPlay.SetCurrentPosition(0);
      document.WMPlay.Play();
   }
}

function pause(){
   if (bWin32IE == true) {
       WMPlay.pause();
   } else {
      document.WMPlay.pause();
   }
}

function stop(){
   if (bWin32IE == true) {
      WMPlay.stop();
   } else {
      document.WMPlay.Stop();
      document.WMPlay.SetCurrentPosition(0);
   }
}

function setGoogleIP(theIP){
	__utmSetVar(theIP);
//	alert("hi your ip address is "+theIP);
}