var is_ie = ( /msie/i.test(navigator.userAgent) && !/opera/i.test(navigator.userAgent) );function hideSelectBoxes() {	for(var i = 0; i < document.forms.length; i++) {		for(var e = 0; e < document.forms[i].length; e++){			if(document.forms[i].elements[e].tagName == "SELECT") {				document.forms[i].elements[e].style.visibility="hidden";			}		}	}}function displaySelectBoxes() {	for(var i = 0; i < document.forms.length; i++) {		for(var e = 0; e < document.forms[i].length; e++){			if(document.forms[i].elements[e].tagName == "SELECT") {			document.forms[i].elements[e].style.visibility="visible";			}		}	}}function win_user(login){	fname=open("/data/modules/returnrecipe/showuser.php?user="+login,"Popup_User","width=700,height=400,scrollbars=no");	fname.moveTo((screen.width / 2) - 700/2 ,(screen.height / 2) - 400/2);	fname.focus();}function close_Popup(id){	document.getElementById(id).innerHTML= "";	document.getElementById(id).style.display='none';	document.getElementById(id).style.height='0px';	document.getElementById(id).style.fontSize='1px';	document.getElementById(id).style.lineHeight='0.';	if(is_ie) displaySelectBoxes();}function move_Popup_Klein(){	if(is_ie)	{		var pos_x = document.body.clientWidth / 2 - 226/2;		var pos_y = document.body.clientHeight / 2 - 108/2;//		var pos_x = 0;//		var pos_y = 0;		hideSelectBoxes();	}else	{//		var pos_x = window.outerWidth / 2 - 226/2;//		var pos_y = window.outerHeight / 2 - 108/2;		var pos_x = 300;		var pos_y = 250;	}	document.getElementById('MELDUNG_KLEIN').style.top=pos_y+"px";	document.getElementById('MELDUNG_KLEIN').style.left=pos_x+"px";}function move_Popup_Gross(){	if(is_ie)	{//		var pos_x = document.body.clientWidth / 2 - 456/2;//		var pos_y = document.body.clientHeight / 2 - 118/2;//		var pos_y = 350;		var pos_x = 275;		var pos_y = 250;		hideSelectBoxes();	}else	{//		var pos_x = window.innerWidth / 2 - 456/2;//		var pos_y = window.innerHeight / 2 - 118/2;		var pos_x = 275;		var pos_y = 250;	}		document.getElementById('MELDUNG_GROSS').style.top=pos_y+"px";	document.getElementById('MELDUNG_GROSS').style.left=pos_x+"px";}function show_Popup_Klein(inhalt,id){	if(inhalt)	{		window.scrollTo(0,0);		var neu_inhalt = '<div id="MELDUNG_KLEIN" style="position:absolute; left: 200px; top: 100px; width:226px;z-index:100000;text-align:left;">';		neu_inhalt += '	<div style="width:226px;height:31px;background-image:url(/media/screen/kleinespopup_kopf.gif);background-repeat:no-repeat;">';		neu_inhalt += '	<div style="width:215px;text-align:right;padding-top:5px;"><a href="javascript:close_Popup(\'MELDUNG_KLEIN\');"><img src="/media/screen/popup_fensterschliessen.gif" alt="schlie&szlig;en" border="0" /></a>&nbsp;</div>';		neu_inhalt += '</div>';		neu_inhalt += '<div style="width:226px;background-image:url(/media/screen/kleinespopup_dehnelement.gif);background-repeat:repeat-y;"><div style="width:210px;padding:8px;">';		neu_inhalt += inhalt;		neu_inhalt += '</div></div>';		neu_inhalt += '<div style="width:226px;height:17px;background-image:url(/media/screen/kleinespopup_fuss.gif);background-repeat:no-repeat;"></div>';		neu_inhalt += '</div>';		document.getElementById(id).innerHTML = neu_inhalt;	//	move_Popup_Klein();	}}function show_Popup_Gross(inhalt,id){	if(inhalt)	{		window.scrollTo(0,0);		var neu_inhalt = '<div id="MELDUNG_GROSS" style="position:absolute;width:456px;z-index:100000;text-align:left;">';		neu_inhalt += '	<div style="width:456px;height:31px;background-image:url(/media/screen/grossespopup_kopf.gif);background-repeat:no-repeat;">';		neu_inhalt += '	<div style="width:445px;text-align:right;padding-top:5px;"><a href="javascript:close_Popup(\'MELDUNG_GROSS\');"><img src="/media/screen/popup_fensterschliessen.gif" alt="schlieﬂen" border="0" /></a></div>';		neu_inhalt += '</div>';		neu_inhalt += '<div style="width:456px;background-image:url(/media/screen/grossespopup_dehnelement.gif);background-repeat:repeat-y;"><div style="width:440px;padding:8px;">';		neu_inhalt += inhalt;		neu_inhalt += '</div></div>';		neu_inhalt += '<div style="width:456px;height:20px;background-image:url(/media/screen/grossespopup_fuss.gif);background-repeat:no-repeat;"></div>';		neu_inhalt += '</div>';		document.getElementById(id).innerHTML = neu_inhalt;		move_Popup_Gross();	}}function emailCheck (emailStr) {	var emailPat=/^(.+)@(.+)$/	var specialChars="\\(\\)<>@,;:\\\\\\\"\\.\\[\\]"	var validChars="\[^\\s" + specialChars + "\]"	var quotedUser="(\"[^\"]*\")"	var ipDomainPat=/^\[(\d{1,3})\.(\d{1,3})\.(\d{1,3})\.(\d{1,3})\]$/	var atom=validChars + '+'	var word="(" + atom + "|" + quotedUser + ")"	var userPat=new RegExp("^" + word + "(\\." + word + ")*$")	var domainPat=new RegExp("^" + atom + "(\\." + atom +")*$")	var matchArray=emailStr.match(emailPat)	if (matchArray==null) 	{		return false;	}	var user=matchArray[1]	var domain=matchArray[2]	if (user.match(userPat)==null) 	{		return false;	}	var IPArray=domain.match(ipDomainPat)	if (IPArray!=null) {		// this is an IP address		for (var i=1;i<=4;i++) 		{			if (IPArray[i]>255) 			{				return false;			}		}		return true;	}	var domainArray=domain.match(domainPat)	if (domainArray==null) 	{		return false;	}	var atomPat=new RegExp(atom,"g")	var domArr=domain.match(atomPat)	var len=domArr.length	if (domArr[domArr.length-1].length<2 || domArr[domArr.length-1].length>3) 	{		return false;	}	if (len<2) 	{		return false;	}	return true;}
function vote_wert(wert)
{
	document.form_vote.vote.value=wert;
	for(i=0;i<=5;i++)
	{
		if(wert==i) document.getElementById('v'+i).style.backgroundColor = '#d1e081';
		else document.getElementById('v'+i).style.backgroundColor = '#ffffff';
	}
	//document.form_vote.submit();
}

function button_login(zustand)
{
	if(zustand==1) document.getElementById('b_login').src='/media/screen/button_login_over.jpg';
	else document.getElementById('b_login').src='/media/screen/button_login_normal.jpg';
}
function button_senden(zustand)
{
	if(zustand==1) document.getElementById('b_senden').src='/media/screen/button_senden_over.jpg';
	else document.getElementById('b_senden').src='/media/screen/button_senden_normal.jpg';
}
