function browseSelector(value){ var URL = value; document.forms[0].reset(); window.location.href = URL; } if (document.layers) { // layers for Netscape document.captureEvents(Event.CLICK); } function confirmLink(e) { var target = document.all ? event.srcElement : e.target; //alert("target= "+ target); if (! target.href) { target = target.parentNode; } if (target.href) { if (target.href.indexOf('tas.gov.au') != -1) { return true; } else if (target.href.indexOf('dtf.nsf') != -1) { return true; } else { return confirm ('You are now leaving the tas.gov.au domain.\n\nThis link will take you to ' + target.href + '\n\nThe Department of Treasury and Finance is not responsible for the content of the web site to which you are going.\nThe link does not constitute any form of endorsement'); } } } document.onclick = confirmLink;