<!--
/*	Copyright 2005 [di] digitale informationssysteme gmbh, Mannheim, www.digi-info.de
*	global.js - global js file
*
*	AUTHOR:
*	goma - Gordon Marshall - marshall(at)digi-info(dot)de
*
*
*	TODO:
*
*
*	CHANGELOG:
*	who:			when:			what:
*	goma			18.07.2005		created for Freudenberg MicronAir
*
*/

// Browsererkennung
moz = (document.getElementById && !document.all) ? true : false;
ie = (document.all && !moz) ? true : false;

// OS
windows = (navigator.platform.toLowerCase().indexOf("win") != -1) ? true : false;

// Popup-Fenster werden so geöffnet und nicht anders! ;-)
var newWin = '';
function openWindow(url,winName,w,h,props) {
	if (h == 0) h = screen.availHeight - 200;
	if (props != "") props = ", " + props;
	newWin = window.open(url, winName, 'width=' + w + ', height=' + h + props);
	newWin.window.moveTo(0,0);
	if (newWin.focus) newWin.focus();
	return false;
	}



// Seite zu Favoriten/Sidebar hinzufuegen
function addFavorites(strUrl,strTitle) {
	strTitle = "micronAir - " + strTitle;
	if (ie) {
		window.external.AddFavorite(strUrl,strTitle);
		}
	else if (moz) {
		window.sidebar.addPanel(strTitle,strUrl,'');
		}
	}



// werkstatt-suche auf startseite
function selectCountry() {
	document.partnersearch.action = self.location.href;
	document.partnersearch.submit();
	}



// automarken-suche auf startseite
function selectManufacturer() {
	document.productsearchmanufacturer.action = self.location.href;
	document.productsearchmanufacturer.submit();
	}



// werkstatt-suche
function partnerSearch() {
	document.partnersearch.submit();
	}



// workaround fuer ie label bug; modifiziertes ms-script (goma)
function SelectonfocusIn() {
	if (ie && windows) {
		try {
			var eSrc = window.event.srcElement;
			if (eSrc) eSrc.tmpIndex = eSrc.selectedIndex;
			}
		catch (e) {
			HandleError(e, false);
			}
		}
	}


// workaround fuer ie label bug; modifiziertes ms-script (goma)
function Selectonfocus() {
	if (ie && windows) {
		try {
			var eSrc = window.event.srcElement;
			if (eSrc) eSrc.selectedIndex = eSrc.tmpIndex;
			}
		catch (e) {
			HandleError(e, false);
			}		
		}
	}
	


	


//-->
