re.useOnState = false;

function init() {

}

window.onload = init;

function validateSearch(fObj) {
	return;
}

function focusField(obj) {
	if (obj.value == "Search") obj.value = "";
}

function blurField(obj) {
	if (obj.value == "") obj.value = "Search";
}

function filterPage(fObj) {
	var url = "?";
	
	if (typeof(fObj["cat"]) != "undefined") {
		if (fObj["cat"].selectedIndex > 0) {
			url += "cat=" + fObj["cat"].options[fObj["cat"].selectedIndex].value;
		} 
	}
	
	if (typeof(fObj["type"]) != "undefined") {
		if (fObj["type"].selectedIndex > 0) {
			url += ((url != "?")? "&" : "") +  "type=" + fObj["type"].options[fObj["type"].selectedIndex].value;
		}
	}
	
	location.href = (url != "?")? url : location.pathname;
}

function popUp(flashURL, width, height, extras) {
	day = new Date();
	width = (typeof(width) == "undefined")? 550 : width;
	height = (typeof(height) == "undefined")? 400 : height;
	
	extras = "width=" + width + ",height=" + height + "," + ((typeof(extras) != "undefined")? extras : "toolbar=1,scrollbars=0,location=0,statusbar=0,menubar=0,resizable=0");
	newWin = window.open(flashURL, "newWin", extras);
	
	newWin.focus();
}

function popReg() {
	return
	//popUp("/contact/one_time_pop.aspx",250,250,"")
}

function stuntSwap() {
	return
}

