
// -- obtenir la reference d'un element
function rt(strElementId)
{
	return document.getElementById(strElementId);
}

// #region compatibilité pour getElementsByTagName concernant IE
function ie_getElementsByTagName(str)
 {
	if (str=="*") 	
	{
		return document.all;
	}
	// -- 
	return document.all.tags(str);	
}

 if (document.all)  document.getElementsByTagName = ie_getElementsByTagName;
 
 // #endregion compatibilité pour getElementsByTagName concernant IE
 
 // #region compatibilité pour event.keyCode

function cancel_Key(e)
{
	if (!e) var e = window.event;  //for IE
	
	var code;
	if(e.keyCode) code = e.keyCode; //for IE
	if(e.which) code = e.which;  //for other browsers
	alert(code);  //this will identify the code of the key you press
	if (code == "<the code you are interested in responding to>") return false;
	else return true;
}
/*
window.onload=function()
{
	document.onkeypress = cancel_Key;
};
window.onload=function()
{
	document.my_form.onkeypress = cancel_Key;
};
*/
 // #endregion compatibilité pour event.keyCode
 
 	