| 
		
			Сообщение от Bad Request
			
		
	 | 
	| 
		Скажите, а можно написать универсальную функцию, чтобы она меняла фон и текст при обращении к любому полю в форме?
	 | 
	
<form>
<input type="text" onfocus="this.style.background='#FFF0C6'" onblur="this.style.background=''"/>
<p>
<textarea cols="40" rows="10" onfocus="set_style(style)" onblur="this.style.background=''">
</textarea>
</p>
</form>
function set_style(obj) {
  obj.style.fontStyle = "italic";
  obj.style.color = "red";
  obj.style.fontWeight = "bold";
}