<!--

   // Set default size value
   var original_divHeight = 410;

   // Replace specified text from string
   function replaceAll( str, from, to )
   {
      var idx = str.indexOf( from );

      while ( idx > -1 )
      {
         str = str.replace( from, to ); 
         idx = str.indexOf( from );
      }

      return str;
   }
   
   // Trims file path from file string value.
   function getFileName(str)
   {
      var idx = str.indexOf("\\");
      
      while (idx > -1)
      {
         str = str.substring(idx + 1, str.length);
         idx = str.indexOf("\\");
      }

      return str;
   }

   // Trims string of any white spaces
   function trimAll(sString) 
   {
      while (sString.substring(0,1) == ' ')
      {
      sString = sString.substring(1, sString.length);
      }

      while (sString.substring(sString.length-1, sString.length) == ' ')
      {
      sString = sString.substring(0,sString.length-1);
      }
      return sString;
   }
   
   // Marks strings with an asterisk if it is different from an old string
   function markNewEntry(newStr, oldStr)
   {
      return (newStr != oldStr) ? newStr + " *" : newStr;
   }
   
   // Checks for an empty string and replaces it with
   // a new string you specify
   function checkEmptyString(checkStr, replaceStr)
   {
      return (checkStr == "" || checkStr == null) ? replaceStr : checkStr;
   }
   
   // Compares two strings, returns 1 if they match, and 0 if they do not.
   function compTwoStrings(str1, str2)
   {
      return (str1 == str2) ? 1 : 0;
   }

   // Finds the height of a div tag or any tag.
   function getDivHeight(divID)
   {
      var divTag = document.all ? document.all[divID] : document.getElementById(divID);
      return divTag.style.height;
   }
   
   // Find the Scroller's Y Position in a browser
   function getScrollY()
   {
    if ( document.documentElement && document.documentElement.scrollTop ){
      return document.documentElement.scrollTop;
    }else if ( document.body && document.body.scrollTop ){
      return document.body.scrollTop;
    }else if ( window.pageYOffset ){
      return window.pageYOffset;
    }else if ( window.scrollY ){
      return window.scrollY;
    } else {
      return 0;
    }
   }
   
   // Dynamically moves a div to the top of the screen
   function attachDivToScrollY_Top(divID)
   {
      var jb = document.all ? document.all[divID] : document.getElementById(divID);

      jb.style.top = getScrollY();
   }

   // Dynamically Sets the top style of a div tag.
   // Used to dynamically move a div when the page scrolls or resizes
   function jobCornerTop(divID)
   {
      var jb = document.all ? document.all[divID] : document.getElementById(divID);
      var scrY = getScrollY();
      
      // Get new position:
      var newTop = scrY + (document.body.clientHeight - 73);
      var newLeft = (document.body.clientWidth - 59);
      
      // Make sure our top is not too short.
      if(newTop < 10) {
         newTop = 10;
      }
      
      // Make sure our left is not too short.
      if(newLeft < 250) {
         newLeft = 250;
      }

      jb.style.top = newTop;
      jb.style.left = newLeft;
   }

   // Dynamically Resizes a div or any tag to the page's height.
   function jobLinkHeight(divID)
   {
      var jb = document.all ? document.all[divID] : document.getElementById(divID);
      var scrY = getScrollY();

      // Get new height:
      var newHeight = scrY + (document.body.clientHeight - 76);

      // Make sure our height is not too short.      
      if(newHeight < original_divHeight) {
         newHeight = original_divHeight;
      }

      jb.style.height = newHeight + 'px';
   }

   function CenterDiv(divID, default_width)
   {
      var jb = document.all ? document.all[divID] : document.getElementById(divID);

      // Get document body width and height
      var db_hgt = document.body.clientHeight
      var db_wid = document.body.clientWidth

      var wa_hgt = (document.body.clientHeight - 110);
      var wa_wid = default_width;

      jb.style.height = wa_hgt + 'px';
      //jb.style.width = wa_wid + 'px';

      var top = (db_hgt - wa_hgt) / 2;
      var left = (db_wid - wa_wid) / 2;

      jb.style.top = top + 'px';
      jb.style.left = left + 'px';
   }

// -->