function PopWindow(url){
	upload = window.open(url,'window1','width=800,height=700,resizable=1,status=0,scrollbars=1,left=50,top=50');
	upload.focus()
}

function PopUp(url, width, height){
	upload = window.open(url,'window1','width='+width+',height='+height+',resizable=1,status=0,scrollbars=0,left=50,top=50,scroll=1');
	upload.focus()
}

function changeImage(filename){
	document.mainimage.src = filename;
}

function insertFlash(file,width,height,showBorder, color) {
	if (showBorder==false)
		className = ""
	else 
		className = "class=imgrand"

	if (color==undefined) color= "#7D99AF"

	document.write("<object "+ className +" classid='clsid:d27cdb6e-ae6d-11cf-96b8-444553540000'  codebase='http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0' width='"+width+"' height='"+height+"' id='tv' align='middle' VIEWASTEXT>");
	document.write("<param name='allowScriptAccess' value='always' />");
	document.write("<param name='movie' value=`"+file+"` />");
	document.write("<param name='quality' value='high' />");
	document.write("<param name='bgcolor' value='"+ color +"' />");
	
	document.write('<embed src="'+file+'" quality="high" bgcolor="'+ color +'" width="'+width+'" height="'+height+'" name="tv" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />');
	document.write("</object>");
}

var bVisible = true;
var sIdToBlink = '';
function blinkText(psId) {
	sIdToBlink = psId;
	setTimeout('TimedBlink()', 500);
}

function TimedBlink() {
	var oElement = document.getElementById(sIdToBlink);
	if (oElement != null) {
		bVisible = !bVisible;
		if (bVisible) {
			oElement.style.color = '#ffffff';
			setTimeout('TimedBlink()', 1000);
		} else {
			oElement.style.color = '#ff9900';
			setTimeout('TimedBlink()', 1000);
		}
	}
}