function Is_IE()
{
	if(navigator.appName=="Microsoft Internet Explorer")
	{
		return true;
	};
	return false;
};
function isDate(d)
{ 
	if (d == "")return false; 
	var e = new RegExp("^[0-9]{1,2}\/[0-9]{1,2}\/([0-9]{2}|[0-9]{4})$");
	if (!e.test(d))return false;
	j = parseInt(d.split("/")[0], 10);
	m = parseInt(d.split("/")[1], 10);
	a = parseInt(d.split("/")[2], 10);
	if (a < 1000) 
	{ 
	    if (a < 89)a+=2000;
	    else a+=1900; 
	};
	if (a%4 == 0 && a%100 !=0 || a%400 == 0) fev = 29; 
	else fev = 28;
	nbJours = new Array(31,fev,31,30,31,30,31,31,30,31,30,31); 
	return ( m >= 1 && m <=12 && j >= 1 && j <= nbJours[m-1] ); 
};
function isMail(d)
{
	var e =/^([\w-]+(?:\.[\w-]+)*)@((?:[\w-]+\.)*\w[\w-]{0,66})\.([a-z]{2,6}(?:\.[a-z]{2})?)$/i;
	return e.test(d);
};
//Popup
var newWin = null;
function closeWin()
{
	if (newWin != null)
	{
		if(!newWin.closed)newWin.close();
	}
};
function popUp(strURL,strType,strHeight,strWidth)
{
    closeWin();
    var strOptions="";
    if (strType=="console") strOptions="resizable,height="+strHeight+",width="+strWidth;
    if (strType=="fixed") strOptions="status,height="+strHeight+",width="+strWidth;
    if (strType=="elastic") strOptions="toolbar,menubar,scrollbars,resizable,location,height="+strHeight+",width="+strWidth;
    newWin = window.open(strURL, 'newWin', strOptions);
    newWin.focus();
};