$(document).ready(function() {
	$("#s").focus(
	function () {if($(this).val() == '???') $(this).val('');});
	$("#s").blur
	(function () {if($(this).val() == '') $(this).val('???');});

	$("tr").hover(
	function () {$(this).addClass("tabletr-act");},
	function () {$(this).removeClass("tabletr-act");}
	);
});

function CopyToClipboard(txt) {
        if(window.clipboardData) {
          window.clipboardData.setData("Text", txt);
        }
        else {
          var fc = document.getElementById("flashCopier");
          if(!fc) {
            fc = document.createElement("div");
            fc.id = "flashCopier";
            document.body.appendChild(fc);
          }
          fc.innerHTML = '<embed src="/js/clipboard.swf" FlashVars="clipboard=' +
            encodeURIComponent(txt) +
            '" width="0" height="0" type="application/x-shockwave-flash"></embed>';
    }
    return false;
}
function setHomePage(obj, sethome)
{
	url = window.location.href;
	title = document.title;
	if(window.sidebar && sethome==false)
	{
		/* Mozilla Firefox Bookmark */
		window.sidebar.addPanel(title, url, "");
		return false;
	}
	else
	if( window.external )
	{
		/* IE homePage */
		if(sethome && obj.style.behavior=='' && obj.setHomePage==undefined)
		{
			obj.style.behavior='url(#default#homepage)';
			obj.setHomePage(url);
			return false;
		}
		else
		if(sethome==false)
		{
			window.external.AddFavorite(url, title);
			return false;
		}
	}
	else
	if(window.opera && window.print)
	{
		/* Opera */
		/*
		var mbm = document.createElement('a');
		mbm.setAttribute('rel','sidebar');
		mbm.setAttribute('href',url);
		mbm.setAttribute('title',title);
		mbm.click();
		*/
		return true;
	}
	else
	if(netscape.security && sethome)
	{
		/* Netscape */
		netscape.security.PrivilegeManager.enablePrivilege("UniversalPreferencesWrite");
		navigator.preference("browser.startup.homepage", url);
		return false;
	}
	return true;
}

