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=600');
	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=600,height=600');
	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=0,width=400,height=450');
	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 popUpVTour(url) {
	sealWin=window.open(url,"wins",'toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=0,resizable=0,width=810,height=580');
	self.name = "mainWin"; 
}

function clrTD() {
	for (i=1; i<21; i++)
		if (document.getElementById('tdc' + i))
			document.getElementById('tdc' + i).style.background = 'gray';
}
function swap(pic,title,isVert) {
	document.getElementById('propertyImage').src=pic;
	document.getElementById('pic_name').innerHTML=title;
	if(isVert == 1)
	{
		document.getElementById('propertyImage').style.width="223px";
	 	document.getElementById('propertyImage').style.height="299px";
	}	else
	{
		document.getElementById('propertyImage').style.width="398px";
		document.getElementById('propertyImage').style.height="299px";
	}
}