/=====================================================//
function gotoURL(url){
  document.location = url;
}
//**********************************************************************************
function OnFocusKeyword( TextObj ) 
{ 
  if ( TextObj.value == "keyword search" )
  {
    TextObj.value = ""
  }
}

//**********************************************************************************
function printShelf() {
   var frmObj = document.forms["goRecord"];
   frmObj.action = "index.php?_function=shelf&_subFunction=printList";
   frmObj.target = "printShelf";

   w = 700;
   h = 600;
   windowString = "height=" + h + ",width=" + w + ",scrollbars=yes," +
                  "resizable=yes,left=" + (screen.width-w)/2 + ",top=" + 
                  (screen.height-h)/2
   wind = window.open( "" , "printShelf", windowString);
   frmObj.submit();
} 

//**********************************************************************************
function exportShelf() {
   var frmObj = document.forms["goRecord"];
   frmObj.action = "index.php?_function=shelf&_subFunction=exportList";
   frmObj.target = "iframeExport";
   frmObj.submit();
} 

//**********************************************************************************
function emailShelfForm() {
   var frmObj = document.forms["goRecord"];
   frmObj.action = "index.php?_function=shelf&_subFunction=emailForm";
   frmObj.submit();
} 

//**********************************************************************************
function emailShelf() {
   var frmObj  = document.forms["goRecord"];
   var emailTo = document.forms["EmailForm"].elements["email"].value;
   var emailCC = document.forms["EmailForm"].elements["emailCC"].value;
   frmObj.action = "index.php?_function=shelf&_subFunction=emailList&email=" + emailTo + "&emailCC=" + emailCC;
   frmObj.submit();
} 
//**********************************************************************************

function printReport() {
   var frmObj              = document.forms["goRecord"];
   frmObj.action           = "index.php?_function=log&_subFunction=printReport";

   var selIndex            = document.forms["search"].reportType.selectedIndex;
   frmObj.reportType.value = document.forms["search"].reportType[selIndex].value;

   frmObj.target           = "printReport";

   w = 700;
   h = 600;
   windowString = "height=" + h + ",width=" + w + ",scrollbars=yes," +
                  "resizable=yes,left=" + (screen.width-w)/2 + ",top=" + 
                  (screen.height-h)/2
   wind = window.open( "" , "printReport", windowString);
   frmObj.submit();
} 

//**********************************************************************************
