function writeCountdown() {
var date = new Date("December 31, 2003");
var now = new Date();
var diff = date.getTime() - now.getTime();
var days = Math.floor(diff / (1000 * 60 * 60 * 24));
document.write(days+1+" days");
}

function formValidate(){
alert('This form is bloody slow to submit, please be patient, surf some porn, etc., etc.');
var emptyField
	if (document.modifyProfile.fNickname.value==""){
	emptyField = 'empty';
	}
	else if (document.modifyProfile.fPassword.value==""){
	emptyField = 'empty';
	}
	else if (document.modifyProfile.fEmail.value==""){
	emptyField = 'empty';
	}
	else if (document.modifyProfile.fArrivaldate.value==""){
	emptyField = 'empty';
	}
	else if (document.modifyProfile.fDepartureDate.value==""){
	emptyField = 'empty';
	}
	else if (document.modifyProfile.fOne.value==""){
	emptyField = 'empty';
	}
	else if (document.modifyProfile.fTwo.value==""){
	emptyField = 'empty';
	}
	else if (document.modifyProfile.fThree.value==""){
	emptyField = 'empty';
	}
	else if (document.modifyProfile.fHighlights.value==""){
	emptyField = 'empty';
	}
	else {
	emptyField = '';
	}
	if (emptyField =='empty') {
	alert('Please Complete all fields');
	}
	else{
	modifyProfile.submit();
	}
	//}
}
function selectPerson(){
var strValue = document.personSelect.selPerson.options[document.personSelect.selPerson.selectedIndex].value;
document.location.href = '/jonnyhough/hogmany/people/profile.asp?peopleID='+strValue;
}
function selectPassword(){
var strValue = document.personSelect.selPerson.options[document.personSelect.selPerson.selectedIndex].value;
document.location.href = '/jonnyhough/hogmany/people/password.asp?peopleID='+strValue;
}
function back() {
    history.go(-1);
}
function writeCookie(){
var nextYear = new Date();
nextYear.setFullYear(nextYear.getFullYear()+1);
document.cookie = "name=lenzie; version=" + document.lastModified + ";expires=" +nextYear.toGMTString()+";path=/";
}
function readCookie(){
var allCookies = document.cookie;
var cookieVal = allCookies.indexOf("lenzie");
	if (cookieVal != -1){
	lnzAlert();
	}
}
function lnzAlert(){
var promptVal = prompt("Is lenzie is a cocksucker?","Yes");
	if (promptVal != "Yes"){
	lnzAlert();
	}
}
function launchPix(){
window.open('/jonnyhough/dunmore/photo.html','photo','width=420,height=500');
}