function showToolTip(id, caller) { document.getElementById(id).style.display = "block"; changeOpac(100,id); var callerTop = getObjectTop(caller); var callerLeft = getObjectLeft(caller); var msgWidth = getElementWidth(id); if (navigator.userAgent.indexOf("Opera")!=-1 || navigator.userAgent.indexOf("Opera/")!=-1) { if (navigator.userAgent.indexOf("Opera 7")!=-1 || navigator.userAgent.indexOf("Opera/7")!=-1) return else document.getElementById(id).style.left = 800; } else { document.getElementById(id).style.left = callerLeft-msgWidth - 5; } document.getElementById(id).style.zIndex = 100; document.getElementById(id).style.visibility = "visible"; setTimeout("opacity('" + id + "', 100, 0, 1000)",2000); setTimeout("document.getElementById('" + id + "').style.visibility = \'visible\'",3000); setTimeout("document.getElementById('" + id + "').style.zIndex = 1",3100); setTimeout("document.getElementById('" + id + "').style.display = \'none\'",3100); } function GetXmlHttpObject() { var xmlHttp=null; try { // Firefox, Opera 8.0+, Safari xmlHttp=new XMLHttpRequest(); } catch (e) { //Internet Explorer try { xmlHttp=new ActiveXObject("Msxml2.XMLHTTP"); } catch (e) { xmlHttp=new ActiveXObject("Microsoft.XMLHTTP"); } } return xmlHttp; } function apenpop(url,name,lowidth,loheight){ window.open(url,name,"width=" + lowidth + ",height=" + loheight +",resizable=no,scrollbars=no"); } function isEmail(str) { if (! str) return ''; re = /(^[\w\d\-]+(\.[\d\w\-\_]+)*@[\w\d\-]+(\.[\d\w]+)+$)/ return re.test(str); } function number_format(str) { var result = ""; var thousand = 0; while (str.length > 0) { result = str.substr(str.length-1, 1) + result; str = str.substr(0, str.length-1); thousand++; if ((thousand == 3) && (str.length > 0)) { result = '.' + result; thousand = 0; } } return result; } function trim(str) { re = /(^\s*)|(\s*$)/gi return str.replace(re, ''); } function isAlphaNumeric(str) { if (! str) return ''; re = /[^a-zA-Z0-9_\-]/g return ! re.test(str); } function isNumeric(str) { re = /[^0-9\.\,]/g return ! re.test(str); }