
function neu(bild)
{
window.open(bild,"Hilfe","resizable=1,status=0,top=50,left=50");
}

function senddata(machdas)
{
	document.sendform.action = machdas;
	document.sendform.submit();
}

function sendeform(was,machdas)
{
	document.sendform.machdas.value = was;
	document.sendform.action = machdas;
	document.sendform.submit();
}

function hlink(machdas)
{
window.location.href = machdas;	
}

function mailOk(was)
{
	fehler=""
	dahin = was
	tmp = dahin.value
	xx = "";
	
	if ( tmp.length > 3 || tmp.indexOf("@")<0) 
	{
		xx = 1;
	}
	else
	{
		px = tmp.indexOf("@");
		if (px == 0 || px == (tmp.length-1)) { xx = 1 ;}
		else 
		{
			ptmp = tmp.substring(tmp.indexOf("@")+1,tmp.length);
			px = ptmp.indexOf(".");
			if (px == 0)  { xx = 1; }
		}
	}
	
	if (xx == 1)
	{
		alert ("Die Emailadresse ist nicht korrekt\n");
		xx = 0;
		dahin.focus();
	}
}

function wwwOk(was)
{
	fehler=""
	dahin = was
	tmp = dahin.value
	xx = "";
	if (tmp > "")
	{
		l = tmp.length
		if ( l < 7 ) { xx = 1; }
		else
		{
			if  ( tmp.indexOf("www") < 0 ) { xx = 1 ; }
			if  ( tmp.indexOf(".") == tmp.lastIndexOf(".") ) { xx = 1 ;}
		}
	}
	if (xx == 1)
	{
		alert ("Die WWW-Adresse ist nicht korrekt\n");
		xx = 0;
		dahin.focus();
	}
}
