function popUpPhotos(url) {
	sealWin=window.open(url,"win",'toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=1,resizable=1,width=627,height=735');
	self.name = "mainWin"; 
}
function popUpSlide(url) {
	sealWin=window.open(url,"wins",'toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=0,resizable=0,width=600,height=400');
	self.name = "mainWin"; 
}
function popUpEmail(url) {
	sealWin=window.open(url,"win1",'toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=1,resizable=1,width=617,height=533');
	self.name = "mainWin"; 
}
function popUpNeighborhood(url) {
	window.open(url,"win",'toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=1,resizable=1,width=780,height=400');
	self.name = "mainWin"; 
}
function popUpCalc(url) {
	sealWin=window.open(url,"win1",'toolbar=0,location=0,directories=0,status=1,menubar=0,scrollbars=1,resizable=1,width=617,height=575');
	self.name = "mainWin"; 
}
function popUpPrint(url) {
	sealWin=window.open(url,"win1",'toolbar=0,location=0,directories=0,status=1,menubar=0,scrollbars=1,resizable=0,width=740,height=585');
	self.name = "mainWin"; 
}

function validateContactForm() {
	if (document.theForm.Email.value == '') {
		alert("The field Email is a required field.\n Please update this field before submitting the form.");
		document.theForm.Email.focus();
		return;
	}
	document.theForm.submit();
}

function clrTD() {
	for (i=1; i<21; i++)
		if (document.getElementById('tdc' + i))
			document.getElementById('tdc' + i).style.background = 'gray';
}
function swap(photo,thumb,title,isVert) {
	try { document.getElementById(photo).src = thumb;
		document.getElementById('pic_name').innerHTML=title;
		if(isVert == 1) {
			document.getElementById(photo).style.width = "168px";
		}	else {
			document.getElementById(photo).style.width = "300px";
		}
	} catch(err) { alert("No property photo element has been defined!\t"); }
}