function drawFlash(element_id, xurl, xwidth, xheight, xparam)
{
	var d = document.getElementById(element_id);
	var obj_str = 
		'<object type="application/x-shockwave-flash" data="' + xurl + location.search + '" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"' +
		' width="' + xwidth + '" height="' + xheight +'">' +
		'<param name="movie" value="' + xurl + location.search + '" />' + 
		'<param name="quality" value="autohigh" />' + 
		'<param name="scale" value="noborder" />' +
		'<param name="allowScriptAccess" value="sameDomain" />' +
		'<param name="wmode" value="transparent" / >' + 
		'<embed src="' + xurl  + location.search + '" quality="autohigh" pluginspage="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash" ' +
		'type="application/x-shockwave-flash" width="' + xwidth + '" height="' + xheight + '" wmode="transparent">' + 
		'</embed>' + 
		'</object>';
	d.innerHTML = obj_str;
}

function openNewWindow(URLtoOpen, windowName, windowFeatures) {
	 newWindow=window.open(URLtoOpen, windowName, windowFeatures); 
}
