function newwindow( productID ){
	win = window.open('http://www.autoversicherung-vergleiche.de/brokersweb/bwAd.html?productID='+productID ,'','width='+ getWindowWidth()+',height='+ getWindowHeight() +' ,resizable=yes');
	win.focus();
	window.focus();
} 
			
			
function getWindowWidth() {
	if(screen.availWidth)
	{
		return screen.availWidth;
	}
	else if (window.innerWidth) {
		return window.innerWidth;
	} 
	else if (document.body && document.body.offsetWidth) {
		return document.body.offsetWidth;
	} else {
		return 0;
	}
		
}

function getWindowHeight() {
	if( screen.availHeight)
	{
	  return screen.availHeight;
	}
	else if (window.innerHeight) {
		return window.innerHeight;
	} 
	else if (document.body && document.body.offsetHeight) {
		return document.body.offsetHeight;
	}
	else {
	return 0;
	}
}


function get_url_param( name )
{
	name = name.replace(/[\[]/,"\\\[").replace(/[\]]/,"\\\]");

	var regexS = "[\\?&]"+name+"=([^&#]*)";
	var regex = new RegExp( regexS );
	var results = regex.exec( window.location.href );

	if ( results == null )
		return "";
	else
		return results[1];
}
