



function initBgColor(){


if (!document.getElementsByTagName){ return; }

var focusBackgroundColor = "#cfdaf0";
var blurBackgroundColor = "#FFFFFF";

	var inputs = document.getElementsByTagName("input");

	for (var i=0; i<inputs.length; i++){
		var input = inputs[i];

			if ((input.getAttribute("type") == "text") || (input.getAttribute("type") == "password") || (input.getAttribute("type") == "file")){
			
			input.onfocus= function() {this.style.backgroundColor = focusBackgroundColor;};
			input.onblur= function() {this.style.backgroundColor = blurBackgroundColor;};
				
		
			}else if((input.getAttribute("type") == "button") ){
			input.className="button";
			}

		
		}
	
	var inputs = document.getElementsByTagName("textarea");

	for (var i=0; i<inputs.length; i++){
		var input = inputs[i];

			
			
			input.onfocus= function() {this.style.backgroundColor = focusBackgroundColor;};
			input.onblur= function() {this.style.backgroundColor = blurBackgroundColor;};
				
		
			

		
		}


	var selects = document.getElementsByTagName("select");

	
	for (var i=0; i<selects.length; i++){
		var select = selects[i];

		select.onfocus= function() {this.style.backgroundColor = focusBackgroundColor;};
		select.onblur= function() {this.style.backgroundColor = blurBackgroundColor;};
				
		}


return true;
}



