function fixstyle(form1){
	for (var i=0; i < form1.length; i++){
		var goin=false;
		var stype = form1[i].type;
		if (stype){
		//var ctype = form1[i].getAttribute('ctype');
			//if (ctype!=null)
			//	if (ctype.toLowerCase()=='text')
			//		goin=true;
			if ((stype.toLowerCase()=='text')||(stype.toLowerCase()=='textarea')||(stype.toLowerCase()=='file')||(stype.toLowerCase()=='password'))
				goin=true;
			if (goin){					
						if (document.all){
							form1[i].className="txt";
							form1[i].setAttribute("onblur", new Function("this.className='txt'"));
							form1[i].setAttribute("onfocus", new Function("this.className='txt'"));
						}else{
							form1[i].className="txt";
							form1[i].setAttribute("onblur", "this.className='txt'");
							form1[i].setAttribute("onfocus", "this.className='txt'");	
						}
			}
		}
	}
}


