function schenken(gutschein_url)
{
	var weiterempfUrl="http://www2.krone.at/anwendungen/weiterempfehlen/weiter.php";
	var js_url=document.location.href;
	var url=weiterempfUrl +"?pfad=" +gutschein_url +" &title=" +"Gutschein";
	window.open(url, '', 'toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=0,resizeable=1,width=407,height=326,screenX=660,screenY=250');
};
function printGutschein(url)
{
	window.open(url, '', 'toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=1,resizeable=0,width=497,height=350,screenX=660,screenY=250');
};
function spezialOpenSTO(URL)
{	
	window.open(URL, '', 'toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=1,resizeable=0,width=510,height=500,screenX=660,screenY=250');
};

function writeEmbedObject(target_box, content) {
	//document.write(content);
	target_box.innerHTML = content;
}

function form_submit_on_enter(myfield, e, form_name, optional_function) {   	
	var keycode;
	if(window.event) keycode = window.event.keyCode;
	else if (e) keycode = e.which;
	else return true;
	
	if (keycode == 13) {
		if(typeof(optional_function != 'undefined') && optional_function != "") {
			eval(optional_function);	
		}
		document.forms[form_name].submit();
		return false;
	}
	else {
		return true;
	}
}