home *** CD-ROM | disk | FTP | other *** search
- <?XML version="1.0"?>
- <PUBLIC:COMPONENT>
- <public:attach event="onclick" onevent="smartSingle()"></public:attach>
- <public:attach event="ondblclick" onevent="smartDouble()"></public:attach>
- <SCRIPT>
- var timeoutID;
- var isDouble = false;
- function smartSingle(){
- clearTimeout(this.timeoutID);
- if(!this.isDouble){timeoutID = setTimeout("CurrentMessage('"+ this.number +"')",300);}
- this.isDouble = false;
- }
-
- function smartDouble(){
- this.isDouble = true;
- CurrentMessage(this.number,'double');
- window.openWin(window.wcLink+'&View=Message&External=Yes&Number=' + this.number, 'MessageWindow' + this.number, 780, 500, 'yes');
- window.document.selection.empty();
- }
- </SCRIPT>
- </PUBLIC:COMPONENT>