//Dynamic write object tag - SiC/CYAN 2004
function ubbShowObj(strType,strID,strURL,intWidth,intHeight)
{
	var varHeader="b";
	var tmpstr="";
	var bSwitch = false;
	//Reverse the State
	bSwitch = document.getElementById(varHeader+strID).value;
	bSwitch	=~bSwitch;
	document.getElementById(varHeader+strID).value = bSwitch;
	if(bSwitch){
		//Code for already shown
		document.getElementById(strID).innerHTML = "Url: "+strURL+"";
	}else{
		//Code for not shown
		switch(strType){
			case "swf":
				tmpstr="<OBJECT codeBase=http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0 classid=clsid:D27CDB6E-AE6D-11cf-96B8-444553540000 width="+intWidth+" height="+intHeight+"><param name=movie value='"+strURL+"'><param name=quality value=high><param name=wmode value=transparent><param name=AllowScriptAccess value=never><embed src="+strURL+" quality=high pluginspage='http://www.macromedia.com/go/getflashplayer' type='application/x-shockwave-flash' wmode=transparent width="+intWidth+" height="+intHeight+">"+strURL+"</embed></OBJECT>";
				break;
					case "qt":
				tmpstr="<embed src='"+strURL+"' autoplay=true Loop=false controller=true playeveryframe=false cache=false scale=TOFIT bgcolor=#000000 kioskmode=false targetcache=false pluginspage=http://www.apple.com/quicktime/>"
		}
		document.getElementById(strID).innerHTML = tmpstr;
	}
}

//Quote Comment Text - SiC/CYAN 2004
function doquote(objID,strAuthor){
	document.inputform.message.value += "[quote="+strAuthor+"] "+document.getElementById(objID).innerText+" [/quote]\n";
	window.location.hash="comment";
}

function showIntro(objID)
{
	if (document.getElementById(objID).style.display == "none") {
		document.getElementById(objID).style.display = "";
	}else{
		document.getElementById(objID).style.display = "none";
	}
}
function runEx(sy_space) {
cod=document.all(sy_space)
var code=cod.value;
if (code!=""){
var newwin=window.open('','',''); 
newwin.opener = null 
newwin.document.write(code); 
newwin.document.close();
}
}

function copyCode(sy_space) {
var rng = document.body.createTextRange();
rng.moveToElementText(sy_space);
rng.scrollIntoView();
rng.select();
rng.execCommand("Copy");
rng.collapse(false);
}



function saveCode(sy_space) {
var winname = window.open('', '_blank', 'top=10000');
winname.document.open('text/html', 'replace');
winname.document.writeln(sy_space.value);
winname.document.execCommand('saveas','','sycode.htm');
winname.close();
}