function print_html(HTML) 
	{
	new_window = open("","temp",'resizable=no,width=690,height=600,menubar=yes,status=no,scrollbars=yes');
	new_window.document.open();
	new_window.document.writeln("<html><head></head><body onload='window.print();window.close();'>" + HTML + "</body></html>\n");
	new_window.document.close();
	return false;
	}

sfFocus = function() 
	{
		tagTypes = ['input','select'];
		for (var i=0; i<tagTypes.length; i++)
		{
			var sfEls = document.getElementsByTagName(tagTypes[i]);
			for (var j=0; j<sfEls.length; j++) 
			{
				sfEls[j].onfocus=function() 
				{
					this.className+=" sffocus";
				}
				sfEls[j].onblur=function() 
				{
					this.className=this.className.replace(new RegExp(" sffocus\\b"), "");
				}
			}
		}
	}

if (window.attachEvent) window.attachEvent("onload", sfFocus);