function openBanner(){
	window.open('popup/index.php','Aktie','width=567,height=397,scrollbars=no,toolbar=no,location=no');
}

// print car
	function popup(url, id, width, height) {

		// get left and top property to center popup;
		var left = (getWidth()-width)/2;
		var top  = (getHeight()-height)/2;
		
		myRef = window.open(url,'popup', 'left='+left+',top='+top+',width=' + width + ',height='+height+',menubar=1, toolbar=0 ,resizable=1, status=1, scrollbars=auto');
		
}
	
function getWidth(){

    if (window.innerWidth){
        if (document.body.offsetWidth){
            if (window.innerWidth!=document.body.offsetWidth) {
                return document.body.offsetWidth;
            }
        }
        return (window.innerWidth);                     // Mozilla
    }


    if (document.documentElement.clientWidth) {
        return document.documentElement.clientWidth;    // IE6
    }

    if (document.body.clientWidth) {
        return document.body.clientWidth;               // IE DHTML-compliant any other
    }
}
	
function getHeight() {
	
	 if (window.innerHeight) {
        return (window.innerHeight);                     // Mozilla
     }


    if (document.documentElement.clientHeight) {
        return document.documentElement.clientHeight;    // IE6
    }

    if (document.body.clientHeight) {
        return document.body.clientHeight;               // IE DHTML-compliant any other
    }
}

function favorites() {
		parent.frames['main'].document.location = 'occasionFavorit.php';
	}
		

