function DoSearch()
{	window.location = "/catalog/search_advanced.asp?cid=100&kew=" + escape(document.forms[0].SearchBox.value);
	return true;
}
function noenter() {
  return !(window.event && window.event.keyCode == 13); 
}
function DoSubscribe()
{	window.location = "/catalog/news_form.asp?cid=100&list_id=1&join_quit=join&Email=" + escape(document.forms[0].NewsletterEmail.value);
	return true;
}

function NewOnLoad(newEvent)
{
	/* If an onload handler is already defined, we turn it into a string, and add a ;. */
if(self.onload != null && self.onload != "undefined")
{
  var strOnLoad = self.onload.toString();
  var strNewOnLoad = strOnLoad.substring(strOnLoad.indexOf('{')+1,strOnLoad.length -2) + '; ';
}

/* if not just initialise a empty string variable */
else {
	var strNewOnLoad = "";
}

/* now we add in the statements we want to get executed onload */
strNewOnLoad += newEvent;
/* this could be 'init();' or whatever you like. */

/* Now we compile it all back into a usable function, and assign it to
the windows onload event handler */
self.onload = new Function(strNewOnLoad);
}
