/*****************************************************************
  Returns true if string only contains whitespace
                               11/07/01 22:52
*****************************************************************/
function isBlank(string)
{
  for(var i=0; i<string.length; i++) {
    var c = string.charAt(i);
    if((c!=' ') && (c!='\n') && (c!='\t'))
      return false;
  }
  return true;
}  // isBlank

/*****************************************************************
  Returns true if form element is blank
                               11/07/01 22:49
*****************************************************************/
function isFieldEmpty( field_name )
{
 if(field_name.value == null || field_name.value == "" || isBlank(field_name.value))
    return true;
 else
    return false;
}  // isFieldEmpty

		
/*****************************************************************
  Removes white space in a string
                               19/09/02 13:54
*****************************************************************/
function RemoveBlanks(string)
{
 
  var Rebuild = ""
   
  for(var i=0; i<string.length; i++) {
    var c = string.charAt(i);
    if(c!=' '){
      Rebuild = Rebuild + c
   }
  }
  
 return Rebuild
}  // isBlank







	
var iversion = -1;

function version() {
        if (iversion != -1) return iversion;
        if(navigator.appName.indexOf("Netscape") != -1){
                if (navigator.userAgent.indexOf("Mozilla/2.0") != -1)
                                                iversion = 2;
                        else
                            if (navigator.userAgent.indexOf("Mozilla/3.0") != -1)
                                                        iversion = 3;
                                        else
                                        if (navigator.userAgent.indexOf("Mozilla/4.0") != -1)
                                                iversion = 4;
                                        else
                                            iversion = 1;
        }  else {  // Not netscape.
                if(navigator.appName.indexOf("Internet Explorer") != -1){
                     if (navigator.userAgent.indexOf("Mozilla/4.0") != -1)
                                iversion = 4;
                         else
                            iversion = 1;
                     } else
                        iversion = 1;
               }
        return iversion;
}



function	buton(bname)
{
               if (3 <= iversion) {
	imgon	= eval(bname + "on.src");
	document[bname].src	= imgon;}
}
function	butoff(bname)
{
               if (3 <= iversion) {
	imgoff	= eval(bname + "off.src");
	document[bname].src	= imgoff;}
}

if (3 <= version()) {

homeoff          = new Image;
homeoff.src      = "images/buttons/homeoff.gif";
homeon           = new Image;
homeon.src       = "images/buttons/homeon.gif";

thecompanyoff      = new Image;
thecompanyoff.src  = "images/buttons/thecompanyoff.gif";
thecompanyon       = new Image;
thecompanyon.src   = "images/buttons/thecompanyon.gif";

theproductsoff         = new Image;
theproductsoff.src     = "images/buttons/theproductsoff.gif";
theproductson          = new Image;
theproductson.src      = "images/buttons/theproductson.gif";

theservicesoff          = new Image;
theservicesoff.src      = "images/buttons/theservicesoff.gif";
theserviceson           = new Image;
theserviceson.src       = "images/buttons/theserviceson.gif";

hrsupportoff          = new Image;
hrsupportoff.src      = "images/buttons/hrsupportoff.gif";
hrsupporton           = new Image;
hrsupporton.src       = "images/buttons/hrsupporton.gif";

contactusoff          = new Image;
contactusoff.src      = "images/buttons/contactusoff.gif";
contactuson           = new Image;
contactuson.src       = "images/buttons/contactuson.gif";

registeroff          = new Image;
registeroff.src      = "images/buttons/registeroff.gif";
registeron           = new Image;
registeron.src       = "images/buttons/registeron.gif";

disclaimersoff          = new Image;
disclaimersoff.src      = "images/buttons/disclaimersoff.gif";
disclaimerson           = new Image;
disclaimerson.src       = "images/buttons/disclaimerson.gif";

callmebackoff          = new Image;
callmebackoff.src      = "images/buttons/callmebackoff.gif";
callmebackon           = new Image;
callmebackon.src       = "images/buttons/callmebackon.gif";

}