
function openWin(winName, urlLoc, w, h, showStatus, isViewer) {
	l = (screen.availWidth - w)/2;
	t = (screen.availHeight - h)/2;
	features  = "toolbar=no";      // yes|no 
	features += ",location=no";    // yes|no 
	features += ",directories=no"; // yes|no 
	features += ",status=" + (showStatus?"yes":"no");  // yes|no 
	features += ",menubar=no";     // yes|no 
	features += ",scrollbars=" + (isViewer?"yes":"no");   // auto|yes|no 
	features += ",resizable=" + (isViewer?"yes":"no");   // yes|no 
	features += ",dependent";      // close the parent, close the popup, omit if you want otherwise 
	features += ",height=" + h;
	features += ",width=" + w;
	features += ",left=" + l;
	features += ",top=" + t;
	winName = winName.replace(/[^a-z]/gi,"_");
	return window.open(urlLoc,winName,features);
}

function confirmSubmit(){return confirm("WARNING!\n\nThis will permanently remove this record.\n\nContinue?");}

function getSub(object){document.frmCatalogue.action = object.options[object.selectedIndex].value;}
function RowOn(Row){ Row.style.backgroundColor = "#dedede"; Row.style.color = "#000000"; Row.style.cursor = "pointer";}
function RowOff(Row){ Row.style.backgroundColor = "#ffffff"; Row.style.color = "#000000";}
