function forgotten_login_popup(content)
{
	forgotten = window.open(content, "Forgotten_Details", "width=600,height=170,scrollbars=no");
 	forgotten.focus();
}
//------------------------------------------------------------------------------
function change_password_popup(content)
{
	forgotten = window.open(content, "Change_Password", "width=600,height=290,scrollbars=no");
 	forgotten.focus();
}
//------------------------------------------------------------------------------
function popUp(popURL)
{
  var popup = window.open(popURL,"IMG_window","left=10,top=10,screenX=10,screenY=10,width=730,height=500,toolbar=no,location=no,directories=no,status=no,menubar=no,resizable=yes,scrollbars=yes,copyhistory=no");
	if( navigator.appName.substring(0,8) == "Netscape" )
		{
		 popup.location = popupURL;
		 popup.opener = self;
	}
	popup.focus();
}
//------------------------------------------------------------------------------

function selectCarLineInNewsLetter ()
{
    document.newsletterform.submittype.value=2;
    document.newsletterform.submit();
}
//------------------------------------------------------------------------------

function imagePopup(url, width, heigth)
{

	var l = (screen.availWidth - width) / 2;
	var t = (screen.availHeight - heigth) / 2;
	newwindow = window.open(url,"newwindow","width="+width+",height=" +heigth+",left="+l+",top="+t+",directories=no,toolbar=no,location=no,menubar=no,scrollbars=no,status=no,resizable=no,dependent=no;");
	newwindow.focus();
}

function resizeAcessoryImageWindow(width, height) {
	var image="contentImage";
	var imageHeight=document.getElementById(image).offsetHeight;
	var variance=(parseInt(imageHeight)-165);
	height=height+variance;

	self.parent.resizeTo(width, height);
	var l = (screen.availWidth - width) / 2;
	var t = (screen.availHeight - height) / 2;		
	self.parent.moveTo(l,t);
}