
function fct_changeCursorOver(obj){
	obj.style.cursor = "pointer"
}

function fct_changeCursorOut(obj){
	obj.style.cursor = "auto"
}

function checkEmail(email) {
	var reg = /^[a-z0-9._-]+@[a-z0-9.-]{2,}[.][a-z]{2,4}$/
	return (reg.exec(email)!=null)
} 
/*
function checkDate(date) {
	var reg = (19|20)\d\d[- /.](0[1-9]|1[012])[- /.](0[1-9]|[12][0-9]|3[01]);
	return (reg.exec(date)!=null)
}*/


/* ****** tip ****** */

ContentInfo = "";

topColor = "#808080"
subColor = "#052B52"

var mouse_X;
var mouse_Y;

var tip_active = 0;

function update_tip_pos(){
	if(document.getElementById('ToolTip')){
		document.getElementById('ToolTip').style.left = mouse_X - 40;
		document.getElementById('ToolTip').style.top  = mouse_Y + 25;
	}
}

var ie = document.all?true:false;
if (!ie) document.captureEvents(Event.MOUSEMOVE)
document.onmousemove = getMouseXY;

function getMouseXY(e) {
	if(ie){ // grab the x-y pos.s if browser is IE
		mouse_X = event.clientX + document.body.scrollLeft;
		mouse_Y = event.clientY + document.body.scrollTop;
	}else{ // grab the x-y pos.s if browser is NS
		mouse_X = e.pageX;
		mouse_Y = e.pageY;
	}
	if (mouse_X < 0){mouse_X = 0;}
	if (mouse_Y < 0){mouse_Y = 0;}

	if(tip_active){update_tip_pos();}
}

function EnterContent(TTitle, TContent){
	ContentInfo = '<table border="0" width="100" cellspacing="0" cellpadding="0">'+
						'<tr><td width="100%" bgcolor="#000000">'+
						
						'<table border="0" width="100%" cellspacing="1" cellpadding="0">'+
						
						'<tr><td width="100%" bgcolor="#F5F5E9">'+
						
						'<table border="0" width="90%" cellpadding="0" cellspacing="1" align="center">'+
						
						'<tr><td width="100%">'+
						
						'<font class="tooltipcontent">'+TContent+'</font>'+
						
						'</td></tr>'+
						'</table>'+
						
						'</td></tr>'+
						'</table>'+
						
						'</td></tr>'+
					'</table>';

}

function tip_it(which, TTitle, TContent){
	if("" != TContent)
		if(document.getElementById('ToolTip')){
			if(which){
				update_tip_pos();
				tip_active = 1;
				document.getElementById('ToolTip').style.visibility = "visible";
				EnterContent(TTitle, TContent);
				document.getElementById('ToolTip').innerHTML = ContentInfo;
			}else{
				tip_active = 0;
				document.getElementById('ToolTip').style.visibility = "hidden";
			}
		}
}

/* ****** tip ****** */

