function myalert( AlertTxt, AlertTitle ) { var re=/ /g; var DspHtml="about:<head><title>"+AlertTitle.replace( re, " " )+"</title></head>" DspHtml=DspHtml+"<body><center>"+AlertTxt+"<br><button onclick='window.close()'>OK</button></center></body>" showModalDialog( DspHtml, "", "dialogWidth:200px;dialogHeight:50px;status:0;help:0;resizable:no;scroll:no" ) }Unfortunately, all my links to websites with the jscript functions are broken - I've now got copies myself so haven't kept them up to date. The only one I've is for Netscape & is fairly old, but for string functions/methods most apply to IE.