﻿function searchField(){
    if (arguments.callee.done) return;
    arguments.callee.done = true;

			var trim = /(^\s+)|(\s+$)/g;
			var obj = document.getElementById('msviLSBtbox');
			var _phrase = "Поиск на веб-сайте Microsoft.com";

				obj.onfocus = function(){if (obj.value.replace(trim,'')==_phrase){obj.value=''}obj.className=''}
				obj.onblur = function(){if (obj.value.replace(trim,'')=='') {obj.value=_phrase; obj.className='noactive';}};
                
                
				obj.form.onsubmit = function(){
					if(obj.value.replace(trim,'')==_phrase){
					    obj.value = "";						    				    
					}					
				}
}

