	function MM_jumpMenu(targ,selObj,restore){ //v3.0
  eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");
  if (restore) selObj.selectedIndex=0;
}

	function tsearch(t)
	{
		document.getElementById(t).checked = true;
		document.sf.action = 'search.php';
		document.sf.method = 'get';
		document.sf.submit();
	}

	function fsubmit()
	{

		if(document.getElementById('forum').checked == true)
		{
			document.sf.action = 'http://forum.{$SubDomain}search.php';
			document.sf.method = 'post';
			document.getElementById('st').value = document.getElementById('q').value;
		}
	    else
	    {
	    	document.sf.action = 'search.php';
    		document.sf.method = 'get';
	    }

           document.sf.submit();
	}

	function searchforum()
	{
		document.getElementById('forum').checked = true;
    	document.sf.action = 'http://forum.{$SubDomain}search.php';
    	document.sf.method = 'post';
		document.getElementById('st').value = document.getElementById('q').value;
    	document.sf.submit();
	}


  function openwindow(w,h,url,full,scroll){
		var s;
        var cx=screen.width/2-w/2;
        var cy=screen.height/2-h/2;
		var wn="window"+Math.round((Math.random())*1000);
        if(scroll){s="scrollbars=yes";}else{s="scrollbars=no";};
		if(full){neww=window.open(url,wn,"fullscreen=no, width="+screen.availWidth+", height="+screen.availHeight+", "+s+", status=no, toolbar=no, menubar=no, resizable=no, alwaysLowered=yes, top=0, left=0");}
		else{neww=window.open(url,wn,"fullscreen=no, width="+w+", height="+h+", "+s+", status=no, toolbar=no, menubar=no, resizable=no, alwaysLowered=yes, top="+cy+", left="+cx);};
	};

function refresh_code(code)
{
    xajax_captcha(code);
}

