function checkDate(artDay,artMonth,artYear,fName) {
	var daysinmonth = 31
	
	if ((artMonth == 4) || (artMonth == 6) || (artMonth == 9) || (artMonth == 11)) {
		daysinmonth = 30
	}

	yearby4 = eval(artYear / 4);
	yearby4mod = parseInt(yearby4);
	
	if ((artMonth == '2') && (yearby4 == yearby4mod)) {
		daysinmonth = 29
	}
		
	if ((artMonth == '2') && (yearby4 != yearby4mod)) {
		daysinmonth = 28
	}

	if (artDay > daysinmonth) {
		alert ('Sorry, that is an invalid date.\nThe date will change to the nearest correct date.');
		document[fName].frmDay.value = daysinmonth;
		return false;
	}			
}

function changeSpaces(tstring) {
        nstring='';
        for (var i=0; i <= tstring.length; i++) {
            if (tstring.charAt(i)==' ') { nstring=nstring+'^';
            } else { nstring=nstring+tstring.charAt(i); }
        }
        return nstring;
    }

var desktop,graphic;

/*
function showImage(graphic,thealt){
thealt = changeSpaces(thealt);
destination = 'visual.htm?image=' + graphic + ',' + thealt;
if (desktop && desktop.location)desktop.close();
desktop = window.open(destination, "_blank","toolbar=1,location=0,directories=0,status=0,menubar=1,scrollbars=1,resizable=1,width=620,height=400");
}*/

function showImage(siteid,itype){
destination = 'visual.php?SiteID=' + siteid + '&itype=' + itype;
if (desktop && desktop.location)desktop.close();
desktop = window.open(destination, "_blank","toolbar=1,location=0,directories=0,status=0,menubar=1,scrollbars=1,resizable=1,width=620,height=400");
}

function goFlash(mode){
destination = 'flash.php?mode=' + mode;
if (desktop && desktop.location)desktop.close();
desktop = window.open(destination, "_blank","toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=0,resizable=1,width=760,height=550");
}