function SearchFocus(blnFocus) {
	var objForm = document.forms('frmSearch');
	if (blnFocus) {
		if (objForm.strText.value == '[Enter Text]') {
			objForm.strText.value = '';
			objForm.strText.style.color = '#F2AD47';
		} else {
			objForm.strText.style.color = '#F2AD47';
		}
	} else {
		if (objForm.strText.value == '') {
			objForm.strText.value = '[Enter Text]'
			objForm.strText.style.color = '#D2FBFE';
		}
	}
}

function submitForm(objSForm) {
	if (objSForm.strText.value == '[Enter Text]' || objSForm.strText.value == '') {
		alert("Please enter text to search by...");
		return false;
	}
	return true
}

function PopUpWindow(url,nm,w,h,rs,tb,sb) {
	var snm = "newwin";   // Window Name  (String)
	var sw = 650;         // Pixel Width  (Integer)
	var sh = 400;         // Pixel Height (Integer)
	var srs = "no";  // Resize     (Boolean)
	var stb = "no";    // Toolbars   (Boolean)
	var ssb = "no"; // Scrollbars (Boolean)
	if (url == "") {
		return;
	} else {
		//alert("url:\n" + url + "\nurl:\n" + url + "\nw:\n" + w + "\nh:\n" + h + "\nrs:\n" + rs + "\ntb:\n" + tb + "\nsb:\n" + sb);
		if (nm != "" && nm != null) {
			snm = nm;
		}
		if (w != "" && w != null) {
			sw = w;
		}
		if (h != "" && h != null) {
			sh = h;
		}
		if (rs != "" && rs != null) {
			srs = "yes";
		}
		if (tb != "" && tb != null) {
			stb = "yes";
		}
		if (sb != "" && sb != null) {
			ssb = "yes";
		}
		window.open(url,snm,'width=' + sw + ',height=' + sh + ',resizable=' + srs + ',toolbar=' + stb + ',scrollbars=' + ssb);
		return;
	}
}

function WindowWidth() {
	if (window.innerWidth) return window.innerWidth;
	else if (document.body && document.body.offsetWidth) return document.body.offsetWidth;
	else return 0;
}

function WindowHeight() {
	if (window.innerHeight) return window.innerHeight;
	else if (document.body && document.body.offsetHeight) return document.body.offsetHeight;
	else return 0;
}

function ScreenWidth() {
	if (window.screen.width) return window.screen.width;
	else return 0;
}

function ScreenHeight() {
	if (window.screen.height) return window.screen.height;
	else return 0;
}

function RelixPop() {
	window.open('/plus/relix_signup.asp','relix','width=400,height=300,scrollbars=yes,tollbar=no,resize=no');
}