// JavaScript Document

/* 
Because IE6 is crap and doesn't understand CSS properly
Search for all input buttons and add a specific class no matter which browser
*/

/*function makeNiceButtons() {
	if (!document.getElementsByTagName) return false;
	if (!document.getElementsByTagName("input")) return false;
	
	var TheInputs = document.getElementsByTagName("input");
	var IsButton
	
	for ( var i=0; i < TheInputs.length; i++) {
		
		IsButton = TheInputs[i].getAttribute("type");
		
		if (IsButton == "button" || IsButton == "submit") {
			
			if (TheInputs[i].class != "") {
			
			TheInputs[i].setAttribute((document.all ? 'className' : 'class'), "frmButtons");
			
			}
			
		}
		
	}
	
}*/
/* ############ END MAKE NICE BUTTONS ######################### */

/* ############## CLEAR SEARCH BOX ############################ */
function doClear(theText) {
	if (theText.value == theText.defaultValue) {
         theText.value = ""
     }
 }


/* Custom onload function */

function addLoadEvent(func) {
  var oldonload = window.onload;
  if (typeof window.onload != 'function') {
    window.onload = func;
  } else {
    window.onload = function() {
      oldonload();
      func();
    }
  }
}

/* trigger onload */
/*addLoadEvent();*/
