
var body_onload = ''; // Funktionen, die bei onLoad ausgeführt werden sollen

function eval_body_onload() {
	if (body_onload) {
		eval(body_onload);
	}
}


function printview(url) {
	var left = Math.round((screen.width-650)/2);
	var top = Math.round((screen.height-500)/2);
	if (left<20) left = 20;
	if (top<20) top = 20;
	window.open(url,'','width=650,height=500,toolbar=yes,resizable=yes,scrollbars=yes,menubar=yes,left='+left+',top='+top);
}


function open_VW_Konfigurator() {
	url = 'http://cc1.volkswagen.de/cc4gp/actions/start/carlines.html?context=default';
	if ((navigator.appName.indexOf("Netscape") > -1 && parseInt(navigator.appVersion.substring(0,1)) >=4 ) ||
		 (navigator.appName.indexOf("Microsoft Internet Explorer") > -1 && parseInt(navigator.appVersion.substring(0,1)) >=4	)) {

		var w = (screen.width/2)-(790/2);
		var h = (screen.height/2)-(548/2);
		url += '&rand='+Math.round(Math.random() * 1000000);

		konfigurator = window.open(url,'cc','width=790,height=548,scrollbars=0,resizable=0,screenX='+w+',screenY='+h+',left='+w+',top='+h);
	} else {
		konfigurator = window.open(url,'cc','width=790,height=548,scrollbars=0,resizable=0');
	}
}

