function isIE() {	return (document.all && !window.opera)?true:false;	}

function styleform4ie() {
	var input= document.getElementsByTagName("input");
	var textarea = document.getElementsByTagName("textarea");
	var lni=input.length;
	var lnt=textarea.length;

	for (var i = 0; i < lni; i++){
		if (input[i].type == "text"){		
			input[i].onfocus = function(){ this.className = "textfocus"; }
			input[i].onblur = function(){ this.className = this.type; }
		}
	}
	
	for (var j = 0; j < lnt; j++){
		textarea[j].onfocus = function(){ this.className = "textfocus"; }
		
		textarea[j].onblur = function(){ this.className = this.type; }
	}
}

window.onload = function() { if (isIE())	{ styleform4ie(); }	}