function submitForm(sScript, sAction) {
	if (sScript != null)
		document.forms[0].action = sScript;
	if (sAction != null)
		document.forms[0]._action.value = sAction;
	document.forms[0].submit();
}

function setAction(sAction) {
	if (sAction != null)
		document.forms[0]._action.value = sAction;
}

/*
function writeM(username, hostname) {
	if (!hostname || hostname=='')
		hostname = 'hotele.cz';
	if (!username || username=='')
		username = 'booking';
	document.write("<a href=" + "m" + "a" + "i" + "l" + "t" + "o:" + username + "@" + hostname + ">" + username + "@" + hostname + "</a>");
}
*/

function compareDate(d1, m1, r1, d2, m2, r2) {
	return Date.UTC(r1, m1-1, d1)-Date.UTC(r2, m2-1, d2);
}

