// JavaScript Document

function redirect_plz(){
	window.location.href = '/index.php/calpam/' + document.suche_plz.SearchText.value;
	return true;
}

function redirect_ort(){
	window.location.href = '/index.php/calpam/' + document.suche_ort.SearchText.value;
	return true;
}

function redirect_ts(){
	if(document.suche_ts.SearchText_ts.value == "Kraftstoffart"){
		alert('Bitte waehlen Sie eine Kraftstoffart!');
		return false;
	}else{
		window.location.href = '/index.php/calpam/' + document.suche_ts.SearchText_ts.value;
		return true;
	}
}

function show_content(id){
	
	/*var newtext="<img src='/images/pfeil.gif' border='0' alt='' title='' />&nbsp;<a href='#" +id+ "' onclick=javascript:show_content('" +id+ "'); title='Zur&uuml;ck'>Zur&uuml;ck</a>";
	var oldtext="<img src='/images/pfeil.gif' border='0' alt='' title='' />&nbsp;<a href='#" +id+ "' onclick=javascript:show_content('" +id+ "'); title='Weiterlesen'>Weiterlesen</a>";*/
	
	if (document.getElementById(id).style.display == 'none')
	{
		document.getElementById(id).style.display = "";
		//document.getElementById('lb'+id).innerHTML = newtext;
	}
	else
	{
		document.getElementById(id).style.display = "none";
		//document.getElementById('lb'+id).innerHTML = oldtext;
	}
}

/* Bookmark site */
function bookIt(argVal,lang){
	var bookData = new Array();
	bookData = argVal.split("|");
	if(document.all){
		window.external.AddFavorite(bookData[0], bookData[1]);
	}else{
		alert("Mozilla/Netscape-Benutzer koennen die Seite nur manuell mit <Strg-D> bookmarken!");
	}
	return false;
}