//start display day/date code

DaysofWeek = new Array()
DaysofWeek[0]="Sunday"
DaysofWeek[1]="Monday"
DaysofWeek[2]="Tuesday"
DaysofWeek[3]="Wed"
DaysofWeek[4]="Thurs"
DaysofWeek[5]="Friday"
DaysofWeek[6]="Sat"

Months = new Array()
Months[0]="Jan"
Months[1]="Feb"
Months[2]="March"
Months[3]="April"
Months[4]="May"
Months[5]="June"
Months[6]="July"
Months[7]="Aug"
Months[8]="Sept"
Months[9]="Oct"
Months[10]="Nov"
Months[11]="Dec"


function fixNumber(the_number){
        if (the_number>10){
                the_number = "" + the_number;
                }
        return the_number;
}

function fixPMHours(the_number){
        if (the_number>12){
                the_number = the_number - 12;
                }
        return the_number;
}

	var	dayVal;
	var timeVal=new Date()
	var m=timeVal.getMinutes()
	var h=timeVal.getHours()
	var fixed_hour = fixPMHours(h);
	var da=timeVal.getDate()
	var mo=timeVal.getMonth()
	var year=timeVal.getYear()
	var showDay=DaysofWeek[timeVal.getDay()]
	var showMonth=Months[timeVal.getMonth()]
	var fixed_minute = fixNumber(m);
	var the_time = fixed_hour + ":" + fixed_minute;
	var the_date = (showDay+" "+showMonth+" "+da+" "+2010+"   ")

function showTime(){
	var timeValue = the_date+" "+the_time;
	timeValue +=(h >= 12) ? " p.m." : " a.m.";
	document.write(timeValue);}
//end display day/date code


// start Submission Form script 

 function checkData (){
                                if (document.signup.APPLICANT_A_M_OR_F.value == "") {
                                        alert("Please fill in Male of Female.")
                                        document.signup.APPLICANT_A_M_OR_F.focus()
                                        return false}
                                if (document.signup.APPLICANT_A_SURNAME.value == "") {
                                        alert("Please fill in Surname.")
                                        document.signup.APPLICANT_A_SURNAME.focus()
                                        return false}
                                if (document.signup.APPLICANT_A_GIVEN_NAMES.value == "") {
                                        alert("Please fill in Given Names.")
                                        document.signup.APPLICANT_A_GIVEN_NAMES.focus()
                                        return false}
                                if (document.signup.APPLICANT_A_BIRTH_DATE.value == "") {
                                        alert("Please fill in Birth Date.")
                                        document.signup.APPLICANT_A_BIRTH_DATE.focus()
                                        return false}
                                if (document.signup.APPLICANT_A_BIRTH_PLACE.value == "") {
                                        alert("Please fill in Birth Place.")
                                        document.signup.APPLICANT_A_BIRTH_PLACE.focus()
                                        return false}
                                if (document.signup.APPLICANT_A_BAPTISMAL_DATE.value == "") {
                                        alert("Please fill in Baptismal Date.")
                                        document.signup.APPLICANT_A_BAPTISMAL_DATE.focus()
                                        return false}
                                if (document.signup.APPLICANT_A_BAPTISMAL_PLACE.value == "") {
                                        alert("Please fill in Baptismal Place.")
                                        document.signup.APPLICANT_A_BAPTISMAL_PLACE.focus()
                                        return false}
                                if (document.signup.APPLICANT_A_DEATH_DATE.value == "") {
                                        alert("Please fill in Death Date.")
                                        document.signup.APPLICANT_A_DEATH_DATE.focus()
                                        return false}
                                if (document.signup.APPLICANT_A_DEATH_PLACE.value == "") {
                                        alert("Please fill in Death Place.")
                                        document.signup.APPLICANT_A_DEATH_PLACE.focus()
                                        return false}
                                if (document.signup.APPLICANT_A_BURIAL_DATE.value == "") {
                                        alert("Please fill in Burial Date.")
                                        document.signup.APPLICANT_A_BURIAL_DATE.focus()
                                        return false}
                                if (document.signup.APPLICANT_A_BURIAL_PLACE.value == "") {
                                        alert("Please fill in Burial Place.")
                                        document.signup.APPLICANT_A_BURIAL_PLACE.focus()
                                        return false}
                                if (document.signup.APPLICANT_A_MARRIAGE_DATE.value == "") {
                                        alert("Please fill in Marriage Date.")
                                        document.signup.APPLICANT_A_MARRIAGE_DATE.focus()
                                        return false}
                                if (document.signup.APPLICANT_A_MARRIAGE_PLACE.value == "") {
                                        alert("Please fill in Marriage Place.")
                                        document.signup.APPLICANT_A_MARRIAGE_PLACE.focus()
                                        return false}
                                if (document.signup.EMAIL_ADDRESS.value == "") {
                                        alert("Please fill in Email Address.")
                                        document.signup.EMAIL_ADDRESS.focus()
                                        return false}
                                if (document.signup.HOME_TELEPHONE.value == "") {
                                        alert("Please fill in your Home Telephone Number including Area Code.")
                                        document.signup.HOME_TELEPHONE.focus()
                                        return false}
                                if (document.signup.MAILING_ADDRESS.value == "") {
                                        alert("Please fill in Current or if Deceased Last Known Mailing Address.")
                                        document.signup.MAILING_ADDRESS.focus()
                                        return false}
                                if (document.signup.CITY.value == "") {
                                        alert("Please fill in City.")
                                        document.signup.CITY.focus()
                                        return false}
                                if (document.signup.STATE.value == "") {
                                        alert("Please fill in State.")
                                        document.signup.STATE.focus()
                                        return false}
                                if (document.signup.ZIP.value == "") {
                                        alert("Please fill in Zip/Post code.")
                                        document.signup.ZIP.focus();
                                        return false;
                                }
                        }
// End Submission Form script