function goto(a) 
{
self.location.href=a
}

function showtext(id)
{
	test=document.getElementById("open"+id).style.display;
	if(test=="inline"){
	document.getElementById("open"+id).style.display="none";
	}else{
	document.getElementById("open"+id).style.display="inline";
	}
}

function entfernen(id)
{
Check = confirm("Wollen Sie wirklich löschen?");
	if(Check) document.location.href="index.php?status=account&ctrl=suchen&del="+id;
}
function anzeigen(id)
{
alert(id);
}

function CheckLen(Target) {
 StrLen = Target.value.length
 if (StrLen == 1 && Target.value.substring(0,1) == " ") {
  Target.value = ""; StrLen = 0;
 }

 if (StrLen > 750 ) {
  Target.value = Target.value.substring(0,750);
   CharsLeft = 0;
 }
 else {
  CharsLeft = 750 - StrLen;
 }
 document.new_search.Anzahl.value = CharsLeft;
}


