var _____WB$wombat$assign$function_____ = function(name) {return (self._wb_wombat && self._wb_wombat.local_init && self._wb_wombat.local_init(name)) || self[name]; };
if (!self.__WB_pmw) { self.__WB_pmw = function(obj) { this.__WB_source = obj; return this; } }
{
  let window = _____WB$wombat$assign$function_____("window");
  let self = _____WB$wombat$assign$function_____("self");
  let document = _____WB$wombat$assign$function_____("document");
  let location = _____WB$wombat$assign$function_____("location");
  let top = _____WB$wombat$assign$function_____("top");
  let parent = _____WB$wombat$assign$function_____("parent");
  let frames = _____WB$wombat$assign$function_____("frames");
  let opener = _____WB$wombat$assign$function_____("opener");

function checkFeedBack() {
	document.forms[0].visitorName.value = trimSpaces(document.forms[0].visitorName.value);
	if(document.forms[0].visitorName.value.length <= 0) {
		alert("Please enter your name");
		document.forms[0].visitorName.focus();
		return false;
	}

	document.forms[0].emailAddress.value = trimSpaces(document.forms[0].emailAddress.value);
	if(document.forms[0].emailAddress.value.length <= 0) {
		alert("Please enter your email address");
		document.forms[0].emailAddress.focus();
		return false;
	}
	if(!checkEmail(document.forms[0].emailAddress.value)) {
		document.forms[0].emailAddress.focus();
		document.forms[0].emailAddress.select();
		return false;
	}
	document.forms[0].visitorComments.value = trimSpaces(document.forms[0].visitorComments.value);
	if(document.forms[0].visitorComments.value.length <= 0) {
		alert("Please enter your comments");
		document.forms[0].visitorComments.focus();
		return false;
	}
	document.forms[0].frmAction.value = "update";
}


function checkContact(){
	contactname = trimSpaces(document.forms[0].contactname.value);
	contactemail = trimSpaces(document.forms[0].email.value);
	dayphone = trimSpaces(document.forms[0].dayphone.value);
	eveningphone = trimSpaces(document.forms[0].eveningphone.value);
	contactaddress = trimSpaces(document.forms[0].contactaddress.value);
	city = trimSpaces(document.forms[0].city.value);
	state = trimSpaces(document.forms[0].state.value);
	zipcode = trimSpaces(document.forms[0].zipcode.value);

	if(contactname.length <= 0){
		alert("Please enter your name.");
		document.forms[0].contactname.focus();
		return false;
	}
	if(contactaddress.length <= 0){
		alert("Please enter your Address.");
		document.forms[0].contactaddress.focus();
		return false;
	}
	if(city.length <= 0){
		alert("Please enter your City name.");
		document.forms[0].city.focus();
		return false;
	}
	if(state.length <= 0){
		alert("Please enter your State.");
		document.forms[0].state.focus();
		return false;
	}
	if(zipcode.length <= 0){
		alert("Please enter your Zipcode.");
		document.forms[0].zipcode.focus();
		return false;
	}
	if(dayphone.length <= 0){
		alert("Please enter your Day Phone #.");
		document.forms[0].dayphone.focus();
		return false;
	}
	
	if(eveningphone.length <= 0){
		alert("Please enter your evening telephone #.");
		document.forms[0].eveningphone.focus();
		return false;
	}
	
	
	document.forms[0].frmAction.value = "yes";

}
function checkCMA(pageFrom){
	firstname = trimSpaces(document.forms[0].firstname.value);
	lastname = trimSpaces(document.forms[0].lastname.value);
	address = trimSpaces(document.forms[0].address.value);
	city = trimSpaces(document.forms[0].city.value);
	state = trimSpaces(document.forms[0].state.value);
	zipcode = trimSpaces(document.forms[0].zipcode.value);
	
	contactemail = trimSpaces(document.forms[0].email.value);
		

	if(firstname.length <= 0){
		alert("Please enter your first name.");
		document.forms[0].firstname.focus();
		return false;
	}
	
	if(lastname.length <= 0){
		alert("Please enter your last name.");
		document.forms[0].lastname.focus();
		return false;
	}
	
	if(!checkEmail(contactemail)) {
		document.forms[0].email.focus();
		return false;
	}
	if(address.length <= 0){
		alert("Please enter your Address");
		document.forms[0].address.focus();
		return false;
	}
	
	if(city.length <= 0){
		alert("Please enter your City.");
		document.forms[0].city.focus();
		return false;
	}
	if(state.length <= 0){
		alert("Please enter your State.");
		document.forms[0].state.focus();
		return false;
	}
	
	if(zipcode.length <= 0){
		alert("Please enter Zip code.");
		document.forms[0].zipcode.focus();
		return false;
	}

	
		phone1 = trimSpaces(document.forms[0].phone1.value);
		phone2 = trimSpaces(document.forms[0].phone2.value);
		phone3 = trimSpaces(document.forms[0].phone3.value);
		if(phone1.length <= 0){
			alert("Please enter Phone.");
			document.forms[0].phone1.focus();
			return false;
		}
		if(phone2.length <= 0){
			alert("Please enter Phone.");
			document.forms[0].phone2.focus();
			return false;
		}
		if(phone3.length <= 0){
			alert("Please enter Phone.");
			document.forms[0].phone3.focus();
			return false;
		}

	
	document.forms[0].frmAction.value = "yes";

}
function checkHousefinder(){
	contactname = trimSpaces(document.forms[0].contactname.value);
	contactemail = trimSpaces(document.forms[0].contactemail.value);
	pricerange = trimSpaces(document.forms[0].pricerange.value);
	
	contactphone = trimSpaces(document.forms[0].contactphone.value);


	if(contactname.length <= 0){
		alert("Please enter your name.");
		document.forms[0].contactname.focus();
		return false;
	}
	if(!checkEmail(contactemail)) {
		document.forms[0].contactemail.focus();
		return false;
	}
	if(pricerange.length <= 0){
		alert("Please enter Price range");
		document.forms[0].pricerange.focus();
		return false;
	}
	checkedCount = 0;
	for(i=0;i < document.forms[0].property.length; i++)
	{
		if(document.forms[0].property[i].checked)
		{
			checkedCount ++;
		}
		
	}
	if(checkedCount == 0)
	{
		alert("Please select a Property type");
		document.forms[0].property[0].focus();		
		return false;
	}
	
	
	document.forms[0].frmAction.value = "yes";

}

function doSearch(pageName) {
	searchKey = trimSpaces(document.searchForm.searchKey.value);
	if(searchKey.length <= 0) {
		alert("Please enter a keyword to search with");
		document.searchForm.searchKey.focus();
		return;
	}
	else {
		searchKey = escape(searchKey)
		if(pageName == "sub") {
			window.location.href = "searchPage.php?searchKey=" + searchKey;
		}
		else {
			window.location.href = "php/0100fram.php?url=searchPage.php?searchKey=" + searchKey;
		}
	}
}
function showPictureSingle(fileid) {
	sWidth = screen.availWidth;
	sHeight = screen.availHeight;
	
	winWidth = 600;
	winHeight = 500;
	
	sLeft = (sWidth - winWidth) / 2;
	sTop = (sHeight - winHeight) / 2;

	window.open("showPictureSingle.php?testid=" + fileid, "hilltop", "width=" + winWidth + ",height=" + winHeight + ",top=" + sTop + ",left=" + sLeft + ",toolbar=0,menubar=0,status=0,scrollbars=1,resizable=0");
	return;
}

function showPicture(galleryid, photoType) {
	sWidth = screen.availWidth;
	sHeight = screen.availHeight;
	
	winWidth = 600;
	winHeight = 500;
	
	sLeft = (sWidth - winWidth) / 2;
	sTop = (sHeight - winHeight) / 2;

	window.open("showPictureFrame.php?galleryid=" + galleryid + "&photoType=" + photoType, "hilltop", "width=" + winWidth + ",height=" + winHeight + ",top=" + sTop + ",left=" + sLeft + ",toolbar=0,menubar=0,status=0,scrollbars=1,resizable=0");
	return;
}
function showPicturePrd(productid, photoType,categoryid) {
	sWidth = screen.availWidth;
	sHeight = screen.availHeight;
	
	winWidth = 600;
	winHeight = 500;
	
	sLeft = (sWidth - winWidth) / 2;
	sTop = (sHeight - winHeight) / 2;

	window.open("showPictureFrame.php?productid=" + productid + "&photoType=" + photoType + "&category="+categoryid, "picture", "width=" + winWidth + ",height=" + winHeight + ",top=" + sTop + ",left=" + sLeft + ",toolbar=0,menubar=0,status=0,scrollbars=1,resizable=0");
	return;
}
function closeWindow() {
	parent.window.opener.window.focus();
	parent.window.close();
}

function printWindow() {
	parent.mainFrame.focus();
	window.print(parent.mainFrame);
}

function hideText(frmElement){
	frmObject = eval("document.forms[0]." + frmElement);
	frmObject.value = "";
}

function checkSubscription() {
	
	firstName = trimSpaces(document.forms[0].firstName.value);
	if(firstName.length <= 0) {
		alert("Please enter your first name.");
		document.forms[0].firstName.focus();
		return false;
	}
	
	lastName = trimSpaces(document.forms[0].lastName.value);
	if(lastName.length <= 0) {
		alert("Please enter your last name.");
		document.forms[0].lastName.focus();
		return false;
	}
	
	subscriberEmail = trimSpaces(document.forms[0].subscriberemail.value);
	if(subscriberEmail.length <= 0) {
		alert("Please enter your email.");
		document.forms[0].subscriberemail.focus();
		return false;
	}
	if(subscriberEmail.length > 0){
		if(!checkEmail(subscriberEmail)){
			document.forms[0].subscriberemail.focus();
			return false;
		}
	}
	
	document.forms[0].frmAction.value = "update";

}

function submitListings(){
	rangeid = document.forms[0].pricerange.options[document.forms[0].pricerange.selectedIndex].value;
	
	if(rangeid.length <= 0){
		alert("Please select a price range");
		document.forms[0].pricerange.focus();
		return false;
	}
	else{
		document.forms[0].action = "php/subFrame.php?rangeid=" + rangeid;
		document.forms[0].submit();
	}
	//alert(rangeid);
	return false;
}

function showPhoto(field,houseid) {
	sWidth = screen.availWidth;
	sHeight = screen.availHeight;
	
	winWidth = 600;
	winHeight = 550;
	
	sLeft = 100;
	sTop = 10;

	window.open("showPicture1.php?field=" + field + "&houseid=" + houseid, "picture", "width=" + winWidth + ",height=" + winHeight + ",top=" + sTop + ",left=" + sLeft + ",toolbar=0,menubar=0,status=0,scrollbars=1,resizable=0");
	
	return;
}

function checkEmailClub() {
	
	name = trimSpaces(document.forms[0].name.value);
	if(name.length <= 0) {
		alert("Please enter your name.");
		document.forms[0].name.focus();
		return false;
	}
	
	zip = trimSpaces(document.forms[0].zip.value);
	if(zip.length <= 0) {
		alert("Please enter your zip.");
		document.forms[0].zip.focus();
		return false;
	}
	dayphone = trimSpaces(document.forms[0].dayphone.value);
	if(dayphone.length <= 0) {
		alert("Please enter your day phone number.");
		document.forms[0].dayphone.focus();
		return false;
	}
	email = trimSpaces(document.forms[0].email.value);
	if(email.length <= 0) {
		alert("Please enter your email.");
		document.forms[0].email.focus();
		return false;
	}
	if(email.length > 0){
		if(!checkEmail(email)){
			document.forms[0].email.focus();
			return false;
		}
	}
	document.forms[0].frmAction.value = "update";

}
function showWin(url) {
	sWidth = screen.availWidth;
	sHeight = screen.availHeight;
	
	winWidth = 600;
	winHeight = 500;
	
	sLeft = (sWidth - winWidth) / 2;
	sTop = (sHeight - winHeight) / 2;

	window.open(url, "hilltop", "width=" + winWidth + ",height=" + winHeight + ",top=" + sTop + ",left=" + sLeft + ",toolbar=0,menubar=0,status=0,scrollbars=1,resizable=0");
	return;
}

function openWindow(url,window_name,winWidth,winHeight,fscroll) {
	sWidth = screen.availWidth;
	sHeight = screen.availHeight;

	sLeft = (sWidth - winWidth) / 2;
	sTop = (sHeight - winHeight) / 2;

	if(fscroll == '') {fscroll = 0}
	window.open(url,window_name,"width=" + winWidth + ",height=" + winHeight + ",top=" + sTop + ",left=" + sLeft + ",toolbar=0,menubar=0,status=0,scrollbars=" + fscroll + ",resizable=0");
}
function checkRequestShow(){
	name = trimSpaces(document.forms[0].name.value);
	subject = trimSpaces(document.forms[0].subject.value);
	email = trimSpaces(document.forms[0].email.value);
	phone = trimSpaces(document.forms[0].phone.value);
	comments = trimSpaces(document.forms[0].comments.value);

	if(subject.length <= 0){
		alert("Please enter subject.");
		document.forms[0].subject.focus();
		return false;
	}	
	if(name.length <= 0){
		alert("Please enter your name.");
		document.forms[0].name.focus();
		return false;
	}
	if(phone.length <= 0){
		alert("Please enter your Phone #.");
		document.forms[0].phone.focus();
		return false;
	}
	email = trimSpaces(document.forms[0].email.value);
	if(email.length <= 0) {
		alert("Please enter your email.");
		document.forms[0].email.focus();
		return false;
	}
	if(email.length > 0){
		if(!checkEmail(email)){
			document.forms[0].email.focus();
			return false;
		}
	}	
	if(comments.length <= 0){
		alert("Please enter your comments.");
		document.forms[0].comments.focus();
		return false;
	}
	
	document.forms[0].frmAction.value = "yes";
	document.forms[0].submit();
}

function checkEmailProperty(){
	toName = trimSpaces(document.forms[0].toName.value);
	toEmail = trimSpaces(document.forms[0].toEmail.value);
	fromName = trimSpaces(document.forms[0].fromName.value);
	fromEmail = trimSpaces(document.forms[0].fromEmail.value);
	subject = trimSpaces(document.forms[0].subject.value);

	if(toName.length <= 0){
		alert("Please enter Sender Name.");
		document.forms[0].toName.focus();
		return false;
	}
	if(toEmail.length <= 0) {
		alert("Please enter Sender Email.");
		document.forms[0].toEmail.focus();
		return false;
	}
	if(toEmail.length > 0){
		if(!checkEmail(toEmail)){
			document.forms[0].toEmail.focus();
			return false;
		}
	}
	if(fromName.length <= 0){
		alert("Please enter your Name.");
		document.forms[0].fromName.focus();
		return false;
	}
	if(fromEmail.length <= 0) {
		alert("Please enter your Email.");
		document.forms[0].fromEmail.focus();
		return false;
	}
	if(fromEmail.length > 0){
		if(!checkEmail(fromEmail)){
			document.forms[0].fromEmail.focus();
			return false;
		}
	}	


	if(subject.length <= 0){
		alert("Please enter Subject.");
		document.forms[0].subject.focus();
		return false;
	}	

	document.forms[0].frmAction.value = "yes";
	document.forms[0].submit();
}

}
/*
     FILE ARCHIVED ON 03:30:36 Feb 26, 2022 AND RETRIEVED FROM THE
     INTERNET ARCHIVE ON 08:35:18 Jan 30, 2024.
     JAVASCRIPT APPENDED BY WAYBACK MACHINE, COPYRIGHT INTERNET ARCHIVE.

     ALL OTHER CONTENT MAY ALSO BE PROTECTED BY COPYRIGHT (17 U.S.C.
     SECTION 108(a)(3)).
*/
/*
playback timings (ms):
  exclusion.robots: 0.066
  exclusion.robots.policy: 0.055
  cdx.remote: 0.089
  esindex: 0.01
  LoadShardBlock: 240.829 (6)
  PetaboxLoader3.datanode: 211.69 (8)
  load_resource: 211.764 (2)
  PetaboxLoader3.resolve: 96.609 (2)
*/