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 setBrowser(){
    if ( navigator.appName.indexOf('Netscape') != -1 ) {
        browser = 'NS'
    } else {
        browser = 'IE';
    }
	return browser;
}

function callURL(){
//alert('callURL');
	return document.location.href;
}
    
function setURL(){
//alert('setURL');
    if ( navigator.appName.indexOf('Netscape') != -1 ) {
		if ( navigator.platform.indexOf('Mac') != -1 ) {
			document.getElementsByTagName('OBJECT')[0].SetVariable('documentLocation', document.location.href);
		} else {
			document.getElementsByTagName('EMBED')[0].SetVariable('documentLocation', document.location.href);
		}
		
	} else {
		document.getElementsByTagName('OBJECT')[0].SetVariable('documentLocation', document.location.href);
	}
}


function openInOpener(pUrl) {	
	eval(pUrl);
}

function callExternalURL(url){
//alert('callExternalURL ' + url + ' , browser: ' + navigator.appVersion + ' , opener:' + window.opener);
    if ( window.opener != null ) {
        if ( navigator.appVersion.indexOf('IE') != -1 && window.opener.closed) {
            var volkswagen = window.open(url,'Volkswagen');
            volkswagen.focus();
        } else {
            window.opener.location.href = url;
            window.opener.focus();
        }
    } else {
        var volkswagen = window.open(url,'Volkswagen');
        volkswagen.focus();
    }
	return 'isCalled';
}


