/* parse the entered query String */
function parseSearchQuery(theForm, message) {
	var queryValue = theForm.elements["query2"].value;
	var testValue = queryValue.replace(/ /g, "");
	if (testValue.length < 3) {
		alert(message);
		return (false);
	}
	theForm.elements["query"].value = queryValue;
	return (true);
}

function submitSearchQuery(theForm, message){
  if (parseSearchQuery(theForm, message))
    theForm.submit();
}

/* open the print version popup window */
function openPrintVersion() {
	var params = "print=true";
	if (document.location.search != "") {
		params = document.location.search + "&" + params;		
	} else {
		params = "?" + params;
	}
	window.open(document.location.pathname + params, "print", "width=670,height=750,dependent=yes,status=no,toolbar=no,location=no,scrollbars=yes");
}


function openDCB(){
 if (navigator.appName == 'Netscape')
      AstronWindow=open("/dcb/index.htm","AstronWindow","menubar=no,status=no,resizable=no,outerwidth=800,outerheight=580,screenX=0,screenY=0,top=0,left=0");

 else
        AstronWindow=open("/dcb/index.htm","AstronWindow","menubar=no,status=no,width=800,height=550,resizable=no,scrollbars=0,fullscreen=no,top=0,left=0");


}