// JavaScript Document

function imgSwap(oImg)
{
   var strOver  = "_on"    // image to be used with mouse over
   var strOff = "_off"     // normal image
   var strImg = oImg.src
   if (strImg.indexOf(strOver) != -1) 
      oImg.src = strImg.replace(strOver,strOff)
   else
      oImg.src = strImg.replace(strOff,strOver)
}


function checkform () {

    if (document.ccoptin.ea.value==""){
    alert("Please enter an email");
    document.ccoptin.ea.focus();
    return false;
  }

 if ((document.ccoptin.ea.value.indexOf('@') == -1) || (document.ccoptin.ea.value.indexOf('.') == -1)){
	document.ccoptin.ea.focus();
    alert("Please enter a valid email address like you@domain.com");
  return false;

  }
  
return true;
}

var  scroll = {
	top: function(event) { new Effect.ScrollTo('top'); },
	mission: function(event) { new Effect.ScrollTo('mission'); },
	vision: function(event) { new Effect.ScrollTo('vision'); },
	history: function(event) { new Effect.ScrollTo('history'); },
	terminal: function(event) { new Effect.ScrollTo('terminal'); },
	ground: function(event) { new Effect.ScrollTo('ground'); }
}


              function iClear() {
document.ccoptin.submit();
document.ccoptin.email_input.value = ' ';
}
					






