var enter_taste = 0;
function dtm_search(id) {
	if ( enter_taste != 1 ) {
		document.getElementById("search_id").value = id;
	} else {
		enter_taste = 0;
	}
	document.forms.dtm_search_form_2.submit();
}
function dtm_search_enter(id) {
	document.getElementById("search_id").value = id;
	enter_taste = 1;
	document.forms.dtm_search_form_2.submit();
}

var IE = null;
if (window.navigator.appName == "Microsoft Internet Explorer") {
	if (document.documentMode) {  
		// Internet Exploter 8
		IE = document.documentMode; // documentMode = 8
	}
	else {
		// Internet Explorer 5-7
		IE = 5; //setzt sozusagen den Quirks-Modus
		if (document.compatMode) {
			if (document.compatMode == "CSS1Compat") {
				IE = 7; // IE7 Modus
			}
		}
	}
}

if (IE == 8) {
	document.write('<form action="http://www.detemedien.de/suche/suche.php" method="post" name="dtm_search_form_2" target="_blank">');
	document.write('	<input type="hidden" id="search_id" name="search_id" value="0"/>');
	document.write('	<div style="font-size:12px; font-family:Arial; width:690px; padding-top:15px; height:35px; background-image:url(http://www.detemedien.de/suche/images/bg_2.png); color:#676767; z-index:99;">');
	document.write('		<table border="0" cellpadding="0" cellspacing="0" style="margin:0px 6px 0px 8px;" width="673">');
	document.write('			<tr>');
	document.write('				<td style="padding-right:10px;">');
	document.write('					<strong style="color:#666666; font-size: 11px;">Was/Wen?</strong> <input type="text" id="search_what" name="what" style="width:90px; background-color:white; border:black 1px solid; font-family: Arial; font-size: 10px; color: black;" onkeypress="if(event.keyCode==\'13\') dtm_search_enter(0);" />');
	document.write('				</td>');
	document.write('				<td style="padding-right:10px;">');
	document.write('					<strong style="color:#666666; font-size: 11px;">Wo?</strong> <input type="text" id="search_where" name="where" style="width:90px; background-color:white; border:black 1px solid; font-family: Arial; font-size: 10px; color: black;" onkeypress="if(event.keyCode==\'13\') dtm_search_enter(0);" />');
	document.write('				</td>');
	document.write('				<td style="padding-right:5px;" width="60px">');
	document.write('					<strong style="color:#666666; font-size:12px; display:block;">suchen in</strong>');
	document.write('				</td>');
	document.write('				<td style="padding-right:5px;">');
	document.write('					<a href="javascript:dtm_search(1); void(0);"><img src="http://www.detemedien.de/suche/images/suche_tb.jpg" alt="DasTelefonbuch" style="border:0px;" /></a>');
	document.write('				<td>');
	document.write('				<td style="padding-right:5px;">');
	document.write('					<a href="javascript:dtm_search(3); void(0);"><img src="http://www.detemedien.de/suche/images/suche_gs.jpg" alt="GelbeSeiten" style="border:0px;" /></a>');
	document.write('				</td>');
	document.write('				<td style="padding-right:5px;">');
	document.write('					<a href="javascript:dtm_search(2); void(0);"><img src="http://www.detemedien.de/suche/images/suche_oetb.jpg" alt="DasOertliche" style="border:0px;" /></a>');
	document.write('				</td>');
	document.write('				<td>');
	document.write('					<a href="javascript:dtm_search(4); void(0);"><img src="http://www.detemedien.de/suche/images/suche_suchen.jpg" alt="suchen.de" style="border:0px;" /></a>');
	document.write('				</td>');
	document.write('			</tr>');
	document.write('		</table>');
	document.write('	</div>');
	document.write('</form>');
}
else {
	document.write('<form action="http://www.detemedien.de/suche/suche.php" method="post" name="dtm_search_form_2" target="_blank">');
	document.write('	<input type="hidden" id="search_id" name="search_id" value="0"/>');
	document.write('	<div style="font-size:12px; font-family:Arial; width:690px; height:50px; background-image:url(http://www.detemedien.de/suche/images/bg_2.png); color:#676767; z-index:99;">');
	document.write('		<table border="0" cellpadding="0" cellspacing="0" style="margin:15px 6px 0px 8px;" width="673">');
	document.write('			<tr>');
	document.write('				<td style="padding-right:10px;">');
	document.write('					<strong style="color:#666666; font-size: 11px;">Was/Wen?</strong> <input type="text" id="search_what" name="what" style="width:90px; background-color:white; border:black 1px solid; font-family: Arial; font-size: 10px; color: black;" onkeypress="if(event.keyCode==\'13\') dtm_search_enter(0);" />');
	document.write('				</td>');
	document.write('				<td style="padding-right:10px;">');
	document.write('					<strong style="color:#666666; font-size: 11px;">Wo?</strong> <input type="text" id="search_where" name="where" style="width:90px; background-color:white; border:black 1px solid; font-family: Arial; font-size: 10px; color: black;" onkeypress="if(event.keyCode==\'13\') dtm_search_enter(0);" />');
	document.write('				</td>');
	document.write('				<td style="padding-right:5px;" width="60px">');
	document.write('					<strong style="color:#666666; font-size:12px; display:block;">suchen in</strong>');
	document.write('				</td>');
	document.write('				<td style="padding-right:5px;">');
	document.write('					<a href="javascript:dtm_search(1); void(0);"><img src="http://www.detemedien.de/suche/images/suche_tb.jpg" alt="DasTelefonbuch" style="border:0px;" /></a>');
	document.write('				<td>');
	document.write('				<td style="padding-right:5px;">');
	document.write('					<a href="javascript:dtm_search(3); void(0);"><img src="http://www.detemedien.de/suche/images/suche_gs.jpg" alt="GelbeSeiten" style="border:0px;" /></a>');
	document.write('				</td>');
	document.write('				<td style="padding-right:5px;">');
	document.write('					<a href="javascript:dtm_search(2); void(0);"><img src="http://www.detemedien.de/suche/images/suche_oetb.jpg" alt="DasOertliche" style="border:0px;" /></a>');
	document.write('				</td>');
	document.write('				<td>');
	document.write('					<a href="javascript:dtm_search(4); void(0);"><img src="http://www.detemedien.de/suche/images/suche_suchen.jpg" alt="suchen.de" style="border:0px;" /></a>');
	document.write('				</td>');
	document.write('			</tr>');
	document.write('		</table>');
	document.write('	</div>');
	document.write('</form>');
}

