<!---
  function go_mapmuse(mls,type) {
  	if(type=="single"){
		url="http://wpittsir.mapmuse.com/re1/map_wpittsir_re1.php?sp_theme=WPITTSIR&singlePoint=yes&sp_table=WPITTSIR&sp_id=" + mls + "&symbolName=STAR&sp_zoom=1"
	}else{
		url = "http://wpittsir.mapmuse.com/re1/map_wpittsir_re1.php?sp_theme=WPITTSIR&extent=-73.7773903155+40.8877294539+-71.7494993747+42.1923392924&noOfLayers=2&layer0=WPITTSIR&layer1=WPITTSIR_OFFICES"
	}
	var mmwin =  window.open(url, 'mmwin', 'width=725, height=700, menubar=no, scrollbars=yes, toolbar=no, location=no, resizable=yes');
	mmwin.focus();
 }
 
var cookie = document.cookie;
	function popCookie(name) {
		var index = cookie.indexOf(name + "=");
		if (index == -1) return null;
		index = cookie.indexOf("=", index) + 1;
		var endstr = cookie.indexOf(";", index);
		if (endstr == -1) endstr = cookie.length;
		return unescape(cookie.substring(index, endstr));
	}
	
	function pushCookie(name, value) {
		document.cookie = name + "=" + escape(value) + ";";
	}
	
	function sendToCompare() {
		if (CompareCount <= 1) {
			alert("You need to select more than 1 property to compare")
		} else {
			parent.location = "compareprops.asp?CC=" + CompareCount + "&CL=" + CompareList 
		}
	}
	
	function commitCompareList() {
		pushCookie("CompareList_Cookie", CompareList);
		pushCookie("CompareCount_Cookie", CompareCount);
	}
	
	function addCompare(obj) {
		if (obj.checked == true)
		{
			if (CompareCount == 4) {
				obj.checked = false;
				alert("You can only select up to 4 properties for comparison");
			} else {
				CompareCount = parseInt(CompareCount) + 1;
				CompareList = CompareList + obj.value;
			}
		} else {
			CompareCount = parseInt(CompareCount) - 1;
			CompareList = CompareList.replace(obj.value, "");
		}
	}
	
	function compareClear() {
		CompareList = "";
		CompareCount = 0;
		pushCookie("CompareList_Cookie", "");
		pushCookie("CompareCount_Cookie", "0");
	}


function newimage(arg) { 
	if (document.images) { 
		rslt = new Image(); 
		rslt.src = arg; 
		return rslt; 
	} 
} 

function changeimages() { 
	if (document.images && (preloadFlag == true)) { 
		for (var i=0; i<changeimages.arguments.length; i+=2) { 
			document[changeimages.arguments[i]].src = changeimages.arguments[i+1]; 
			
		} 
	} 
} 

var preloadFlag = false; 
function preloadimages() { 
	if (document.images) { 
		nav_find_a_property1 = newimage("template_files/nav_find_a_property_on.gif"); 
		nav_offices1 = newimage("template_files/nav_offices_on.gif"); 
		nav_associates1 = newimage("template_files/nav_associates_on.gif");
		nav_services1 = newimage("template_files/nav_services_on.gif"); 
		nav_buyer_tools1 = newimage("template_files/nav_buyer_tools_on.gif");
		nav_seller_tools1 = newimage("template_files/nav_seller_tools_on.gif");
		
		mybar_my_account1 = newimage("template_files/mybar_my_account_on.gif");
		mybar_my_searches1 = newimage("template_files/mybar_my_searches_on.gif");
		mybar_my_properties1 = newimage("template_files/mybar_my_properties_on.gif");
		preloadFlag = true; 
	} 
} 

//pops up the mortgage calulator window
function showcalc(HomeID){
	
	pageaddr = "calc.asp?HomeID=" + HomeID
			
	winAtts = "width=240,height=450,toolbar=0,menubar=0,scrollbars=0,resizable=0,status=0,location=0,directories=0,copyhistory=0";
	slidetitle = "Calculator"
	newWindow = window.open(pageaddr, slidetitle, winAtts)
	
}

 function popup_pp(page) {
	window.open( page, 'NEW', 'width=450, height=500, menubar=no, scrollbars=yes, toolbar=no, location=no, resizable=no, top=75, left=75');
 }
//--->