/*
****************************************************************************************************
* Author:	Unknown
* Date:		Unknown
* Name:		scripts.js
* Description:	
*
*	$Log: scripts.js,v $
*	Revision 1.3  2008/09/11 22:27:26  jwang
*	initial cleanup
*	
****************************************************************************************************
*/

function launchWin(page,name,height,width,trim,resize,scroll) {
	var leftvalue = ((375) - (width / 2));
	var topvalue = ((screen.availHeight / 2) - (height / 2));
	if (trim) {
		OpenWin = this.open(page, name, "top=" + topvalue + ", left=" + leftvalue + ",status=yes,toolbar=yes,menubar=yes,location=yes,scrollbars=" + scroll + ",resizable=" + resize + ",height=" + height + ",width=" + width);
	} else {
		OpenWin = this.open(page, name, "top=" + topvalue + ", left=" + leftvalue + ",status=yes,toolbar=no,menubar=yes,location=no,scrollbars=" + scroll + ",resizable=" + resize + ",height=" + height + ",width=" + width);
	}
	OpenWin.focus();
}

// suppress any js errors
function stoperror(){
	return true
}
window.onerror=stoperror

