function clearText(thefield){
if (thefield.defaultValue==thefield.value)
thefield.value = ""
} 

var newwindow;
function popup(url)
{
newwindow=window.open(url,'name','height=40,width=350,resizable=yes,scrollbars=no,toolbar=no,menubar=no,location=no,status=yes');
	if (window.focus) {newwindow.focus()};
}

function externalLinks() {
 if (!document.getElementsByTagName) return;
 var anchors = document.getElementsByTagName("a");
 for (var i=0; i<anchors.length; i++) {
   var anchor = anchors[i];
   if (anchor.getAttribute("href") &&
       anchor.getAttribute("rel") == "external")
     anchor.target = "_blank";
 }
}
window.onload = externalLinks;

