function GotoURL(value)

{

url=value

location.href=url

}
   
 function IsEmptyString(str) {
   
   if (str == "") return true;
   
   var len = str.length;
   for (var cnt = 0; cnt < len; cnt++) {
      var currChar = str.charAt(cnt);
      if ((currChar != ' ') && (currChar != '\n') && (currChar != '\t'))
         return false;
   }

    return true;
   }

   function ValidInput(FormObject, ErrText) {
   
      var val = FormObject.value;
      if (IsEmptyString(val)) {
         alert (ErrText);
         return false;
      }   
      
      return true;   
   }

   function IsNumeric(FormObject, ErrorText) {
   
      if ((!IsEmptyString(FormObject.value)) && (isNaN(FormObject.value))) {
         alert (ErrorText);
         return false;
      }
      
      return true;
      
   }
   
   function OpenPicWindow (url, width, height, left, top, windowname) {
   
      var OpenStyle = "toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=0,resizable=0,width=" + width + ",height=" + height;
      theWindow = window.open(url,windowname, OpenStyle);
      
      var bName = navigator.appName;
      var bVer = parseInt(navigator.appVersion);
      
      if ((bName == "Microsoft Internet Explorer" && bVer >= 4) || (bName == "Netscape" && bVer >= 3)) {
         if ((left != 0) && (top != 0)) theWindow.moveTo(left, top);
         theWindow.focus();
      }
        
   }   
         
   function showpic(urlpath, windowname) {
      OpenPicWindow(urlpath, 390, 280, 10, 160, windowname);
      return false;
   }         
   function OpenEmailWindow (url, width, height, left, top, windowname) {
   
      var OpenStyle = "toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=0,resizable=0,width=" + width + ",height=" + height;
      theWindow = window.open(url,windowname, OpenStyle);
      
      var bName = navigator.appName;
      var bVer = parseInt(navigator.appVersion);
      
      if ((bName == "Microsoft Internet Explorer" && bVer >= 4) || (bName == "Netscape" && bVer >= 3)) {
         if ((left != 0) && (top != 0)) theWindow.moveTo(left, top);
         theWindow.focus();
      }
        
   }   
         
   function showemail(urlpath, windowname) {
      OpenEmailWindow(urlpath, 500, 600, 10, 160, windowname);
      return false;
   }         
