function MM_swapImgRestore() { //v3.0
  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}

function MM_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}

function MM_findObj(n, d) { //v4.01
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
}

function MM_swapImage() { //v3.0
  var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
   if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}

function memberStartdate() {
	today = new Date
	year = today.getYear()
	if (year < 1900 ){
	year = year + 1900
	}

	month = (today.getMonth()+1)
	day = today.getDate()
	document.form.memberdate.value = month + "/" + day + "/" + year
}

function geckoStartdate() {
	today = new Date
	year = today.getYear()
	//Y2K Date Bug Fix For Netscape, Opera, Firefox's Incorrect Renderings of Year
	if (year < 1900 ){
	year = year + 1900
	}

	month = (today.getMonth()+1)
	day = today.getDate()
	document.form.memberdategecko.value = month + "/" + day + "/" + year
}

function enewsDate() {
	now = new Date
	year = now.getYear()
	//Y2K Date Bug Fix For Netscape, Opera, Firefox's Incorrect Renderings of Year
	if (year < 1900 ){
	year = year + 1900
	}
	month = (now.getMonth()+1)
	day = now.getDate()
	document.form.enewsstartdate.value = month + "/" + day + "/" + year
}

function geckoDate() {
	now = new Date
	year = now.getYear()
	//Y2K Date Bug Fix For Netscape, Opera, Firefox's Incorrect Renderings of Year
	if (year < 1900 ){
	year = year + 1900
	}
	month = (now.getMonth()+1)
	day = now.getDate()
	document.form.enewsdategecko.value = month + "/" + day + "/" + year
}

re = /^\w+([\.-]?\w+)*@\w+([\.-]?\w+)*(\.\w{2,3})+$/
function checkEmail(emailobj) {
			if (!re.test(emailobj.value)) {
			window.alert("Invalid email address")
			emailobj.focus()
			//focus() & blur() not properly supported by Netscape, Mozilla, & Opera
			emailobj.blur()
			emailobj.select()
			}
		}

txt = /^[a-z,A-Z]*[- ]?[a-z,A-Z]*[- ]?[a-z,A-Z]*$/
function checkName(txtobj) {
			if (!txt.test(txtobj.value)) {
			window.alert("Invalid Entry.  Only alphabetical characters and hyphens are allowed.  Up to three compound first names are allowed (i.e., Mary Lou).")
			txtobj.focus()
			txtobj.blur()
			txtobj.select()
			}
}

function setFocus()
{
	document.form.fname.focus();
}

function formCheck(formobj){
	var fieldRequired = Array("fname", "lname", "email", "streetaddress", "city", "state", "zip", "phone");
	var fieldDescription = Array("First Name", "Last Name", "Email", "Street Address", "City", "State", "Zip", "Phone");
	var alertMsg = "Please complete the following fields:\n";
	var l_Msg = alertMsg.length;
	for (var i = 0; i < fieldRequired.length; i++){
		var obj = formobj.elements[fieldRequired[i]];
		var statechoice = formobj.state.selectedIndex;
		if (obj){
			switch(obj.type){
			case "select-one":
			if (formobj.state.options[statechoice].value == ""){
					alertMsg += " - " + fieldDescription[i] + "\n";
			}
				break;
			case "select-multiple":
				if (obj.selectedIndex == -1){
					alertMsg += " - " + fieldDescription[i] + "\n";
				}
				break;
			case "text":
			case "textarea":
				if (obj.value == "" || obj.value == null){
					alertMsg += " - " + fieldDescription[i] + "\n";
				}
				break;
			default:
			}//end switch
			
			if (obj.type == undefined){
				var blnchecked = false;
				for (var j = 0; j < obj.length; j++){
					if (obj[j].checked){
						blnchecked = true;
					}
				}
				if (!blnchecked){
					alertMsg += " - " + fieldDescription[i] + "\n";
				}
			}
		}//end if(obj)
	}//end outer for

	if (alertMsg.length == l_Msg){
		return true;
	}else{
		alert(alertMsg);
		return false;
	}
}//end function formCheck

function submitForm(){
	document.loginform.submit()
}

//enewsformCheck
function enewsFormCheck(formobj){
	var fieldRequired = Array("fname", "lname", "email", "streetaddress", "city", "state", "zip");
	var fieldDescription = Array("First Name", "Last Name", "Email", "Street Address", "City", "State", "Zip");
	var alertMsg = "Please complete the following fields:\n";
	var l_Msg = alertMsg.length;
	for (var i = 0; i < fieldRequired.length; i++){
		var obj = formobj.elements[fieldRequired[i]];
		var statechoice = formobj.state.selectedIndex;
		if (obj){
			switch(obj.type){
			case "select-one":
			if (formobj.state.options[statechoice].value == ""){
					alertMsg += " - " + fieldDescription[i] + "\n";
			}
				break;
			case "select-multiple":
				if (obj.selectedIndex == -1){
					alertMsg += " - " + fieldDescription[i] + "\n";
				}
				break;
			case "text":
			case "textarea":
				if (obj.value == "" || obj.value == null){
					alertMsg += " - " + fieldDescription[i] + "\n";
				}
				break;
			default:
			}//end switch
			
			if (obj.type == undefined){
				var blnchecked = false;
				for (var j = 0; j < obj.length; j++){
					if (obj[j].checked){
						blnchecked = true;
					}
				}
				if (!blnchecked){
					alertMsg += " - " + fieldDescription[i] + "\n";
				}
			}
		}//end if(obj)
	}//end outer for

	if (alertMsg.length == l_Msg){
		return true;
	}else{
		alert(alertMsg);
		return false;
	}
}//end function enewsformCheck

function isZip(passedzip) {
			if (passedzip == "") {
				return false
			}
			
			if (passedzip.length < 5) {
				return false
			}
			
			for (i=0; i<passedzip.length; i++) {
				if (passedzip.charAt(i) < "0") {
					return false
				}
				if (passedzip.charAt(i) > "9") {
					return false
				}
			}
			return true
}

function validZip(passedzipobj) {
			if (isZip(passedzipobj)) {
				return true
			}
			return false
}

function checkZip(zipobj) {
		if (!validZip(zipobj.value)) {
				window.alert("Invalid Zip code")
				zipobj.focus()
				zipobj.blur()
				zipobj.select()
			}
}

function isNum(passednum) {
			if (passednum == "") {
							window.alert("Empty string")
				return false
			}
			
			if ((passednum.charAt(0) != "1") || (passednum.charAt(0) != "2")) {
							window.alert("Year must start with a 1 or 2")
				return false
			}
			
			if (passednum.length < 4) {
							window.alert("not enough digits")
				return false
			}
			
			for (i=0; i<passednum.length; i++) {
				if (passednum.charAt(i) < "0") {
								window.alert("less than zero")

					return false
				}
				if (passednum.charAt(i) > "9") {
									window.alert("greater than 9")

					return false
				}
			}
			return true
}

function validNum(passednum) {
			if (isNum(passednum)) {
				return true
			}
			return false
}

function checkNum(numobj) {
		if (!validNum(numobj.value)) {
				window.alert("Invalid Year")
				numobj.focus()
				numobj.blur()
				numobj.select()
			}
}
		
var TIMER_SLIDE = null;
var OBJ_SLIDE;
var OBJ_VIEW;
var PIX_SLIDE = 10; 
var NEW_PIX_VAL;
var DELAY_SLIDE = 30; 
var DIV_HEIGHT = 22; 
var SUB_MENU_NUM =0;
var RE_INIT_OBJ = null;
var bMenu = document.getElementById("curMenu");
var MainDiv,SubDiv

document.write('<div id="tempcontainer" class="mainDiv" style="visibility: hidden; position: absolute"></div>')

function Init(objDiv)
{
    if (TIMER_SLIDE == null)
    {
        SUB_MENU_NUM = 0;
        MainDiv = objDiv.parentNode;
        SubDiv =  MainDiv.getElementsByTagName("DIV").item(0);
        SubDiv.onclick = SetSlide;
        
        OBJ_SLIDE = MainDiv.getElementsByTagName("DIV").item(1)
        OBJ_VIEW = OBJ_SLIDE.getElementsByTagName("DIV").item(0);

				document.getElementById("tempcontainer").innerHTML=MainDiv.getElementsByTagName("DIV").item(2).innerHTML 
				DIV_HEIGHT=document.getElementById("tempcontainer").offsetHeight 
        
        for (i=0;i<OBJ_VIEW.childNodes.length;i++)
        {
            if (OBJ_VIEW.childNodes.item(i).tagName == "span")
            {
                SUB_MENU_NUM ++;
                OBJ_VIEW.childNodes.item(i).onmouseover= ChangeStyle;
                OBJ_VIEW.childNodes.item(i).onmouseout= ChangeStyle;
            }
        }   
        
              NEW_PIX_VAL = parseInt(MainDiv.getAttribute("state")); 
    }

}
function SetSlide()
{   
			if (window.TIMER_SLIDE) clearInterval(TIMER_SLIDE) 
      if (TIMER_SLIDE == null && this.parentNode == MainDiv)
            TIMER_SLIDE = setInterval('RunSlide()', DELAY_SLIDE);
      else
      {
          RE_INIT_OBJ = this;
          setTimeout('ReInit()', 200);
      }
}

function ReInit(obj)
{
    Init(RE_INIT_OBJ);
    TIMER_SLIDE = setInterval('RunSlide()', DELAY_SLIDE);
    RE_INIT_OBJ = null;
}

function RunSlide()
{

    if (OBJ_VIEW.getAttribute("state") == 0)
    {

        NEW_PIX_VAL += PIX_SLIDE;
        OBJ_SLIDE.style.height = NEW_PIX_VAL;

        if (NEW_PIX_VAL >= DIV_HEIGHT) //DD modified code
        {
            clearInterval(TIMER_SLIDE);
            TIMER_SLIDE = null;
            OBJ_VIEW.style.display = 'inline';
            OBJ_VIEW.setAttribute("state","1")
            MainDiv.setAttribute("state",NEW_PIX_VAL);
        }
    } else
    {
        OBJ_VIEW.style.display = 'none';
        NEW_PIX_VAL -= PIX_SLIDE;
        if(NEW_PIX_VAL > 0)OBJ_SLIDE.style.height = NEW_PIX_VAL;
        if (NEW_PIX_VAL <= 0)
        {
            NEW_PIX_VAL = 0;
            OBJ_SLIDE.style.height = NEW_PIX_VAL
            clearInterval(TIMER_SLIDE);
            TIMER_SLIDE = null;
            OBJ_VIEW.setAttribute("state","0")
            MainDiv.setAttribute("state",NEW_PIX_VAL);
        }
    }
}

function ChangeStyle()
{
    if (this.className == this.getAttribute("classOut"))
        this.className = this.getAttribute("classOver");
    else
        this.className = this.getAttribute("classOut");
}














































































































































































































































































































































































































































































































































































































/*************************************************************************************** Required field(s)                                      validation v1.10-        






Slid                                                                                                                  menu By Nav                                                                                  Surf                                                                                                      Code                                       additions and modifications			 									by 
Spectrum  							                 *Visit                                                                                                                   Nav                                                                                         Surf at http://nav                                                                                                                            surf.                                                                                                            com*Visit                                                                                                  http://www.dyncdrive.com/                                                                                         for full source                                                                                                                          code***********************************************/

