// JavaScript Document


//-- Begin ONload Envent Handler
/* http://simonwillison.net/2004/May/26/addLoadEvent/ */
function addLoadEvent(func) {
  var oldonload = window.onload;
  if (typeof window.onload != 'function') {
    window.onload = func;
  } else {
    window.onload = function() {
      if (oldonload) {
        oldonload();
      }
      func();
    }
  }
}

//-- examples of use are below
// addLoadEvent(doPopups);
// addLoadEvent(function() {
  /* more code to run on page load */ 
// });



//-- Begin Popups
/* This script and many more are available free online at
The JavaScript Source!! http://javascript.internet.com
Created by: Jeremy Keith :: http://www.adactio.com/ */

function doPopups() {
  if (!document.getElementsByTagName) return false;
  var links=document.getElementsByTagName("a");
  for (var i=0; i < links.length; i++) {
    if (links[i].className.match("popup_email")) {
      links[i].onclick=function() {
        // Below - to open a full-sized window, just use: window.open(this.href);
        window.open(this.href, "", "status=yes,scrollbars=yes,resizable=yes,width=525,height=375");
        return false;
      }
    }
	else if (links[i].className.match("popupWebSite")) {
      links[i].onclick=function() {
        // Below - to open a full-sized window, just use: window.open(this.href);
        window.open(this.href, "", "status=yes,scrollbars=no,resizable=yes,width=600,height=525");
        return false;
      }
    }
		else if (links[i].className.match("popup_pweb")) {
      links[i].onclick=function() {
        // Below - to open a full-sized window, just use: window.open(this.href);
        window.open(this.href, "", "status=yes,scrollbars=no,resizable=yes,width=610,height=525");
        return false;
      }
    }

		else if (links[i].className.match("popup_s_pvm01")) {
      links[i].onclick=function() {
        // Below - to open a full-sized window, just use: window.open(this.href);
        window.open(this.href, "", "status=yes,scrollbars=no,resizable=yes,width=350,height=335");
        return false;
      }
    }
	
		else if (links[i].className.match("popup_s_lc01")) {
      links[i].onclick=function() {
        // Below - to open a full-sized window, just use: window.open(this.href);
        window.open(this.href, "", "status=yes,scrollbars=no,resizable=yes,width=470,height=450");
        return false;
      }
    }

		else if (links[i].className.match("popup_s_de01")) {
      links[i].onclick=function() {
        // Below - to open a full-sized window, just use: window.open(this.href);
        window.open(this.href, "", "status=yes,scrollbars=no,resizable=yes,width=350,height=300");
        return false;
      }
    }
	
  }
}


// run this script on load
addLoadEvent(doPopups);

// End -->



<!-- Vlidate Contact Form 
function validateCF(form) { 
    if (form.name.value.length == 0) 
    { 
        alert("Please enter your name.") 
        form.name.focus() 
        return false 
    } 

 	if (form.email.value.length == 0) 
    { 
        alert("Please enter your e-mail address.") 
        form.email.focus() 
        return false 
    } 
	

    if (form.email.value.indexOf("@") == -1) 
    { 
        alert("Please enter a valid e-mail address."); 
        form.email.focus(); 
        return false; 
    } 
	
	 if (form.message.value.length == 0) 
    { 
        alert("Please enter your message.") 
        form.message.focus() 
        return false 
    } 

} 
//--> 



<!-- Validate Mailing List Form 
function validateML(form) { 
    if (form.name.value.length == 0) 
    { 
        alert("Please enter your name.") 
        form.name.focus() 
        return false 
    } 

 	
    if (form.email.value.length == 0) 
    { 
        alert("Please enter your e-mail address.") 
        form.email.focus() 
        return false 
    } 
	

    if (form.email.value.indexOf("@") == -1) 
    { 
        alert("Please enter a valid e-mail address."); 
        form.email.focus(); 
        return false; 
    } 
	

} 
//--> 
