function getBrowser(){
	var browser = '';
	browser = navigator.appName;
	alert('Name ' + navigator.appName + ', Plattform ' + navigator.platform );
	return browser;
}
//getBrowser();

function setConditions(area){
	if ( navigator.appName.indexOf('Netscape') != -1 ) {
		if ( navigator.platform.indexOf('Mac') != -1 ) {
			document.getElementsByTagName('OBJECT')[0].SetVariable(area,'true');
		} else {
			document.getElementsByTagName('EMBED')[0].SetVariable(area,'true');
		}
		
	} else {
		document.getElementsByTagName('OBJECT')[0].SetVariable(area,'true');
	}
}


function setURL(){
	if ( navigator.appName.indexOf('Netscape') != -1 ) {
		if ( navigator.platform.indexOf('Mac') != -1 ) {
			document.getElementsByTagName('OBJECT')[0].SetVariable('browser','IE');
			document.getElementsByTagName('OBJECT')[0].SetVariable('documentLocation', document.location.href);
		} else {
			document.getElementsByTagName('EMBED')[0].SetVariable('browser','NS');
			document.getElementsByTagName('EMBED')[0].SetVariable('documentLocation', document.location.href);
		}
		
	} else {
		document.getElementsByTagName('OBJECT')[0].SetVariable('browser','IE');
		document.getElementsByTagName('OBJECT')[0].SetVariable('documentLocation', document.location.href);
	}
}


function openInOpener(pUrl) {	
	eval(pUrl);
}

function openCC(template) {
	cc = window.open('http://cc5.volkswagen.de/cc5/preselect.aspx?process=motorselect&template='+template+'&context=default&app=ICC-DE', 'CC_Win', 'width=800, height=640, resizable=yes, scrollbars=yes');
	cc.focus();
}

/*
if ( typeof document.getElementsByTagName('OBJECT')[0] == 'object' ) {
        document.getElementsByTagName('OBJECT')[0].SetVariable(area,'true');
    }
	if ( typeof document.getElementsByTagName('EMBED') == 'object' || typeof document.getElementsByTagName('EMBED')[0] != 'function' ) {
        if ( typeof document.getElementsByTagName('EMBED') == 'object' ) {
			document.getElementsByTagName('EMBED')[0].SetVariable(area,'true');
		} else if ( typeof document.getElementsByTagName('EMBED') == 'function' ) {
			document.getElementsByTagName('OBJECT')[0].SetVariable(area,'true');
		}
    }
	*/

	/*
	if ( typeof document.getElementsByTagName('OBJECT')[0] == 'object' ) {
        document.getElementsByTagName('OBJECT')[0].SetVariable('browser','IE');
		document.getElementsByTagName('OBJECT')[0].SetVariable('documentLocation', document.location.href);
	}
	if ( typeof document.getElementsByTagName('EMBED') == 'object' || typeof document.getElementsByTagName('EMBED')[0] != 'function' ) {
        if ( typeof document.getElementsByTagName('EMBED') == 'object' ) {
			document.getElementsByTagName('EMBED')[0].SetVariable('browser','NS');
			document.getElementsByTagName('EMBED')[0].SetVariable('documentLocation', document.location.href);
		} else if ( typeof document.getElementsByTagName('EMBED') == 'function' ) {
			document.getElementsByTagName('OBJECT')[0].SetVariable('browser','Mac');
			document.getElementsByTagName('OBJECT')[0].SetVariable('documentLocation', document.location.href);
		}
	}
	*/