function verifyTheField(thisForm, theFieldId) {
	var theFieldVal	= eval("thisForm."+theFieldId+".value");
	
	if (theFieldVal != "") {
		return true;
	} else {
		alert("Please fill in the search field.");
		return false;
	}
}

<!-- Hide
leftPos = 0
 if (screen){
  leftPos = screen.width-850
 }

var newWindow

// function describes open new window; oc = open close
function oNewWin(ocParam){
    if (!newWindow || newWindow.closed){
       newWindow = window.open("" + ocParam, "newWin","resizable,scrollbars,nomenubar,height=300,width=400,left="+leftPos+",top=120,resizable=1")

                if (!newWindow.opener){
                        newWindow.opener = window
                }
    }
    // window's already open, bring it to the front
    else{
                newWindow.location = "" + ocParam
                newWindow.focus()
    }
}

// End Hide-->


function popImageUpload(url,popname,popwidth,popheight,scrolling) {
     /* this function pops a new window and centers it over the active browser window
      rather than displaying it in the top left corner of the entire desktop space */
     
     var scrollBoolean = "yes";
     if (scrolling) {
          scrollBoolean = scrolling;
     }
     
     var newWidth = 450;
     var newHeight = 200;
     var newTop = 50, newLeft = 200;
     if (window.outerHeight) {
          newTop = window.screenY + ((window.outerHeight - newHeight) / 2);
     } 
     else {
          newTop = window.screenTop + ((document.body.offsetHeight - newHeight) / 2);
     }
     if (window.outerWidth) {
          newLeft = window.screenX + ((window.outerWidth - newWidth) / 2);
     } 
     else {
          newLeft = window.screenLeft + ((document.body.offsetWidth - newWidth) /     2);
     }
     var popupWin = window.open(url, popname, 
          'screenX=' + newLeft +
          ',screenY=' + newTop +
          ',left=' + newLeft +
          ',top=' + newTop +
          ',width=' + newWidth +
          ',height=' + newHeight +
          ',menubar=no' +
          ',toolbar=no' +
          ',location=no' +
          ',status=no' +
          ',resizable=yes' +
          ',scrollbars=' + scrollBoolean);
} 


function popAssetManager(url,popname,popwidth,popheight,scrolling) {
     /* this function pops a new window and centers it over the active browser window
      rather than displaying it in the top left corner of the entire desktop space */
     
     var scrollBoolean = "yes";
     if (scrolling) {
          scrollBoolean = scrolling;
     }
     
     var newWidth = 750;
     var newHeight = 500;
     var newTop = 50, newLeft = 200;
     if (window.outerHeight) {
          newTop = window.screenY + ((window.outerHeight - newHeight) / 2);
     } 
     else {
          newTop = window.screenTop + ((document.body.offsetHeight - newHeight) / 2);
     }
     if (window.outerWidth) {
          newLeft = window.screenX + ((window.outerWidth - newWidth) / 2);
     } 
     else {
          newLeft = window.screenLeft + ((document.body.offsetWidth - newWidth) /     2);
     }
     var popupWin = window.open(url, popname, 
          'screenX=' + newLeft +
          ',screenY=' + newTop +
          ',left=' + newLeft +
          ',top=' + newTop +
          ',width=' + newWidth +
          ',height=' + newHeight +
          ',menubar=no' +
          ',toolbar=no' +
          ',location=no' +
          ',status=no' +
          ',resizable=yes' +
          ',scrollbars=' + scrollBoolean);
} 
function popImage(url,popname,popwidth,popheight,scrolling) {
     /* this function pops a new window and centers it over the active browser window
      rather than displaying it in the top left corner of the entire desktop space */
     
     var scrollBoolean = "yes";
     if (scrolling) {
          scrollBoolean = scrolling;
     }
     
     var newWidth = 300;
     var newHeight = 300;
     var newTop = 50, newLeft = 200;
     if (window.outerHeight) {
          newTop = window.screenY + ((window.outerHeight - newHeight) / 2);
     } 
     else {
          newTop = window.screenTop + ((document.body.offsetHeight - newHeight) / 2);
     }
     if (window.outerWidth) {
          newLeft = window.screenX + ((window.outerWidth - newWidth) / 2);
     } 
     else {
          newLeft = window.screenLeft + ((document.body.offsetWidth - newWidth) /     2);
     }
     var popupWin = window.open(url, popname, 
          'screenX=' + newLeft +
          ',screenY=' + newTop +
          ',left=' + newLeft +
          ',top=' + newTop +
          ',width=' + newWidth +
          ',height=' + newHeight +
          ',menubar=no' +
          ',toolbar=no' +
          ',location=no' +
          ',status=no' +
          ',resizable=yes' +
          ',scrollbars=' + scrollBoolean);
} 