//<script>

function openSitemap( href )
{
	window.open(href, "sitemap", "width=300,height=500,scrollbars=yes,resizable=yes");
}


function resetSuche()
{
	if ( document.suche.suchbegriff.value == 'Suche' )
	{
		document.suche.suchbegriff.value = '';
	}
}


function newsTable( news )
{
	if (screen.availWidth > 960)
	{
		document.open();
		document.write(news);
		document.close();
	}
}


function isValidEmail( email )
{
 	var a	= false;
 	var res	= false;
 
 	if( typeof( RegExp ) == 'function' )
 	{
  		var b = new RegExp( 'abc' );
  		
  		if ( b.test( 'abc' ) == true )
  			a = true;
  	}

 	if ( a == true )
 	{
  		reg = new RegExp( 	'^([a-zA-Z0-9\\-\\.\\_]+)' +
                   				'(\\@)([a-zA-Z0-9\\-\\.]+)' +
                   				'(\\.)([a-zA-Z]{2,4})$');
  		res = ( reg.test( email ) );
 	}
 	else
 	{
  		res = ( email.search( '@' ) >= 1 &&
         		email.lastIndexOf( '.' ) > email.search( '@' ) &&
         		email.lastIndexOf( '.' ) >= email.length-5 )
 	}
 	
 	return( res );
}
