function openPopWin(object, wname, width, height) { new_window = window.open(object,wname, 'width=' + width + ',height=' + height + ',toolbar=no,location=no,' + 'directories=no,status=yes,menubar=no,scrollbars=yes,resizable=yes'); } function showPreview(text, width, height, pre) { prv_window = window.open('','preview', 'width=' + width + ',height=' + height + ',toolbar=no,location=no,' + 'directories=no,status=yes,menubar=no,scrollbars=yes,resizable=no'); if (pre) { prv_window.document.write('
'); }
prv_window.document.write(text);
if (pre) { prv_window.document.write(''); }
prv_window.document.close();
prv_window.focus();
}
function showhideDiv(helpID, showIn) {
if (document.getElementById) {
winHelp = document.getElementById(helpID);
} else if (document.all) {
winHelp = document.all[helpID];
} else if (document.layers) {
winHelp = document.layers[helpID];
}
if (winHelp.style.display == "none") {
winHelp.style.display = "block";
} else { winHelp.style.display = "none"; }
if (!showIn) { winHelp.style.display = "none"; }
}
function showConfirm(confirmText) {
return confirm(confirmText);
}
function writeAsHtml(divID, htmlCode) {
if (document.getElementById) {
winDiv = document.getElementById(divID);
} else if (document.all) {
winDiv = document.all[divID];
} else if (document.layers) {
winDiv = document.layers[divID];
}
winDiv.innerHTML = htmlCode;
}
function changeSelect(formPointer, method) {
for (i = 0; i < formPointer.elements.length; i++) {
oneElement = formPointer.elements[i];
if (oneElement.type == 'checkbox') {
if (method == 'all') {
if (!oneElement.checked) { oneElement.checked = true; }
}
if (method == 'none') {
if (oneElement.checked) { oneElement.checked = false; }
}
if (method == 'invert') {
if (oneElement.checked) { oneElement.checked = false;
} else { oneElement.checked = true; }
}
}
}
}