// functions related to Citroën

function popupWindow(aURL) {
	theWindow = window.open(aURL);
	theWindow.focus();
}

function popupWindowBuilder(URL,popupName,popupWidth,popupHeight,popupTop,popupLeft,popupScrollbars,popupResizable) {
	var sProperties = "width="+popupWidth+",height="+popupHeight+",top="+popupTop+",left="+popupLeft+",scrollbars="+popupScrollbars+',resizable='+popupResizable;
	theWindowBuild = window.open(URL,popupName,sProperties);
	theWindowBuild.focus();
}

function openWin99(URL) {
	aWindow = window.open(URL,"99","width=676,height=403,top='+((window.screen.height-405)/2)+',left='+((window.screen.width-676)/2)+',scrollbars=no,resizable=no");
}

// end functions related to Citroën

function PopUpGeneric(URL, width, height)
	{
	// Popup window with links to image library. 
	var popleft=((document.body.clientWidth - 440) / 2)+window.screenLeft; 
	var poptop=(((document.body.clientHeight - 460) / 2))+window.screenTop-40;		
	window.open(URL,"_blank","resizable=1,scrollbars=auto,width=" + width + ",height=" + height + ",left="+popleft+",top="+poptop)
	}
