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];
		}
	}
}



function fwdsearch() {
	url = "/mls/gen/submitForwardSearch.asp?customerID=" + mlsCustomerID;
	scropt = "top=0,left=0,width=350,height=450,center=yes,scrollbars=1";
	window.open(url, "", scropt);
}

function searchEngine() {
	var width = screen.width - 10;
	var height = screen.height - 75;
	var left = 0;
	var url = "/mls/" + path + "/searchEngine.asp?CustomerID=" + mlsCustomerID;
	scropt = "scrollbars,top=0,left=" + left + ",width=" + width + ",height=" + height;
	window.open(url, "", scropt);
}

function searchEngine2() {
	var width = screen.width - 10;
	var height = screen.height - 75;
	var left = 0;
	var url = "/mls/" + path + "/searchEngine2.asp?CustomerID=" + mlsCustomerID;
	scropt = "scrollbars,top=0,left=" + left + ",width=" + width + ",height=" + height;
	window.open(url, "", scropt);
}

function searchEngine2withSource(src) {
	var width = screen.width - 10;
	var height = screen.height - 75;
	var left = 0;
	var url = "/mls/" + path + "/searchEngine2.asp?CustomerID=" + mlsCustomerID + "&dbsource=" & src;
	scropt = "scrollbars,top=0,left=" + left + ",width=" + width + ",height=" + height;
	window.open(url, "", scropt);
}

function movepicture() {
		document.getElementById('bottom').moveTo(0,screen.availHeight - 47);
}