// JavaScript Document

function openLink(link) { //to do with onclick=
window.name='main'; //names the main window
var w=window.open(link, 'popup', 'scrollbars=1,resizable=1,toolbar=1,menubar=1,location=1,'+
'width=590,height=400,left=20,top=20');
w.focus(); // makes popped window open on top of other windows
return false;
}
// cause each link to open in the same window
function opensetAttribute(link){ //to do with mouseover=
var addStr = ' (popup link)'; // make sure there is a leading space
if (link.title.indexOf(addStr)==-1) { 
link.title = link.title + addStr; //adds extra phrase to title in mouseover message
('target','_blank');
}
}

