/**
 * ticketSys: calls the iframe 'tickets', if it exists in the document.
 * otherwise we will have a usual complete page requested
 *
 * @param element
 *            el (calling element, usually 'this')
 * @param string
 *            params (requestparams, will be added to querystring)
 *
 * Eaxmple: onclick="return ticketSys(this, 'Action=CustomerTicketMessage')"
 */
function ticketSys(el, params) {
	//var ticketBase = "http://ipcopter.q33.de";
	var ticketBase = "";
	ticketBase += "/tickets/customer.pl?";
	if (document.getElementById('tickets')) {
		el.target = 'tickets';
		el.href = ticketBase + params;

		var navTable = document.getElementById("nav_secondary");
		var ATags = navTable.getElementsByTagName("a");
		for ( var i = 0; i < ATags.length; i++) {
			if (ATags[i].className == "navActive2") {
				ATags[i].className = "navSub2";
			}
		}
		el.className = "navActive2";
	}
	return true;
}
