//<![CDATA[
		   
var d = new Date();
var year = d.getFullYear();

function getObj(name)
{
  if (document.getElementById)
  {
  	this.obj = document.getElementById(name);
	this.style = document.getElementById(name).style;
  }
  else if (document.all)
  {
	this.obj = document.all[name];
	this.style = document.all[name].style;
  }
  else if (document.layers)
  {
   	this.obj = document.layers[name];
   	this.style = document.layers[name];
  }
}

function clearOnFocus(type)
{
  if (!document.getElementsByTagName) return false;
  var fields = document.getElementsByTagName(type);
  for (var i=0; i < fields.length; i++) {
    if (fields[i].className.match("clearonfocus")) {
      fields[i].onfocus = function() {
        if (this.value == this.defaultValue) {
          this.value = "";
          return false;
		}
      }
	  fields[i].onblur = function() {
        if (this.value == "") {
          this.value = this.defaultValue;
          return false;
		}
      }
    }
  }
}

function doButtonImages() {
  if (!document.getElementsByTagName) return false;
  var inputs = document.getElementsByTagName("input");
  for (var i=0; i < inputs.length; i++) {
    if (inputs[i].type=="submit" || inputs[i].type=="button") {
      	inputs[i].onmouseover = function() {this.className += "Hover";}
		inputs[i].onmouseout = function() {this.className = this.className.replace(/Hover/g, "");}
    }
  }
}

window.onload = function ()
{
	clearOnFocus('input');
	clearOnFocus('textarea');
	doButtonImages();
	
	var exists = false;
	
	try
	{
		if (customOnLoad)
			exists = true;
	}
	catch(e){}

	if (exists)
		customOnLoad();
	
}
//]]>