function FixFlash(containerID){
	if (document.getElementById(containerID)){
		var flashContainer = document.getElementById(containerID);
		var flashMovie = document.createElement("div");
		flashMovie.innerHTML = flashContainer.innerHTML.replace(/</g, "<").replace(/>/g, ">");
		flashContainer.parentNode.insertBefore(flashMovie, flashContainer);
		flashContainer.parentNode.removeChild(flashContainer);
		flashMovie.setAttribute("id",containerID);
	}
}

function ToggleVisibility(elid){
	if (document.getElementById(elid)){
		if (document.getElementById(elid).style.display == 'none'){
			document.getElementById(elid).style.display = 'block';
		}else{
			document.getElementById(elid).style.display = 'none';
		}
	}
}

function popup_window(url,width,height){
	show_popup_window=window.open(url,'show_popup_window','width='+width+',height='+height+',left='+eval((window.screen.width/2)-(width/2))+',top='+eval((window.screen.height/2)-(height/2))+',toolbar=no,menubar=no,resizable=yes,status=no,alwaysRaised=yes,scrollbars=yes');
	show_popup_window.focus();
}