
/* --- --------------------------------------------- --- */
/* ---                                               --- */
/* --- Project: xyz                                  --- */
/* --- Module:  javascript routines                  --- */
/* ---                                               --- */
/* --- Patrick Sibenaler www.sibenaler.com           --- */
/* --- xyz 2008                                      --- */
/* ---                                               --- */
/* --- V 3.0                                         --- */
/* ---                                               --- */
/* --- Description: javascript frontend              --- */
/* ---                                               --- */
/* --- --------------------------------------------- --- */


// build links at http://jumk.de/nospam/stopspam.html
function UnCryptMailto( s ){
    var n = 0;
    var r = "";
    for( var i = 0; i < s.length; i++){
        n = s.charCodeAt( i )
        if( n >= 8364 ){ n = 128; }
        r += String.fromCharCode( n - 1 );
    }
    return r;
}

function linkTo_UnCryptMailto( s ){
    location.href=UnCryptMailto( s );
}

function getselectedval(theform,theobject){
	return (document.forms[theform].elements[theobject].options[document.forms[theform].elements[theobject].selectedIndex].value);
}


////////////////////////
// #still used?
////////////////////////
			function toggleShows(divId,onoff) {
				var db = MM_findObj(divId);
				if (onoff == 1){
					db.style.display = 'block';
				} else { 
					db.style.display = 'none';
				}
			}

			function ticketWindow(url) {
				var newwin = window.open(url, "ah_ticket", "width=820,height=700,left=0,top=0,scrollbars=1,resizable=1");
			}
			function legendWindow(url) {
				var newwin = window.open(url, "ah_legend", "width=500,height=400,left=0,top=0,scrollbars=1");
			}
			function lageplanWindow(url) {
				var newwin = window.open(url, "ah_lageplan", "width=580,height=450,left=0,top=0,resizable=1");
			}
/////////////////////////


