// usage : <a href="link" onclick="return spawn('URL', 'name', 'width=100, height=100')">Link</a>
// more accessible and allows right click link functionality to work (also works with no JS at all)
function spawn(URL,winName,features) {
/*features example - note you must pass in width & height first (IE 4+ Mac bug) width=620,height=460,directories=no,location=no,menubar=no,scrollbars=yes,toolbar=no,status=no,resizable=no,top=0,left=0*/
var newWindow=window.open(URL,winName,features);
newWindow.focus();
}

//Clear search text
function clearSearchTxt() {
//Get reference
var aTag = document.getElementById("searchtxt");
//Clear search field
aTag.onclick = function() {aTag.value="";};
}

// Onload event limit breaker
// Copyright Rozario Chivers 2005
// All rights reserved and that

//Doesn't cause memory issues like the other rather long winded solutions :)
//http://msdn.microsoft.com/library/default.asp?url=/library/en-us/IETechCol/dnwebgen/ie_leak_patterns.asp
var execStr="";
window.onload = function(){eval(execStr);};
function attachFunction(execRefStr) {execStr+=execRefStr+";";}
attachFunction("clearSearchTxt()");