function debug(message) {
	alert(message);
}
function onCall(arg) {
	var message = 'Appel recu';
	if(arg==null || arg.length<2) 
	{
		window.open('users/handlePhoneCall.do','','height=650,width=550, menubar=no, scrollbars=yes, status=no, toolbar=no, resizable=yes, location=yes');
	}
	else
	{
		window.open('users/handlePhoneCall.do?phoneNumber=' + arg ,'','height=650,width=550, menubar=no, scrollbars=yes, status=no, toolbar=no, resizable=yes, location=yes');
	}
}
function onHangOn(arg) {
	alert('L\'utilisateur distant a raccroché');
}
function call(arg) {
	document.DIALER.call(arg);
}