//
// Copyright (c) 2007 choagland choagland@cotsengineering.com
//
// Permission is hereby granted, free of charge, to any person obtaining
// a copy of this software and associated documentation files.
//
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND.
//		To my knowledge it works.
//

// Function checkContactForm()
//
function checkContactForm() {
	if (document.forms.PPCform.elements['Message_and_Comments'].value.length == 0) {
	    alert('Please enter a value for the "Message_and_Comments" field');
	    return false;
	}
	if (document.forms.PPCform.elements['Name'].value.length == 0) {
	    alert('Please enter a value for the "Name" field');
	    return false;
	}
	if (document.forms.PPCform.elements['PokerName'].value.length == 0) {
	    alert('Please enter a value for your "Poker Name" field');
	    return false;
	}
	if (document.forms.PPCform.elements['e-mail'].value.length == 0) {
	    alert('Please enter a value for your "e-mail address" field');
	    return false;
	}
	  return true;
}


var now = new Date();
var days = new Array('Sun','Mon','Tue','Wed','Thur','Fri','Sat');
var months = new Array('Jan','Feb','Mar','Apr','May','Jun','Jul','Aug','Sep','Oct','Nov','Dec');
var date = ((now.getDate()<10) ? "0" : "")+ now.getDate();
// Calculate four digit year.
function fourdigits(number)	{
	return (number < 1000) ? number + 1900 : number;
}
today =  days[now.getDay()] + ", " +  months[now.getMonth()] + " " +
         date + ", " + (fourdigits(now.getYear())) + ", " ;

function clock() {
	var digital = new Date();
	var hours = digital.getHours();
	var minutes = digital.getMinutes();
	var seconds = digital.getSeconds();
	var amOrPm = "AM";
if (hours > 11) amOrPm = "PM";
if (hours > 12) hours = hours - 12;
if (hours == 0) hours = 12;
if (minutes <= 9) minutes = "0" + minutes;
if (seconds <= 9) seconds = "0" + seconds;
dispTime = hours + ":" + minutes + ":" + seconds + " " + amOrPm;
var CurTime = document.getElementById("CurTime")
CurTime.innerHTML = dispTime;
setTimeout("clock()", 1000);
}

//
// Copyright (c) 2007 choagland choagland@cotsengineering.com
//

