
//======================================================
//TEST FOR SCRIPTING CAPABILITY
//======================================================
  var objectName="main";
  var isCompatible=false;
  var tested=false;


  function setMainBody(appearance) {
     //Check older IE
     if (document.all) {
         document.all[objectName].style.visibility=appearance;
      } 

     //Check later version browsers
      else if (document.getElementById && document.getElementById(objectName) != null) {
       document.getElementById(objectName).style.visibility=appearance;

      //Check older Netscape
      } else if (document.layers) {
       document.layers[objectName].visibility=appearance;
      }
   }
 function setDisplay(objectName, appearance) {
     //Check older IE
     if (document.all) {
         document.all[objectName].style.visibility=appearance;
      } 

     //Check later version browsers
      else if (document.getElementById && document.getElementById(objectName) != null) {
       document.getElementById(objectName).style.visibility=appearance;

      //Check older Netscape
      } else if (document.layers) {
       document.layers[objectName].visibility=appearance;
      }

   }

//======================================================
//TEST FOR BROWSER NAME & VERSION COMPATIBILITY
//======================================================

	var browserArray =  new Array();
	var browserObject=0;

	function Browser( category) {

		this.category=category;
	}


	function addBrowser(category) {
	  browserArray[browserObject++]=new Browser(category);
	}


	function checkBrowserVersion(message) {
	  var browserCompatible=false;
	  var bw=0;
	  for (bw =0; bw < browserArray.length; bw++) {
	    if ( browserArray[bw].category)
	      browserCompatible=true;
          }
	  tested=true;
	  isCompatible=browserCompatible;
          if (! isCompatible) {
           document.write(message);
          }
       }

//======================================================
//CHECK FOR COOKIE ACCEPTANCE
//======================================================

	function checkCookies(message) {
 	  if ( ! navigator.cookieEnabled){

	      alert(message);
	      
	      document.write("Re-configure your browser to accept cookies and then <a 		href='javascript:location.reload();'>Reload this Page</a>");
	   }
	 tested=true;
	 isCompatible=navigator.cookieEnabled;
        }

