 	function change_tab(id,query,global_option)
	{
		document.getElementById('tab_1').className = 'tab_unselected';
		document.getElementById('tab_2').className = 'tab_unselected';
		document.getElementById('tab_3').className = 'tab_unselected';
		document.getElementById('tab_'+id).className = 'tab_selected';
		
		var searchLabel = new String();
		var padding = new String();
		var global_buton = new String();
		var additionalInformation = new String();
		
		switch(id)
		{
			case 1:
				padding = 120;
				searchLabel = 'Suchbegriff:';
                if(path)
				   additionalInformation = '<INPUT NAME="path" TYPE="RADIO">Alle kategorien<INPUT TYPE="RADIO" NAME="path" VALUE='+path+' CHECKED>'+actual+'</b>';

				global_buton = '';
				break;
			case 2:
				padding = 90;
				searchLabel = 'Such&nbsp;WWW:';
				global_buton = '';
				break;
			case 3:
				padding = 120;
				searchLabel = 'Suche&nbsp;bei&nbsp;eBay.de:';
				global_buton = '';
				break;
		}	
		var html = new String();
		var html_google = new String();
		
        html += '<form accept-charset=\"utf8\" action=\"/search.html\" method=\"post\">';
		html += '<input type=\"hidden\" name=\"tab_id\" value=\"'+id+'\">';
//		html += '<input type=\"hidden\" name=\"path\" value=\"'+path+'\">';
		html += '<table cellpadding=\"3\" cellspacing=\"0\"><tr><td style=\"padding-left:'+padding+'px\">'+searchLabel+'</td><td>';
		html += '<input type=\"text\" name=\"query\" value=\"'+query+'\" id=\"serbut\" autocomplete=\"off\" ';
		html += ' style=\"width:204px\"/></td>'+global_buton+'<td><input type=\"submit\" value=\"Suchen &gt;\"/></td></tr>';
		html += '<tr><td colspan=2 align=right>'+additionalInformation+'</td></tr>';
		html += '</table></form>';

		
		html_google = "<center><!-- SiteSearch Google --><form method='get' action='/index.php' target='_top' style='display:inline'><input type=\"hidden\" name=\"inc\" value=9><input type='hidden' value='google_search' name='google_search' /> <a href='http://www.google.de/'> <img src='http://www.google.com/logos/Logo_25wht.gif' border='0' alt='Google' align='middle'></img></a><input type='hidden' name='domains' value='url'></input><input type='text' name='q' size='31' maxlength='255' value='"+query+"'></input><input type='submit' name='sa' value='Suchen'></input><input type='radio' id='search_all' name='sitesearch' value='' checked></input><label for='search_all' style='cursor: pointer; cursor: hand;'>Web</label><input type='radio' id='web' name='sitesearch' value='{$url}' ></input><label for='web' style='cursor: pointer; cursor: hand;'>oheJ.de</label><input type='hidden' name='client' value='pub-3056834496362787'></input><input type='hidden' name='forid' value='1'></input><input type='hidden' name='ie' value='ISO-8859-1'></input><input type='hidden' name='oe' value='ISO-8859-1'></input><input type='hidden' name='cof' value='GALT:#008000;GL:1;DIV:#336699;VLC:663399;AH:center;BGC:FFFFFF;LBGC:FFFFFF;ALC:0000FF;LC:0000FF;T:000000;GFNT:0000FF;GIMP:0000FF;LH:50;LW:443;L:http://www.yellowpages.pl/img/g_search.gif;S:http://www.yellowpages.pl;FORID:11'></input><input type='hidden' name='hl' value='en'></input></form>";

		
		
//		if (id == 1) {
//		    html += 'onkeyup=\"javascript:xrq=true;\"';
//		} else if (id == 3) {
//		    html += 'onkeyup=\"javascript:xecr(this.value);\"';
//		}

		document.getElementById('tab_content').innerHTML = id==2?html_google:html;
	}

