<!--// ==========================================================================// Browsercheck// ==========================================================================function sa_bwcheck(){   this.ver=navigator.appVersion  this.agent=navigator.userAgent  this.dom=document.getElementById?1:0  this.opera5=this.agent.indexOf("Opera 5")>-1  this.ie5=(this.ver.indexOf("MSIE 5")>-1 && this.dom && !this.opera5)?1:0;   this.ie6=(this.ver.indexOf("MSIE 6")>-1 && this.dom && !this.opera5)?1:0;  this.ie4=(document.all && !this.dom && !this.opera5)?1:0;  this.ie=this.ie4||this.ie5||this.ie6  this.mac=this.agent.indexOf("Mac")>-1  this.ns6=(this.dom && parseInt(this.ver) >= 5) ?1:0;   this.ns4=(document.layers && !this.dom)?1:0;  this.bw=(this.ie6||this.ie5||this.ie4||this.ns4||this.ns6||this.opera5)  return this}bw=new sa_bwcheck() //Browsercheck object// NS4 resize bug fixif (bw.ns4) {var origWidth = window.innerWidth;var origHeight = window.innerHeight; window.onresize = reDo;}function reDo() {if (window.innerWidth != origWidth || window.innerHeight != origHeight) location.reload();}// ==========================================================================// PopUp centered win with add. features// ==========================================================================function newWin(page, name, w, h, scroll) {            var winl = (screen.width - w) / 2;            var wint = (screen.height - h) / 2;            winprops = 'height='+h+',width='+w+',top='+wint+',left='+winl+',scrollbars='+scroll+',resizable=no'            win = window.open(page, name, winprops)            if (parseInt(navigator.appVersion) >= 4) { win.window.focus(); }}/** * change the style of the menu items for rollover events* * @param	obj		the <TD> tag object* @param	string	color from menu text in the <TD> tag* @param	string	background color from the <TD> tag* @param	string	cursor style attribute* @author	Holger Schlaminger <holger.schlaminger@datenkraft.com> * @author	Josef Chr. Kaufmann <josef.kaufmann@datenkraft.com> * @version	1.01-01 28/07/2002 */ function hoverMenu(obj, color, colorBg, cursor) {	if (!bw.ns4){ 		if (colorBg != '')			obj.style.backgroundColor = colorBg;		if (cursor != '')			obj.style.cursor = cursor;		if (obj.children)			obj.children[0].style.color = color;	}}/** * change the style of the menu items for rollover events* * require	cookie library from oReilly JavaScript Cookbook* @author	Josef Chr. Kaufmann <josef.kaufmann@datenkraft.com> * @version	1.01-01 25/08/2002 */ function setShopCheckCookie() {	if (GetCookie('ShopCheck') != 'true')		SetCookie('ShopCheck', 'true', 0, '/');}/** * ask the domain and go to MailAdmin website* * @author	Josef Chr. Kaufmann <josef.kaufmann@datenkraft.com> * @version	1.01-01 29/08/2002 */ function gotoMailAdmin() {var Domain = '';var target = 'admin';var exampleDomain = 'ihre-Domain.at';var prefix_remove = 'www.';	if (document.MailAdmin != null) {		Domain = document.MailAdmin.Domain.value;	}		if (Domain == '' || Domain == exampleDomain) {		Domain = prompt('Bitte geben Sie Ihre Email-Adresse (z.B. ihr-Name@' + exampleDomain + ') oder Ihren Domainnamen ohne www (zB: ' + exampleDomain + ') ein:',exampleDomain);		if (!Domain) {			return false;		}	}	if (Domain.indexOf('@') != -1) {		Domain = Domain.substr(Domain.lastIndexOf('@') + 1);	} else {		if (Domain.indexOf(prefix_remove) != -1 && Domain.indexOf(prefix_remove) == 0) {			Domain = Domain.substr(Domain.indexOf(prefix_remove) + prefix_remove.length);		}	}	if ( Domain && Domain != '' && Domain != exampleDomain) {		if (Domain.indexOf('inode.at') != -1) {			target='e-mail';		}		window.open('http:\/\/' + target + '.' + Domain,		            'Client',					'toolbar=yes,location=yes,status=yes,menubar=yes,scrollbars=yes,resizable=yes,width=800,height=600');	} else {		alert('Bitte geben Sie einen korrekten Domainnamen ein!');	}}/** * validation of phonenumber and rewriting* * @param	string	name of the areacode formfield* @param	string	name of the phonenumber formfield* require	MM_findObj Dreamweaver function* @author	Josef Chr. Kaufmann <josef.kaufmann@datenkraft.com> * @version	1.01-01 03/09/2002 */ function validatePhoneNumber(objNameAreaCode, objNamePhoneNumber) {	var objAreaCode = MM_findObj(objNameAreaCode);	var objPhoneNumber = MM_findObj(objNamePhoneNumber);	objAreaCode.value = objAreaCode.value.replace(/[^0-9a-z]*/gi, "");	if (objAreaCode.value.match(/^[1-9]/))		objAreaCode.value = "0" + objAreaCode.value;	objPhoneNumber.value = objPhoneNumber.value.replace(/[^0-9a-z]*/gi, "");}//-->
