/* window function for all windows on the site.  Use as much as possible.  Pass rarameters as follows:
<a href="mypage.html" onclick="newspop(this.href,'name','700','600','yes');return false;">
parameters are:
this.href (what is in the href link)
name = window name. Use same name for all popups with the same window size.  Change for unique popups.
width (700) = number of pixels.
height (600) = number of pixels
Scrollbars = yes or no.
*/
function newPage(mypage, myname, w, h, scroll) {
var winl = (screen.width - w) / 2;
var wint = (screen.height - h) / 2;
winprops = 'height='+h+',width='+w+',top='+wint+',left='+winl+',scrollbars='+scroll+',resizable'
win = window.open(mypage, myname, winprops)
if (parseInt(navigator.appVersion) >= 4) { win.window.focus(); }
}

//60 day calendar
function calWin(mypage, w, h) {
newWin=window.open(mypage,"cal","resizable=0,toolbar=0,location=1,directories=0,status=0,menubar=0,scrollbars=1,copyhistory=0,width="+w+",height="+h+",top=0,left=150");
newWin.focus();
if (newWin.opener == null) newWin.opener = self;
}

function bookmarksite(title, url){
if (document.all)
window.external.AddFavorite(url, title);
else if (window.sidebar)
window.sidebar.addPanel(title, url, "")
}
