// javascript 1 - Print Date// 
var dayStr = new Array(
      'Sunday','Monday','Tuesday','Wednesday','Thursday','Friday','Saturday'
    );
    var monStr = new Array(
      'January','February','March','April','May','June','July','August','September','October','November','December'
    );
    var today = new Date();
    var day = dayStr[today.getDay()];
    var d = today.getDate();
    var m = monStr[today.getMonth()];
    var y = today.getFullYear();

    function printDate()
    {
      document.write(day+' '+m+' '+d+', '+y);
    }
// javascript 2 - Random Image// 
// var theImages = new Array() // do not change this
// To add more image files, continue with the
// pattern below, adding to the array.

// theImages[0] = 'http://pcaamerica.channing-bete.com/images/index01.jpg'
// theImages[1] = 'http://pcaamerica.channing-bete.com/images/index02.jpg'
// theImages[2] = 'http://pcaamerica.channing-bete.com/images/index03.jpg'
// theImages[3] = 'http://pcaamerica.channing-bete.com/images/index04.jpg'
// theImages[4] = 'http://pcaamerica.channing-bete.com/images/index05.jpg'
// theImages[5] = 'http://pcaamerica.channing-bete.com/images/index06.jpg'
// theImages[6] = 'http://pcaamerica.channing-bete.com/images/index07.jpg'
// theImages[7] = 'http://pcaamerica.channing-bete.com/images/index08.jpg'


// do not edit anything below this line

var j = 0
var p = theImages.length;
var preBuffer = new Array()
for (i = 0; i < p; i++){
   preBuffer[i] = new Image()
   preBuffer[i].src = theImages[i]
}
var whichImage = Math.round(Math.random()*(p-1));
function showImage(){
document.write('<img src="'+theImages[whichImage]+'">');
}
// javascript 3- POP Window// 
function pop(url) {
    var newWindow = open(url, "secondWindow", "toolbar,menubar,scrollbars,resizable,width=500,height=450,left=250,top=50");
newWindow.focus();
}
// javascript 4- POPOP Window for Funding Information Links// 
function popop(url) {
    var newWindow = open(url, "secondWindow", "scrollbars,resizable,toolbar,width=565,height=450,left=200,top=10");
newWindow.focus();
}