function popUpPhotos(url) {
	sealWin=window.open(url,"win",'toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=1,resizable=1,width=600,height=627');
	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=445,height=500');
	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=0,resizable=1,width=570,height=465');
	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 popUpVTour(url) {
	window.open(url,"win",'toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=0,resizable=0,width=980,height=600');
	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) {
		document.getElementById(photo).src = thumb;
		document.getElementById('pic_name').innerHTML = title;
		if(isVert == 1) var width = 180;
		else var width = 280;
		document.getElementById(photo).style.width = width+"px";
}
