// JavaScript Document
function openPopUp(strUrl)
	{
		var newWindowName = 'DramaDirektPopup';	
		popupwindow = window.open(strUrl, newWindowName,'width=450,height=650,menubar=no,scrollbars=yes,toolbar=no,location=no,directories=no,resizable=no');

		if(window.focus)
			popupwindow.focus();
	}
	
	function openEmailFormPopUp(strUrl)
	{
		openFreePopUp(strUrl, 550, 670);
	}
	
	function openImagesPopUp(strUrl)
	{
		openFreePopUp(strUrl, 480, 650);
	}
	
	function openPrintPopUp(strUrl)
	{
		var newWindowName = 'printpage';	
		popupwindow = window.open(strUrl, newWindowName,'width=450,height=650,menubar=no,scrollbars=yes,toolbar=no,location=no,directories=no,resizable=no');

		if(window.focus)
			popupwindow.focus();
	}
	
	function openFreePopUp(strUrl, windowWidth, windowHeight)
	{
		var newWindowName = 'freePopUp';	
		popupwindow = window.open(strUrl, newWindowName,'width=' + windowWidth + ',height=' + windowHeight + ',menubar=no,scrollbars=yes,toolbar=no,location=no,directories=no,resizable=no');

		if(window.focus)
			popupwindow.focus();
	}
	
	
	function submitenter(myfield,e,button)
	{
	var keycode;
	if (window.event) keycode = window.event.keyCode;
	else if (e) keycode = e.which;
	else return true;

	if (keycode == 13)
	{

	button.click();
	return false;
	}
	else
	return true;
	}
	function __doPostBack(eventTarget, eventArgument) {
		var theform;
		if (window.navigator.appName.toLowerCase().indexOf("microsoft") > -1) {
			theform = document.Form1;
		}
		else {
			theform = document.forms["Form1"];
		}
		theform.__EVENTTARGET.value = eventTarget.split("$").join(":");
		theform.__EVENTARGUMENT.value = eventArgument;
		theform.submit();
	}
