function right(e) {
var msg = "Sorry, you cannot save this image";
if (navigator.appName == 'Netscape' && e.which == 3) {
alert(msg);
return false;
}
else
if (navigator.appName == 'Microsoft Internet Explorer' && event.button==2) {
alert(msg);
return false;
}
return true;
}
//***mettre cette ligne dans les pages ou l'on veut empêcher le right click
//document.onmousedown = right;
//****


var popUpWin=0;
function popUpWindow(URLStr, left, top, width, height)
{
	
	if(height == "" || height == undefined)
	{
		height="680"
		
	}
	
	if(width == "" || width == undefined)
	{
		width="720"
		
	}
	
	if(popUpWin)
	{
		if(!popUpWin.closed) 
			popUpWin.close();
	}
	
	popUpWin = window.open(URLStr,"popUpWin", "height=" + height+",width="+width + ",status=yes,toolbar=no,menubar=no,location=no,top=0,left=100,resizable=yes,scrollbars=yes");	

}


function __doPostBack(eventTarget, eventArgument) 
{
	
	if(window.event && window.event.keyCode != 13 && window.event.keyCode !=0)
		return;
		
	var theform = document.forms[0];
	
	theform.__EVENTTARGET.value = eventTarget.split("$").join(":");
	theform.__EVENTARGUMENT.value = eventArgument;
	theform.submit();
}

	
	