
var wnd;
function imagedetail_submit(before,mediaid,height,width) 
{
	if (before) 
	{
		document.frmmedia.target="_mediapopup";
		document.frmmedia.media_Model.value="imageseule";
		wnd=window.open('', '_mediapopup', 'menubar=no,resizable=no,status=no,titlebar=no,scrollbars=no,width='+width+',height='+height);
	}
	else wnd.focus();
}


	function blocOpen(what) 
	{
		if ( document.getElementById(what).style.display == "none" ) 
		{
			document.getElementById(what).style.display="";
			if (what=="divDocuments") { document.images['divOpenDocuments'].src='/common/xsl/b2c/pc/picts/icUp.gif'; }
			if (what=="divRDV") { document.images['divOpenRDV'].src='/common/xsl/b2c/pc/picts/icUp.gif'; }
			if (what=="divContacts") { document.images['divOpenContacts'].src='/common/xsl/b2c/pc/picts/icUp.gif'; }
		}
		else 
		{
			document.getElementById(what).style.display = "none";
			if (what=="divDocuments") { document.images['divOpenDocuments'].src='/common/xsl/b2c/pc/picts/icDown.gif'; }
			if (what=="divRDV") { document.images['divOpenRDV'].src='/common/xsl/b2c/pc/picts/icDown.gif'; }
			if (what=="divContacts") { document.images['divOpenContacts'].src='/common/xsl/b2c/pc/picts/icDown.gif'; }
		}
	}

	
function changeImmeuble()
{
	var nbrImm = document.own.lstImmeubles.length;
	document.getElementById('imm_'+document.own.lstImmeubles[document.own.lstImmeubles.selectedIndex].value).style.display="";
	for (i=1;i<=nbrImm;i++)
	{
		if (!(i == document.own.lstImmeubles[document.own.lstImmeubles.selectedIndex].value))
		{
			document.getElementById('imm_'+i).style.display="none";
		}
	}
}


