<!-- hide from old browsers

// $Id: default.js,v 1.5 2004/03/22 13:03:28 husi Exp $

/*************************************************************************************************************
*** Doit specific ***
**************************************************************************************************************/

function focusInputField() {
	for (var i = 0; i < document.forms.length; i++) {
		var form = document.forms[i];
		if (form.name != null && typeof(form.name) == 'string' && form.name.indexOf("airport") == 0)
			continue;
		for (var j = 0; j < form.elements.length; j++) {
			var element = form.elements[j];
			if (element.type == "textarea" || element.type == "text") {
				element.focus();
				return;
			} // if
		} // for
	} // for
} // focusInputField

function doSaveConfirmation() {
	var myArgsArr = getArgsArr();
	if (myArgsArr['enable-save-confirmation'] && myArgsArr['enable-save-confirmation'] == 'true') {
		alert("Changes succesfully saved");
	}
} // doSaveConfirmation

function decodeString(pString) {
	pString = pString.replace(/&Ccedil;/gi, String.fromCharCode(199));
	pString = pString.replace(/&uuml;/gi, String.fromCharCode(252));
	pString = pString.replace(/&eacute;/gi, String.fromCharCode(233));
	pString = pString.replace(/&acirc;/gi, String.fromCharCode(226));
	pString = pString.replace(/&auml;/gi, String.fromCharCode(228));
	pString = pString.replace(/&agrave;/gi, String.fromCharCode(224));
	pString = pString.replace(/&aring;/gi, String.fromCharCode(229));
	pString = pString.replace(/&ccedil;/gi, String.fromCharCode(231));
	pString = pString.replace(/&ecirc;/gi, String.fromCharCode(234));
	pString = pString.replace(/&euml;/gi, String.fromCharCode(235));
	pString = pString.replace(/&egrave;/gi, String.fromCharCode(232));
	pString = pString.replace(/&iuml;/gi, String.fromCharCode(239));
	pString = pString.replace(/&icirc;/gi, String.fromCharCode(238));
	pString = pString.replace(/&igrave;/gi, String.fromCharCode(236));
	pString = pString.replace(/&Auml;/gi, String.fromCharCode(196));
	pString = pString.replace(/&Aring;/gi, String.fromCharCode(197));
	pString = pString.replace(/&Eacute;/gi, String.fromCharCode(201));
	pString = pString.replace(/&aelig;/gi, String.fromCharCode(230));
	pString = pString.replace(/&AElig;/gi, String.fromCharCode(198));
	pString = pString.replace(/&ocirc;/gi, String.fromCharCode(244));
	pString = pString.replace(/&ouml;/gi, String.fromCharCode(246));
	pString = pString.replace(/&ograve;/gi, String.fromCharCode(242));
	pString = pString.replace(/&ucirc;/gi, String.fromCharCode(251));
	pString = pString.replace(/&ugrave;/gi, String.fromCharCode(249));
	pString = pString.replace(/&yuml;/gi, String.fromCharCode(255));
	pString = pString.replace(/&Ouml;/gi, String.fromCharCode(214));
	pString = pString.replace(/&Uuml;/gi, String.fromCharCode(220));
	pString = pString.replace(/&oslash;/gi, String.fromCharCode(248));
	pString = pString.replace(/&pound;/gi, String.fromCharCode(163));
	pString = pString.replace(/&Oslash;/gi, String.fromCharCode(216));
	pString = pString.replace(/&times;/gi, String.fromCharCode(215));
	pString = pString.replace(/&aacute;/gi, String.fromCharCode(225));
	pString = pString.replace(/&iacute;/gi, String.fromCharCode(237));
	pString = pString.replace(/&oacute;/gi, String.fromCharCode(242));
	pString = pString.replace(/&uacute;/gi, String.fromCharCode(250));
	pString = pString.replace(/&ntilde;/gi, String.fromCharCode(241));
	pString = pString.replace(/&Ntilde;/gi, String.fromCharCode(209));
	return pString;
} // decodeString

// end hiding from old browsers -->
