function oeffnen(url, width, height, Varname,WindowName,scrollbarsasvar) {
	if(WindowName=='')
		WindowName='NewWindow';
	if(scrollbarsasvar==undefined || scrollbarsasvar=='')
		WindowScrollbars='no';
	else
		WindowScrollbars='yes';
	var win=window.open(url,WindowName,'width=' + width + ',height=' + height + ',resizable=0,scrollbars='+ WindowScrollbars +',menubar=no,status=no,left=50,top=50');
	win.OpenerWindow = this;
}
function emailCheck(s,errortext)
	{
	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(s));}
	else
		{res = (s.search('@') >= 1 && s.lastIndexOf('.') > s.search('@') && s.lastIndexOf('.') >= s.length-5)} 
	if(!res)
		alert(errortext);
	return(res);
	}
function emailCheckold(emailtxt,errortext) {
//txt=document.isn.email.value;
txt=emailtxt;
if (txt.indexOf("@")<2)
	{
	alert(errortext)
	return false;
	}
if(txt.length-txt.indexOf(".")>5)
	{
	alert(errortext);
	return false;
	}
	
return true;
}
function plzCheck(plztext,errortext)
{
	if(plztext.indexOf("-")!=1)
	{
	alert(errortext)
	return false;
	}
return true;
}
function str_replace(search,replace,string)
{
while (string!=string.replace(search,replace))
	string=string.replace(search,replace);
return string;
}
