/* original script call - no longer used */
function PopWin(dgaURL){
newwindow=open(dgaURL,"WinInfo","scrollbars=yes,toolbar=no,directories=no,menubar=no,resizable=yes,status=no,width=350,height=430");
}

/* later using return call */
function wpopup(DGAwin){
if (! window.focus)return true;
var href;
if (typeof(DGAwin) == 'string')
   href=DGAwin;
else
   href=DGAwin.href;
window.open(href,"WinInfo","scrollbars=yes,toolbar=no,directories=no,menubar=no,resizable=yes,status=no,width=350,height=430");
return false;
}

/* just for image */
function wppopup(DGAwin){
if (! window.focus)return true;
var href;
if (typeof(DGAwin) == 'string')
   href=DGAwin;
else
   href=DGAwin.href;
window.open(href,"WinInfo","scrollbars=yes,toolbar=no,directories=no,menubar=no,resizable=yes,status=no,width=380,height=350");
return false;
}

/* organized closing with home page redirect */
function targetURL(DGAurl, closeme, closeonly)
{
if (! (window.focus && window.opener))return true;
window.opener.focus();
if (! closeonly)window.opener.location.href=DGAurl.href;
if (closeme)window.close();
return false;
}

/* creation of day & date array */
function MakeArray(n) {
this.length = n
return this
}
monthNames = new MakeArray(12)
monthNames[1] = "Jan"
monthNames[2] = "Feb"
monthNames[3] = "Mar"
monthNames[4] = "Apr"
monthNames[5] = "May"
monthNames[6] = "Jun"
monthNames[7] = "Jul"
monthNames[8] = "Aug"
monthNames[9] = "Sep"
monthNames[10] = "Oct"
monthNames[11] = "Nov"
monthNames[12] = "Dec"
dayNames = new MakeArray(7)
dayNames[1] = "Sun"
dayNames[2] = "Mon"
dayNames[3] = "Tue"
dayNames[4] = "Wed"
dayNames[5] = "Thu"
dayNames[6] = "Fri"
dayNames[7] = "Sat"
function customDateString(oneDate) {
var theDay = dayNames[oneDate.getDay() + 1]
var theMonth = monthNames[oneDate.getMonth() + 1]
var theYear = oneDate.getYear()
if (theYear < 1000) {
theYear=theYear+1900
}
return theDay + ", " + theMonth + " " + oneDate.getDate() + ", " + theYear
}

/* Print current page */
function printWindow(){
   bV = parseInt(navigator.appVersion)
   if (bV >= 4) window.print()
}

