﻿

/* This script will clear the email sign up form boxes */


function clickclear(thisfield, defaulttext) {
if (thisfield.value == defaulttext) {
thisfield.value = "";
}
}
function clickrecall(thisfield, defaulttext) {
if (thisfield.value == "") {
thisfield.value = defaulttext;
}
}


/* This will set up the main banners for rotating.*/

function changeBanner(value) 
	{
  		bnr = document.getElementById("gallery");
  		bnr.style.marginTop=value;
	}
	
/*  This will validate the end date for events on the calendar is equyal to or greater than the beginning date. */

function EventEndDateCheck()
{
  var frm = document.forms["event_edit_form"];
  if(frm.event_end_date.value < frm.event_start_date.value)
  {
    alert('You must have an end date equal to or greater than the start date for your event!');
    return false;
  }
  else
  {
    return true;
  }
}


