		//if overlib is not present, include it as well
		if (typeof OLloaded == "undefined" || !OLloaded) {
			if (! document.getElementById('overDiv')) {
				var overDivElement = document.createElement('div');
				overDivElement.setAttribute("id", "overDiv");
				overDivElement.setAttribute("style", "position:absolute; visibility:hidden; z-index:1000;");
				document.body.appendChild(overDivElement);
			}
			script = document.createElement('script');
			script.src = "/html/js/dl/music/overlibmws.js";
			try {
				if (document.attachEvent) {
					document.write('<script language="JavaScript" src="http://i.d.com.com/html/js/dl/music/overlibmws.js"></script>');
				} else {
			    document.body.appendChild(script);
				}
			} catch (e) {
			}
		}
 /**
  * ajaxErrorPopup shows a popup box in the page where specified and highlights a red error message passed in
  * msghdr = the title of the message displayed at the top of the box
  * msg = the error message - can contain html
  * ref (optional) = the id of the reference object for placement
	*   you may not specify a ref object, and the popup should show up in the middle of the page
	* if ref is defined, the following variables must also be included:
	* x/y - the x and y coords relative to the reference object
	* refCorner/popCorner - the relative corners of the reference and the popup to align using the x/y coords
  *    acceptable values: UR, UL, LR, LL
	*/

	function ajaxErrorPopup(msghdr, msg, ref, x, y, refCorner, popCorner) {
		var body =  '<style>';
				body += '#ajaxErrorBox { width: 225px; font-family: verdana; font-size: 11px; color: #5d5b4a; text-align: left;}';
				body += '#ajaxErrorBox .boxtop {background:url(http://www.download.com/i/dl/watchlist/error_boxtop.gif) no-repeat; height: 22px; padding: 6px 8px 0px 12px; margin: 0px; font-size: 10px; color: #5d5b4a; font-weight: bold; }';
				body += '#ajaxErrorBox .boxbody { background:url(http://www.download.com/i/dl/watchlist/error_boxback.gif); padding: 1px; margin: 0px; }';
				body += '#ajaxErrorBox img { vertical-align: middle; position: relative; top: -1px; padding: 0px 2px 0px 2px; }';
				body += '#ajaxErrorBox img.closebtn { float: right; padding: 3px 8px 0px 0px; border: 0px;}';
				body += '#ajaxErrorBox p { padding: 0px 14px 0px 14px; margin: 6px 0px 6px 0px; }';
				body += '#ajaxErrorBox p.errorMsg { color: #990000; font-weight: bold; }';
				body += '#ajaxErrorBox p.errorMsg a { color: #990000; text-decoration: underline; }';
				body += '#ajaxErrorBox p.errorMsg img.bang { float: left; width: 30px; height: 30px; margin: 3px 5px 5px 0px; }';
				body += '#ajaxErrorBox hr { width: 200px; margin: 0px 14px 5px 11px; background: url(http://i.d.com.com/i/dl/global/dotted_div_hor.gif) repeat-x; border: 0px; padding: 0px; height: 1px; }';
				body += '#ajaxErrorBox .boxbottom { background:url(http://www.download.com/i/dl/watchlist/error_boxbottom.gif) no-repeat; height: 11px; padding: 0px; margin: 0px; }';
				body += '#ajaxErrorBox .yourEmail { border: 1px solid #8f8c73; width: 185px; padding: 2px; }';
				body += '#ajaxErrorBox .password { border: 1px solid #8f8c73; width: 142px; padding: 2px; }';
				body += '#ajaxErrorBox .loginBtn, #ajaxErrorBox .signupBtn { vertical-align: middle; position: relative; top: -1px; padding: 0px 2px 0px 2px; }';
				body += '</style>';
				body += '<div id="ajaxErrorBox">';
				body += '<div class="boxtop clearfix">';
				body += '<a href="javascript:cClick();void(0);"><img src="http://i.d.com.com/i/dl/watchlist/closebtn.gif" width="13" height="13" onmouseover="this.src=\'http://i.d.com.com/i/dl/watchlist/closebtn_over.gif\'" onmouseout="this.src=\'http://i.d.com.com/i/dl/watchlist/closebtn.gif\'" class="closebtn"></a>';
				body += '<img src="http://i.d.com.com/i/dl/watchlist/icon_watchlist.gif" width="14" height="19">';
				body += msghdr;
				body += '</div>';
				body += '<div class="boxbody clearfix">';
				body += '<p class="errorMsg clearfix">';
				body += '<img src="http://i.d.com.com/i/dl/products/icon_problems_sm.gif" class="bang clearfix">';
				body += msg;
				body += '</p>';
				body += '</div>';
				body += '<div class="boxbottom">';
				body += '</div>';
				body += '</div>';
		try {
			if (typeof ref != "undefined" && ref != null) {
				overlib(body, FULLHTML, STICKY, REF, ref, REFX, x, REFY, y, REFC, refCorner, REFP, popCorner, NOJUSTX, NOJUSTY);
				return true;
			} else {
				overlib(body, FULLHTML, STICKY, MIDY, 0, MIDX, 0);
				return true;
			}
		} catch (e) {
			//if overlib didn't work out, alert the error message sans any html
			alert(msg.replace(/(<([^>]+)>)/ig,""));
			return false;
		}
	}
