function rating(rating)
{
	document.forms['bewertung'].bewertung.value=rating;
	document.forms['bewertung'].submit();
}

function submit_form(form_name,aktion)
{
	//alert();
	document.forms[form_name].action=aktion; 
	document.forms[form_name].submit();
}	

var cont="warning";

function show()
{
        if (document.layers)
        document.layers[cont].visibility ="show";
        else
        document.getElementById(cont).style.visibility ="visible";
} 

function hide()
{
        if (document.layers)
        document.layers[cont].visibility ="hide";
        else
        document.getElementById(cont).style.visibility ="hidden";
}

function test(object_id)
{
	document.big.src="include/image.php?ind="+object_id;
}

function centered_window(url, name, height, width)
{
	var string="scrollbars=1, resizable=1, height=" + height + ",innerHeight=" + height;
	string+=",width=" + width + ",innerWidth=" + width;
	if (window.screen) 
	{
		var hoehe=screen.availHeight;
		var breite=screen.availWidth;
		var x = (breite-width)/2;
		var y = (hoehe-height)/2;
		string+=",left="+x+",screenX="+x;
		string+=",top="+y+",screenY="+y;
	}
	return window.open(url, name, string);
}

function smileya(text) 
{
	document.forms[0].message.value+=" {"+text+"} ";
}