	<!-- Begin 
	
	function ShowAltText(nShow, nHeight, nWidth, nType)
	{
		var winA = window.open('0AltText.asp?ShowID=' +nShow+ '&Type=' + nType, 'MyWindow', 'toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=yes,resizable=yes,width=' +nWidth +',height=' +nHeight +'');
		winA.focus();
	}

	function weiter()
	{
		document.MyForm.submit();
	}

	function SubmitForm1()
	{
		document.Form1.submit();
	}

	function reloadContingentList()
	{
		document.Form1.submit();
		top.opener.location.reload();		
	}

	function ShowRePrintTicket(OrderID, PrintID, Mode, LoadText)
	{
		// siehe auch code finishbooking.asp/showorders.asp ! dort ist dasselbe noch als href
		Check = confirm(LoadText);
		if(Check == true) {
			var winShowRePrintTicket = window.open('0PreparePrint.asp?orderid='+ OrderID + '&printid=' + PrintID + '&Mode=' + Mode,'WindowShowRePrintTicket', 'toolbar=0,location=0,directories=0,status=0,menubar=no,scrollbars=yes,resizable=yes,width=600,height=800');	
			winShowRePrintTicket.focus();
			return true;
		}
		else
		{
			return false;
		}
	}

	function ShowPrintTicket(OrderID, PrintID, Mode)
	{
		//siehe auch code finishbooking.asp/showorders.asp ! dort ist dasselbe noch als href
		var winShowPrintTicket = window.open('0PreparePrint.asp?orderid='+ OrderID + '&printid=' + PrintID + '&Mode=' + Mode,'WindowShowPrintTicket', 'toolbar=0,location=0,directories=0,status=0,menubar=no,scrollbars=yes,resizable=yes,width=600,height=800');	
		winShowPrintTicket.focus();
	}

	function ShowPrintTicket1(OrderID, TicketID, PrintID, Mode)
	{
		var winShowPrintTicket1 = window.open('0PreparePrint.asp?orderid='+ OrderID + '&TicketID=' + TicketID + '&printid=' + PrintID + '&Mode=' + Mode,'WindowShowPrintTicket1', 'toolbar=0,location=0,directories=0,status=0,menubar=no,scrollbars=yes,resizable=yes,width=600,height=800');	
		winShowPrintTicket1.focus();
	}
	
	
	function InputContingent(nShow, row, nHeight, nWidth)
	{
		row.className="selectedRow";
		var winC = window.open('1ContingentInput.asp?ShowID=' +nShow, 'MyWindow', 'toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=yes,resizable=yes,width=' +nWidth +',height=' +nHeight +'');
		winC.focus();
	}
	
	function InputContingent2(nShow, nCategoryID, row, nHeight, nWidth)
	{
		row.className="selectedRow";
		var winC = window.open('1ContingentInput2.asp?ShowID=' +nShow + '&CategoryID=' + nCategoryID, 'MyWindow', 'toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=yes,resizable=yes,width=' +nWidth +',height=' +nHeight +'');
		winC.focus();
	}
		
	function ShowYoshiLogsState(nSequential,nTicketID)
	{
		var winD = window.open('1ShowYoshiLogsState.asp?Sequential=' +nSequential + '&TicketID=' +nTicketID, 'MyWindow', 'toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=yes,resizable=yes,width=400,height=500');
		winD.focus();
	}
	
	function showCalendarDD( datefield )
	{
		var ddfield = eval('document.WochenabrechungForm1.' + datefield + 'DD');
		//var dd = ddfield.options[ddfield.selectedIndex].value;
		var dd = ddfield.value;		
	
		var mmfield = eval('document.WochenabrechungForm1.' + datefield + 'MM');
		//var mm = mmfield.options[mmfield.selectedIndex].value;
		var mm = mmfield.value;

		var yyfield = eval('document.WochenabrechungForm1.' + datefield + 'YY');
		var yy = yyfield.options[yyfield.selectedIndex].value;

		f1 = window.open('0Calendar.asp?dd=' + dd + '&month=' + mm + '&year=' + yy +'&field=' + datefield,'CalWindow','dependent=yes,height=200,width=210,location=no,menubar=no,resizable=yes,status=no,toolbar=no');
		f1.focus();
		return false;
	}	
	
	function showCalendarWW( datefield )
	{
		var wwfield = eval('document.WochenabrechungForm1.' + datefield + 'WW');
		var ww = wwfield.options[wwfield.selectedIndex].value;
	
		var mmfield = eval('document.WochenabrechungForm1.' + datefield + 'MM');
		//var mm = mmfield.options[mmfield.selectedIndex].value;
		var mm = mmfield.value;

		var yyfield = eval('document.WochenabrechungForm1.' + datefield + 'YY');
		var yy = yyfield.options[yyfield.selectedIndex].value;

		f1 = window.open('0Calendar.asp?ww=' + ww + '&month=' + mm + '&year=' + yy +'&field=' + datefield,'CalWindow','dependent=yes,height=200,width=210,location=no,menubar=no,resizable=yes,status=no,toolbar=no');
		f1.focus();
		return false;
	}
	
	function showCalendar( datefield )
	{
	
		var mmfield = eval('document.WochenabrechungForm1.' + datefield + 'MM');
		var mm = mmfield.options[mmfield.selectedIndex].value;

		var yyfield = eval('document.WochenabrechungForm1.' + datefield + 'YY');
		var yy = yyfield.options[yyfield.selectedIndex].value;

		f1 = window.open('0Calendar.asp?month=' + mm + '&year=' + yy +'&field=' + datefield,'CalWindow','dependent=yes,height=200,width=210,location=no,menubar=no,resizable=yes,status=no,toolbar=no');
		f1.focus();
		return false;
	}
	
	function leftTrim(sString)
	{
		while (sString.substring(0,1) == ' ')
		{
		sString = sString.substring(1, sString.length);
		}
		return sString;
	}

	function leftTrim(sString)
	{
		while (sString.substring(0,1) == ' ')
		{
		sString = sString.substring(1, sString.length);
		}
		return sString;
	}

	function trimAll(sString)
	{
		while (sString.substring(0,1) == ' ')
			{
			sString = sString.substring(1, sString.length);
			}
		while (sString.substring(sString.length-1, sString.length) == ' ')
			{
			sString = sString.substring(0,sString.length-1);
			}
	return sString;
}
	//  End --> 
	

