<!--

function NewWindow(mypage, myname, w, h, scroll)
{
	var winl = 10;
	var wint = 10;
	<!-- In der folgenden Zeile kannst Du einzelne Parameter ein- bzw. aus-schalten -->
	winprops="height="+h+",width="+w+",top="+wint+",left="+winl+",scrollbars="+scroll+",toolbar=no,location=no,directories=no,status=no,menubar=no,resizable=no,copyhistory=no";
	win = window.open(mypage,myname, winprops)
	if (parseInt(navigator.appVersion) >= 4) { win.window.focus(); }
}

function Popindex()
{
	random_pop= (Math.round(Math.random()*1))
	if (random_pop=='1')	// 400,250
	{ window.open('pop1.php','pop1','width=400,height=270,top=10,left=10,menubar=no,toolbar=no,status=no,location=no,scrollbars=no,resizable=no'); }
  	else
	{ window.open('pop2.php','pop2','width=400,height=270,top=10,left=10,menubar=no,toolbar=no,status=no,location=no,scrollbars=no,resizable=no'); }   
}

function showwindow(name,mysizex,mysizey)
{
        content = "<html><head><link rel='stylesheet' type='text/css' href='kozel_formate.css'></head>"+"<body text=#00ffff bgcolor=#ffffff link=#000000 vlink=#0080FF ALINK=#FFFFFF>"+"<center><TABLE cellSpacing=0 cellPadding=0 border=3><tr><td><img src="+name+"></td></tr></table></center><center><TABLE cellSpacing=0 cellPadding=0 border=0><TR><TD noWrap><IMG height=25 src='pics/but_l.gif' width=13 border=0></TD><TD noWrap background='pics/but_m.gif' width=130><a href='javascript:window.close()' ><center>Fenster schließen</center></a></TD><TD noWrap><IMG height=25 src='pics/but_r.gif' width=13 border=0></TD></TR></TABLE></center></body></html>";
        parameters = "dependent=yes,copyhistory=no,resizable=no,menubar=no,status=no,directories=no,location=no,scrollbars=0,toolbar=0,width="+mysizex+",height="+mysizey+"screenX=0,screenY=0"
        pop = window.open("","",parameters);
        pop.document.open();
        pop.focus();
        pop.document.write(content);
        pop.document.close();
}

function showfooditem(food_picture, pic_sizex, pic_sizey, win_sizex, win_sizey, food_itemname)
{
        content = "<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.0 Transitional//EN\">\n<HTML LANG=\"de\">\n<HEAD>\n<LINK REL='stylesheet' type='text/css' href='mao_styles.css'>\n<TITLE>"+food_itemname+" / zum Schlie&szlig;en klicken</TITLE>\n</HEAD>\n<BODY text=#00ffff bgcolor=#ffffff link=#000000 vlink=#0080FF ALINK=#FFFFFF onBlur=\"self.close()\" onClick=\"self.close()\">\n<center>\n<TABLE cellSpacing=0 cellPadding=0 border=1 width=650>	<!-- width=my_sizex + 10 -->\n  <th>"+food_itemname+"</th>\n  <tr>\n    <td align=\"center\"><img src=\""+food_picture+"\" width=\""+pic_sizex+"\" height=\""+pic_sizey+"\"></td>\n  </tr>\n  <TR>\n    <TD align=\"center\">\n       <input type=\"button\" accesskey=\"f\" value=\"Fenster schlie&szlig;en\" onClick=\"self.close()\" class=\"asiabutton\">\n    </TD>\n  </TR>\n</TABLE>\n</center>\n</body>\n</html>\n";
        parameters = "dependent=yes,copyhistory=no,resizable=no,menubar=no,status=no,directories=no,location=no,scrollbars=0,toolbar=0,width="+win_sizex+",height="+win_sizey+"screenX=0,screenY=0"
        pop = window.open("","",parameters);
        pop.document.open();
        pop.focus();
        pop.document.write(content);
        pop.document.close();
}


function swapImage(imgName,newImg)
{
	if ((navigator.appName == 'Netscape' 
	&& parseFloat(navigator.appVersion) >= 3) 
	|| (parseFloat(navigator.appVersion) >= 4))
	{
		eval('document.' + imgName + '.src = "' + newImg + '"');
	}
}

// -->
