/**
 * Used mainly to hide the status message from showing javascript:function () on mouseovers
 * @param   str   The string to display
 * @returns       true
 */
function setStatus (str) {
	self.status=str;
	return true;
}
/**
 * Sets display of objects
 * @param argument list of element IDs and display values
 */
function setDivDisplay () {
	if (document.getElementById) {
		var obj, args=setDivDisplay.arguments;
		for (i=0; i<(args.length-1); i+=2) {
			if ((obj=document.getElementById (args[i]))!=null) {
				if (obj.style) obj.style.display = args[i+1];
			}
		}
	}
}
/**
 * Pads the begining of a number with a zero if it's less then 10
 * @return   A string containing a padded number such as '01'
 */
function padNum (x) {
	return (x<10)? '0'+x:x;
}


/*audio legue pass links*/
//Generic Open-Window function
function open_window_ex(url, title, height, width, options) {
    var path = url;
    if( url.search(/^http:/) == -1 ) {
        path = "/popups/" + url;
    } else {
        var nbaDomain = new RegExp("/^http:\/\/www.nba.com\/([.*]*)/");
        var result = url.match(nbaDomain);
        if( result != null ) {
            path = "/popups/" + result[1];
        } else {
            path = url;
        }
    }
    var opts = '';
	if(options == null || options == "null")
		opts = 'toolbar=0, location=0, directories=0, status=0, menubar=0, scrollbars=yes, resizable=yes';
    else
		opts = options;
		
	opts += ',width=' + width;
    opts += ',height=' + height;
    mywin=window.open(path,title,opts);
}
