/*	L19 Global Application Functions
 *	Version 1.0.0
 *
 *	Developed by, Jeremiah J. Jacks <jjacks@digitalbrandgroup.com>
 *
 *	Copyright (c) 2007-2008 Intensity Sports, Inc.
 *	          (c) 2006-2008 Digital Brand Group, Inc.
 *
 *--------------------------------------------------------------------------*/

// soon to be depreciated - use pwc windows
function ow(theURL,winName,features) { window.open(theURL,winName,features); }
// soon to be depreciated - use css
function ws(w,h) { document.write('<img src="/images/spacer.gif" border="0" width="'+w+'" height="'+h+'" />'); }

// window.onload functions for multi-loading page functionality
var onload_functions = new Array();
function DBG_initOnload() { window.onload = DBG_execOnloadFunctions; }
function DBG_addOnloadFunction(name) { onload_functions[onload_functions.length] = name; }
function DBG_execOnloadFunctions() {
	for(var i = 0; i < onload_functions.length; i++) {
		eval(onload_functions[i]);
	}
}

// get date for requested utc offset
function getDate(utc_offset) {
	d = new Date();
	utc = d.getTime() + (d.getTimezoneOffset() * 60000);
	return new Date(utc + (3600000 * utc_offset));
}
