function confirmDelete(myForm, record) {
if (confirm('You are about to delete this record.\r\nContinue?')) {
disableForm(myForm);
location.href='record.php?action=delete&id='+record;
}}

function openNewWindow(url, w, h) {
newWin = window.open(url, '', 'resizable,width=' + w + ',height=' + h);
return false;
}

function isset(varname) {
if(typeof(window[varname]) != 'undefined') return true;
else return false;
}

function displayToggle(item) {
thisItem=document.getElementById(item);
thisItem.style.display=(thisItem.style.display=="none" ? "inline" : "none");
}