

var win = null;
function NewWindow(mypage,myname,w,h,scroll){
LeftPosition = (screen.width) ? (screen.width-w)/2 : 0;
TopPosition = (screen.height) ? (screen.height-h)/2 : 0;
settings =
'height='+h+',width='+w+',top='+TopPosition+',left='+LeftPosition+',scrollbars='+scroll+',resizable'
win = window.open(mypage,myname,settings)
if(win.window.focus){win.window.focus();}
}


function holehoehe ()
	{
	var myWidth = 0, myHeight = 0;
	if( typeof(window.innerWidth) == 'number' ) 
		{
		//Non-IE
		myWidth = window.innerWidth;
		myHeight = window.innerHeight;
		} 
	  else if( document.documentElement && ( document.documentElement.clientWidth || document.documentElement.clientHeight ) ) 
		{
		//IE 6+ in 'standards compliant mode'
		myWidth = document.documentElement.clientWidth;
		myHeight = document.documentElement.clientHeight;
		} 
	  else if( document.body && ( document.body.clientWidth || document.body.clientHeight ) ) 
		{
		//IE 4 compatible
		myWidth = document.body.clientWidth;
		myHeight = document.body.clientHeight;
		}


	if (myHeight>0) 
		{
		$sizer=myHeight-160;
		document.write('<br><img border=0 src="/images/pt.gif" width="1" height="'+$sizer+'">');
	
		}
	}


function delcheck($link,$frage)
	{
	if ($frage=='') $frage='Sind Sie sicher?';
	if (confirm ($frage))	
		{
		top.location.href=$link;		
		}
	}
	

function check_email(email) 
{

 	var usr    = "([a-zA-Z0-9][a-zA-Z0-9_.-]*|\"([^\\\\\x80-\xff\015\012\"]|\\\\[^\x80-\xff])+\")";
  	var domain = "([a-zA-Z0-9][a-zA-Z0-9._-]*\\.)*[a-zA-Z0-9][a-zA-Z0-9._-]*\\.[a-zA-Z]{2,6}";
  	var regex  = "^" + usr + "\@" + domain + "$";
  	var rgx    = new RegExp(regex);
  	return rgx.exec(email) ? true : false;
}
	



// ===============================================================================================================================

function fieldcolor_normal(idDiv)
{
	if (document.getElementById(idDiv))
		{
		document.getElementById(idDiv).style.backgroundColor="#ffffff";
		}

	
}

// ===============================================================================================================================

function fieldcolor_error(idDiv)
{
	if (document.getElementById(idDiv))
		{
		document.getElementById(idDiv).style.backgroundColor="#FDFD9E";
		}
}

// ===============================================================================================================================
	


