function prepareForms(){
	
	var input = document.getElementsByTagName("input"); 
	for (i=0; i<input.length; i++){
		if (input[i].getAttribute("type") == "text"){
			input[i].onfocus = function(){
				if (this.value == this.defaultValue) {
      				this.value = "";
					this.className = "inputBG";
     			}
			}
			input[i].onblur = function() {
      			if (this.value == "") {
        			this.value = this.defaultValue;
					this.className = "";
      			}
			}
		}
	}
	
	input = document.getElementsByTagName("select"); 
	for (i=0; i<input.length; i++){
			input[i].onfocus = function(){
				this.className = "inputBG";
			}
			input[i].onblur = function() {
				this.className = "";
			}

	}
	
	input = document.getElementsByTagName("textarea"); 
	for (i=0; i<input.length; i++){
			input[i].onfocus = function(){
				this.className = "inputBG";
			}
			input[i].onblur = function() {
				this.className = "";
			}

	}
	
	
	
	
}

function validateForm(whichForm){
}

function isFilled() {
  if (field.value.length < 1 || field.value == field.defaultValue) {
    return false;
  } else {
    return true;
  }
}

function isEmail() {
  if (field.value.indexOf("@") == -1 || field.value.indexOf(".") == -1) {
    return false;
  } else {
    return true;
  }
}

addLoadEvent(prepareForms);