function setCheckboxes(the_form, do_check)
{
    var elts      = (typeof(document.forms[the_form].elements['toDelete[]']) != 'undefined')
                  ? document.forms[the_form].elements['toDelete[]']
                  : (typeof(document.forms[the_form].elements['selected_tbl[]']) != 'undefined')
          ? document.forms[the_form].elements['selected_tbl[]']
          : document.forms[the_form].elements['selected_fld[]'];
    var elts_cnt  = (typeof(elts.length) != 'undefined')
                  ? elts.length
                  : 0;

    if (elts_cnt) {
        for (var i = 0; i < elts_cnt; i++) {
            elts[i].checked = do_check;
        } // end for
    } else {
        elts.checked        = do_check;
    } // end if... else

    return true;
} // end of the 'setCheckboxes()' function

function deleteSelectedRecords(){
	
}


function OpenSpecWindow(url, width, height){
	window.open(url,'',"left=200,top=100,width=" + width + ",height=" + height +", status=no,menubar=no,resizable,directories=no,location=no , scrollbars");
	}
	
function confirmMultipleDelete(msg){
var is_confirmed = confirm(msg);
    if (!is_confirmed) {
        return false;
		}
}	
	
function calendar(NAVURL,FNAME,FFIELD){
	win="";
			NEWNAVURL=NAVURL+"?fname="+FNAME+"&ffield="+FFIELD;
			if (win && win.open && !win.closed){
			win.focus();
			win.document.location.href=NEWNAVURL;
			}

win=window.open(NEWNAVURL,'calender',"width=243,height=230,left=200,top=100,toolbar=no,scrollbars=no,menubar=0;statusbar=0;border=0;frameborder=0");

// Add this
// <button class="CalButton" onclick= "calendar('/calendar_inc/calendar_server_date.php','FORM NAME','FIELD NAME')">: :</button>
}

function navto(url){
	window.location.href=url;
}

function OpenWebCam(){
window.open('http://www.blaauwberg.net/tourisminfo/webcam.asp','Webcam',"left=200,top=0,width=450,height=400,scrollbars=1,resizable=yes");

}

function openCalc(url){
	window.open(url,'Popup',"left=150,top=0,width=600,height=500,scrollbars=1,resizable=yes");	
	}
