// JavaScript Document
function openWindow(WinURL, WinName, iWidth, iHeight) {
	var w;
	w = window.open(WinURL, WinName, "width=" + iWidth + ",height=" + iHeight + ",toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=0,resizable=0");
	w.focus();
}

function isValidEmail(str) {
   return (str.indexOf(".") > 2) && (str.indexOf("@") > 0);
}

function checkSearch() {
	var sErrMsg = "";
	
	if (document.searchForm.SearchText.value.length == 0) {
		alert("Please enter text for your search.");
		
		return false;
	} else {
		return true;
	}
}
