function CheckDate() {        var eventYear = document.eventadd.yearstart.value        var todaysDate = new Date()		var todaysYear = todaysDate.getYear()		var todaysMonth = 1 + parseInt(todaysDate.getMonth())		var todaysMonth = "" + todaysMonth		if (todaysMonth.length == 1) {		  var todaysMonth = "0" + todaysMonth		}        		var todaysDay = parseInt(todaysDate.getDate())		var todaysDay = "" + todaysDay		if (todaysDay.length == 1) {		  var todaysDay = "0" + todaysDay		}		var dateNow = parseInt(todaysYear + todaysMonth + todaysDay)		var dateEvent = parseInt(document.eventadd.yearstart.value + document.eventadd.monthstart.value + document.eventadd.daystart.value)		var dateText = document.eventadd.datetext.value        var dateEventLength = dateEvent.toString()		var dateEventLength = dateEventLength.length						if (dateText != "" && dateEventLength == 8) {		   alert ("The 'Optional Date Info' field contains information.\n\rThis is intended to be used in the absence of a 'Hang Date' date.\n\rPlease remove the 'Optional Date Info' content in order to set a date.")		   return false;		}				var dateOpening = parseInt(document.eventadd.openingyearstart.value + document.eventadd.openingmonthstart.value + document.eventadd.openingdaystart.value)        var dateOpeningLength = dateOpening.toString()		var dateOpeningLength = dateOpeningLength.length						if (dateText != "" && dateOpeningLength == 8) {		   alert ("The 'Optional Date Info' field contains information.\n\rThis is intended to be used in the absence of an 'Opening Date' date.\n\rPlease remove the 'Optional Date Info' content in order to set a date.")		   return false;		}				if (dateEvent < dateNow) {		   alert ("The 'Hang Date' start date is in the past.\n\rPlease double check the supplied dates.")		   return false;		}				var dateEventEnd = parseInt(document.eventadd.yearend.value + document.eventadd.monthend.value + document.eventadd.dayend.value)	    if (dateEventEnd != "") {		   if (dateEventEnd < dateEvent) {		      alert ("The 'Hang Date' end date is set to before the 'Hang Date' start date.\n\rPlease double check the supplied dates.")		      return false;			}		}		if (dateOpening < dateNow) {		   alert ("The 'Opening Event' start date is in the past.\n\rPlease double check the supplied dates.")		   return false;		}				var dateEventEnd = parseInt(document.eventadd.yearend.value + document.eventadd.monthend.value + document.eventadd.dayend.value)	    if (dateEventEnd != "") {		   if (dateEventEnd < dateEvent) {		      alert ("The 'Opening Event' end date is set to before the 'Opening Event' start date.\n\rPlease double check the supplied dates.")		      return false;			}		}		}function checkEmail() {		var problem = 'No'				if (document.emailform.fname.value.length <= 0) {			document.emailform.fname.value = "** First Name **"			document.emailform.fname.focus()			problem = 'Yes'			} else if (document.emailform.fname.value == "** First Name **") {		    document.emailform.fname.value = "** First Name **"			document.emailform.fname.focus()			problem = 'Yes'		}		if (document.emailform.lname.value.length <= 0) {			document.emailform.lname.value = "** Last Name **"			document.emailform.lname.focus()			problem = 'Yes'			} else if (document.emailform.lname.value == "** Last Name **") {		    document.emailform.lname.value = "** Last Name **"			document.emailform.lname.focus()			problem = 'Yes'		}				if (document.emailform.email.value.length <= 0) {			document.emailform.email.value = "** Email **"			document.emailform.email.focus()			problem = 'Yes'			} else if (document.emailform.email.value == "** Email **") {		    document.emailform.email.value = "** Email **"			document.emailform.email.focus() 			problem = 'Yes'		}						if (document.emailform.email2.value.length <= 0) {			document.emailform.email2.value = "** Email **"			document.emailform.email2.focus()			problem = 'Yes'			} else if (document.emailform.email2.value == "** Email **") {		    document.emailform.email2.value = "** Email **"			document.emailform.email2.focus()			problem = 'Yes'		}				if (document.emailform.subject.value.length <= 0) {			document.emailform.subject.value = "** Subject **"			document.emailform.subject.focus()			problem = 'Yes'			} else if (document.emailform.subject.value == "** Subject **") {		    document.emailform.subject.value = "** Subject **"			document.emailform.subject.focus()			problem = 'Yes'		}				if (document.emailform.message.value.length <= 0) {			document.emailform.message.value = "** Message **"			document.emailform.message.focus()			problem = 'Yes'			} else if (document.emailform.message.value == "** Message **") {		    document.emailform.message.value = "** Message **"			document.emailform.message.focus()			problem = 'Yes'		}							if (document.emailform.email.value != document.emailform.email2.value) {			problem = 'Email'			}						if (problem == 'No') {			return true		} else if (problem == 'Yes') { 			alert ("Please be sure to complete all require fields.")			return false		} else if (problem == 'Email') {		    alert ("The e-mail confirmation does not match. Please double check the e-mail fields.")			return false		}	}			function checkDirections() {		var problem = 'No'				if (document.directions.a1.value.length <= 0) {			document.directions.a1.value = "** Address **"			document.directions.a1.focus()			problem = 'Yes'			} else if (document.directions.a1.value == "** Address **") {		    document.directions.a1.value = "** Address **"			document.directions.a1.focus()			problem = 'Yes'		}		if (document.directions.c1.value.length <= 0) {			document.directions.c1.value = "** City **"			document.directions.c1.focus()			problem = 'Yes'			} else if (document.directions.c1.value == "** City **") {		    document.directions.c1.value = "** City **"			document.directions.c1.focus()			problem = 'Yes'		}		if (document.directions.s1.value.length <= 0) {			document.directions.s1.value = "** State **"			document.directions.s1.focus()			problem = 'Yes'			} else if (document.directions.s1.value == "** State **") {		    document.directions.s1.value = "** State **"			document.directions.s1.focus()			problem = 'Yes'		}		if (document.directions.z1.value.length <= 0) {			document.directions.z1.value = "** Zip **"			document.directions.z1.focus()			problem = 'Yes'			} else if (document.directions.z1.value == "** Zip **") {		    document.directions.z1.value = "** Zip **"			document.directions.z1.focus()			problem = 'Yes'		}		if (problem == 'No') {			return true		} else if (problem == 'Yes') { 			alert ("Please be sure to complete all require fields.")			return false		} else if (problem == 'Email') {		    alert ("The e-mail confirmation does not match. Please double check the e-mail fields.")			return false		}}