function getURL(){
	var url = window.location.href.slice(window.location.href.indexOf('?') + 1);
	if(url=="fail"){
		document.getElementById("login-error").style.display = "block";
	}
	if(url=="noaccess"){
		document.getElementById("no-access").style.display = "block";
	}
	if(url=="nomatch"){
		document.getElementById("login-error").style.display = "block";
	}
}

function printFlash(source, width, height, id, bg_color) {
document.write('<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0" ');
document.write('width="'+width+'" height="'+height+'" id="'+id+'" align="middle" />');
document.write('<param name="allowScriptAccess" value="sameDomain" />');
document.write('<param name="movie" value="'+source+'" />');
document.write('<param name="menu" value="false" />');
document.write('<param name="wmode" value="transparent" />');
document.write('<param name="quality" value="high" />');
document.write('<param name="bgcolor" value="'+bg_color+'" />');
document.write('<embed src="'+source+'" menu="false" wmode="transparent" quality="high" bgcolor="'+bg_color+'" width="'+width+'" height="'+height+'" name="'+id+'" align="middle" ');
document.write('allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />');
document.write('</object>');
}
