
		var browserName = navigator.appName;
		var browserVer = parseInt(navigator.appVersion);
		var version = "";
		var msie4 = (browserName == "Microsoft Internet Explorer" && browserVer >= 4);
		if ((browserName == "Netscape" && browserVer >= 3) || msie4 || browserName=="Konqueror" || browserName=="Opera") {version = "n3";} else {version = "n2";}
			// Blurring links:
		function blurLink(theObject)	{	//
			if (msie4)	{theObject.blur();}
		}
		
			// decrypt helper function
		function decryptCharcode(n,start,end,offset)	{
			n = n + offset;
			if (offset > 0 && n > end)	{
				n = start + (n - end - 1);
			} else if (offset < 0 && n < start)	{
				n = end - (start - n - 1);
			}
			return String.fromCharCode(n);
		}
			// decrypt string
		function decryptString(enc,offset)	{
			var dec = "";
			var len = enc.length;
			for(var i=0; i < len; i++)	{
				var n = enc.charCodeAt(i);
				if (n >= 0x2B && n <= 0x3A)	{
					dec += decryptCharcode(n,0x2B,0x3A,offset);	// 0-9 . , - + / :
				} else if (n >= 0x40 && n <= 0x5A)	{
					dec += decryptCharcode(n,0x40,0x5A,offset);	// A-Z @
				} else if (n >= 0x61 && n <= 0x7A)	{
					dec += decryptCharcode(n,0x61,0x7A,offset);	// a-z
				} else {
					dec += enc.charAt(i);
				}
			}
			return dec;
		}
			// decrypt spam-protected emails
		function linkTo_UnCryptMailto(s)	{
			location.href = decryptString(s,-2);
		}
		

/***************************************************************
*
*  Universal formupdate-function
*
*  Copyright notice
*
*  (c) 1998-2003 Kasper Skaarhoj
*  (c) 2005 Stanislas Rolland
*  All rights reserved
*
*  This script is part of the TYPO3 t3lib/ library provided by
*  Kasper Skaarhoj <kasper@typo3.com> together with TYPO3
*
*  This modified script is part of the TYPO3 sr_feuser_register extension provided by
*  Stanislas Rolland <stanislas.rolland@fructifor.ca> to use form id rather than formname
*
*  Released under GNU/GPL (see license file in tslib/)
*
*  This script is distributed in the hope that it will be useful,
*  but WITHOUT ANY WARRANTY; without even the implied warranty of
*  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
*
*  This copyright notice MUST APPEAR in all copies of this script
***************************************************************/


function updateForm(formId,fieldname,value)	{
	var formObj = document.getElementById(formId);
	if (formObj && formObj[fieldname]) {
		var fObj = formObj[fieldname];
		var type=fObj.type;
		if (!fObj.type)	{
			type="radio";
		}
		switch(type)	{
			case "text":
			case "textarea":
			case "hidden":
			case "password":
				fObj.value = value;
			break;
			case "checkbox":
				fObj.checked = ((value && value!=0) ? "on":"");
			break;
			case "select-one":
				var l=fObj.length;
				for (a=0;a<l;a++)	{
					if (fObj.options[a].value == value)	{
						fObj.selectedIndex = a;
					}
				}
			break;
			case "select-multiple":
				var l=fObj.length;
				for (a=0;a<l;a++)	{
					if (fObj.options[a].value == value)	{
						fObj.options[a].selected = 1;
					}
				}
			break;
			case "radio":
				var l=fObj.length;
				for (a=0; a<l;a++)	{
					if (fObj[a].value==value)	{
						fObj[a].checked = 1;
					}
				}
			break;
			default:
		}
	}
}

var pageAr = new Array();
// JS function for mouse-over
	function over(name,imgObj)	{	//
		if (version == "n3" && document[name]) {document[name].src = eval(name+"_h.src");}
		else if (document.getElementById && document.getElementById(name)) {document.getElementById(name).src = eval(name+"_h.src");}
		else if (imgObj)	{imgObj.src = eval(name+"_h.src");}
	}
		// JS function for mouse-out
	function out(name,imgObj)	{	//
		if (version == "n3" && document[name]) {document[name].src = eval(name+"_n.src");}
		else if (document.getElementById && document.getElementById(name)) {document.getElementById(name).src = eval(name+"_n.src");}
		else if (imgObj)	{imgObj.src = eval(name+"_n.src");}
	}
if (version == "n3") {
img23_3f2d_0_n=new Image(); img23_3f2d_0_n.src = "typo3temp/menu/acd1f3508b.png"; 
img23_3f2d_0_h=new Image(); img23_3f2d_0_h.src = "typo3temp/menu/36241c05f8.png"; 
img8_3f2d_1_n=new Image(); img8_3f2d_1_n.src = "typo3temp/menu/c21e8e2000.png"; 
img8_3f2d_1_h=new Image(); img8_3f2d_1_h.src = "typo3temp/menu/b2b7fd9442.png"; 
img245_3f2d_2_n=new Image(); img245_3f2d_2_n.src = "typo3temp/menu/f8ad75f18f.png"; 
img245_3f2d_2_h=new Image(); img245_3f2d_2_h.src = "typo3temp/menu/1eb0d69389.png"; 
img66_39a0_0_n=new Image(); img66_39a0_0_n.src = "fileadmin/templates/img/nav_L1_contact_lo.gif"; 
img66_39a0_0_h=new Image(); img66_39a0_0_h.src = "fileadmin/templates/img/nav_L1_contact_hi.gif"; 
img65_39a0_1_n=new Image(); img65_39a0_1_n.src = "fileadmin/templates/img/nav_L0_newsletter_hi.gif"; 
img65_39a0_1_h=new Image(); img65_39a0_1_h.src = "fileadmin/templates/img/nav_L0_newsletter_hi.gif"; 
img64_39a0_2_n=new Image(); img64_39a0_2_n.src = "fileadmin/templates/img/nav_L1_imprint_lo.gif"; 
img64_39a0_2_h=new Image(); img64_39a0_2_h.src = "fileadmin/templates/img/nav_L1_imprint_hi.gif";
}


