﻿function classCommon() {

    this.version = '20090601.1';
    

    this.errorWindow = 'Popup blocker detected.\n\nA required window could not be opened.  Please allow popup windows before proceeding.';


    /******************************************************************************
    * method: openWindow [20070827]
    * notes:  this method creates a new window object then displays a message if
    *         the window is blocked.
    * 
    ********/

    this.openWindow = function(strUrl, strName, strFeatures, bReplace) {
        var elWindow = window.open((strUrl ? strUrl : ''), (strName ? strName : ''), (strFeatures ? strFeatures : ''), (bReplace ? bReplace : false));
        if(!elWindow) {
            elWindow = false;
            alert(this.errorWindow);
        };
        return elWindow;
    };

};
var objCommon = new classCommon();
 

function rollThis(whichImage,whichPic) {
    document.images[whichImage].src = whichPic;
}
 
function changeBack(whichImage,whichPic) {
    document.images[whichImage].src = whichPic;
}