function popit(mylink, quick)
{
if (! window.focus)return true;
var href;
if (typeof(mylink) == 'string')
   href=mylink;
else
   href=mylink.href;
window.open(href, quick, 'width=650,height=600, left=50,top=50, resizable=yes, scrollbars=yes');
return false;
}

function popup(mylink, windowname)
{
if (! window.focus)return true;
var href;
if (typeof(mylink) == 'string')
   href=mylink;
else
   href=mylink.href;
   window.open(href, windowname, 'height=600,width=900,left=100,top=100,resizable=yes,scrollbars=yes,toolbar=yes,status=yes');
return false;
}

function checkForm(frm){
if(frm.first.value==""){alert("Your first name is a required field"); frm.first.focus(); frm.first.style.backgroundColor='pink'; return false;}
if(frm.last.value==""){alert("Your last name is a required field"); frm.last.focus(); frm.last.style.backgroundColor='pink'; return false;}
if(frm.reply.value==""){alert("Your email address is a required field"); frm.reply.focus(); frm.reply.style.backgroundColor='pink'; return false;} 
if(/^\w+([\.-]?\w+)*@\w+([\.-]?\w+)*(\.\w{2,3})+$/.test(frm.reply.value)==0){alert("You must enter a valid e-mail address.\n\nFor example:\ntom@thomasmullens2010.com"); frm.reply.focus(); frm.reply.style.backgroundColor='pink'; return false;}}   
   	   	
function whiteout(frm){
if(frm.first.value!=""){frm.first.style.backgroundColor='white';}
if(frm.last.value!=""){frm.last.style.backgroundColor='white';}
if(frm.reply.value!=""){frm.reply.style.backgroundColor='white';}}

function stopRKey(evt) {
var evt  = (evt) ? evt : ((event) ? event : null);
var node = (evt.target) ? evt.target : ((evt.srcElement) ? evt.srcElement : null);
if ((evt.keyCode == 13) && (node.type=="text")) { return false; }
}
document.onkeypress = stopRKey;

function stopRKey(evt) {
var evt  = (evt) ? evt : ((event) ? event : null);
var node = (evt.target) ? evt.target : ((evt.srcElement) ? evt.srcElement : null);
if ((evt.keyCode == 13) && (node.type=="text")) { return false; }
}

document.onkeypress = stopRKey;

function escapeVal(textarea,replaceWith){
textarea.value=escape(textarea.value)
for(i=0; i<textarea.value.length; i++){
if(textarea.value.indexOf("%0D%0A") > -1){
textarea.value=textarea.value.replace("%0D%0A",replaceWith)
}
else if(textarea.value.indexOf("%0A") > -1){
textarea.value=textarea.value.replace("%0A",replaceWith)
}
else if(textarea.value.indexOf("%0D") > -1){
textarea.value=textarea.value.replace("%0D",replaceWith)
}
}
textarea.value=unescape(textarea.value)
}


<!--
// World Clock code adapted from ProLogic:
// http://www.proglogic.com/

function worldClock(zone, region){
var dst = 0
var time = new Date()
var gmtMS = time.getTime() + (time.getTimezoneOffset() * 60000)
var gmtTime = new Date(gmtMS)
var day = gmtTime.getDate()
var month = gmtTime.getMonth()
var year = gmtTime.getYear()
if(year < 1000){
year += 1900
}
var monthArray = new Array("Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", 
				"Sep", "Oct", "Nov", "Dec")
var monthDays = new Array("31", "28", "31", "30", "31", "30", "31", "31", "30", "31", "30", "31")
if (year%4 == 0){
monthDays = new Array("31", "29", "31", "30", "31", "30", "31", "31", "30", "31", "30", "31")
}
if(year%100 == 0 && year%400 != 0){
monthDays = new Array("31", "28", "31", "30", "31", "30", "31", "31", "30", "31", "30", "31")
}

var hr = gmtTime.getHours() + zone
var min = gmtTime.getMinutes()
var sec = gmtTime.getSeconds()

if (hr >= 24){
hr = hr-24
day -= -1
}
if (hr < 0){
hr -= -24
day -= 1
}
if (hr < 10){
hr = " " + hr
}
if (min < 10){
min = "0" + min
}
if (sec < 10){
sec = "0" + sec
}
if (day <= 0){
if (month == 0){
	month = 11
	year -= 1
	}
	else{
	month = month -1
	}
day = monthDays[month]
}
if(day > monthDays[month]){
	day = 1
	if(month == 11){
	month = 0
	year -= -1
	}
	else{
	month -= -1
	}
}
if (region == "NAmerica"){
	var startDST = new Date()
	var endDST = new Date()
	startDST.setMonth(3)
	startDST.setHours(2)
	startDST.setDate(1)
	var dayDST = startDST.getDay()
	if (dayDST != 0){
		startDST.setDate(8-dayDST)
		}
		else{
		startDST.setDate(1)
		}
	endDST.setMonth(9)
	endDST.setHours(1)
	endDST.setDate(31)
	dayDST = endDST.getDay()
	endDST.setDate(31-dayDST)
	var currentTime = new Date()
	currentTime.setMonth(month)
	currentTime.setYear(year)
	currentTime.setDate(day)
	currentTime.setHours(hr)
	if(currentTime >= startDST && currentTime < endDST){
		dst = 1
		}
}

	if (dst == 1){
	hr -= -1
	if (hr >= 24){
	hr = hr-24
	day -= -1
	}
	if (hr < 10){
	hr = " " + hr
	}
	if(day > monthDays[month]){
	day = 1
	if(month == 11){
	month = 0
	year -= -1
	}
	else{
	month -= -1
	}
	}

      return day + "-" + monthArray[month] + " " + " "+ hr + ":" + min + ":" + sec + ""}
else {return day + "-" + monthArray[month] + " " + " "+ hr + ":" + min + ":" + sec 
}
}

function worldClockZone(){
document.getElementById("Guam").innerHTML = worldClock(+10, "NAmerica")
document.getElementById("LosAngeles").innerHTML = worldClock(-8, "NAmerica")
document.getElementById("Hawaii").innerHTML = worldClock(-10, "NAmerica")

setTimeout("worldClockZone()", 1000)
}
window.onload=worldClockZone;

//-->

