/* stopError() prevents error dialogs from displaying when
 * an error occurs.
 */
function stopError() {
	return true;
}
window.onerror = stopError;

/* Creates a popup window
 */
function popup(pop_url, winname, windowWidth, windowHeight, scrollbars, resizable) {
	spawn = window.open(pop_url,winname,"scrollbars="+scrollbars+",width="+windowWidth+",height="+windowHeight+",resizable="+resizable);
	spawn.focus()
}
/* Used by the popup windows to close themselves
 */
function closeWindow() {
	parent.close();
}
