//checks all CheckBoxes with the given name with the given value
function CheckAllCheckBoxes(checkControl,aspCheckBoxID)
{
	for(i = 0; i < document.forms[0].elements.length; i++)
	{
		elm = document.forms[0].elements[i]
		if (elm.type == 'checkbox')
		{
			if (elm.name.indexOf(aspCheckBoxID) > -1)
			{
				elm.checked = checkControl.checked;
			}
		}
	}
}
function GetDateOnly() {
    var currentTime = new Date();
    var month = currentTime.getMonth() + 1;
    var day = currentTime.getDate();
    var year = currentTime.getFullYear();
    return month + "/" + day + "/" + year;
}
function HandleNoFlash(errorCode) {
    var map = window.document.getElementById("map");
    if (map != null) {
        map.style.display = 'none';
    }
    var maptext = window.document.getElementById("maptext");
    if (maptext != null) {
        maptext.style.display = 'none';
    }
    var nomap = window.document.getElementById("nomap");
    if (nomap != null) {
        nomap.style.display = 'none';
    }
    return;
}  

