// Includes many functions for checking various form elements
// Andy Weeks
// 04/03/04
//
//
// Includes the following:
// function openWin(theURL,winName,features)				Open a popup window
// function setDefaultImage(image, path)					This will change the image if no property image is found


// This function
function goSortSubmit(orderby,orderdir,extra) {
	if(document.dropDownForm) {
		document.dropDownForm.action = "?orderby=" + orderby + "&orderdir=" + orderdir + "&extra=" + extra
		document.dropDownForm.submit();
	} else {
		location.href = "?orderby=" + orderby + "&orderdir=" + orderdir + "&extra=" + extra;
	}
}


// Open a popup window
function openWin(theURL,winName,features) {
	var newWin = window.open(theURL,winName,features);
	newWin.focus();
	return newWin;
}


// This will change the image if no property image is found
function setDefaultImage(image, path)
{
	image.src = path + "images/default.gif";
}
