// JavaScript Document
function MM_openBrWindow(theURL,winName,features, myWidth, myHeight, isCenter) { //v3.0
  if(window.screen)if(isCenter)if(isCenter=="true"){
    var myLeft = (screen.width-myWidth)/2;
    var myTop = (screen.height-myHeight)/2;
    features+=(features!='')?',':'';
    features+=',left='+myLeft+',top='+myTop;
  }
  window.open(theURL,winName,features+((features!='')?',':'')+'width='+myWidth+',height='+myHeight);
}

function CloseMe(act) {
	if (!act) {
		window.opener.location.reload();
	}
	window.opener.focus();
	window.self.close();
}

function valSearch(frm) {
	var q = frm.qry;
	if (q.value == "" || q.value == "Search") {
		alert("Please enter some text for searching");
		q.focus();
		return false;
	} else if (q.value.length < 3) {
		alert("Your search query ('"+q.value+"') is too short,\t\rPlease re-enter search query");
		q.focus();
		return false;
	}
}

function srchFocus(box) {
	if (box.value == "Search") {
		box.value = "";		
	}
	box.style.borderColor = "#000000";
}
function srchBlur(box) {
	if (box.value == "") {
		box.value = "Search";
	}
	box.style.borderColor = "";
}
