function ToggleOn(Obj)
/* This function will change the contents of a table cell
to the style specified in a css class called td.HiLite.
It will also set the status bar and tooltip to display the
string information in "title". */
{
/* document.getElementById("dummy").innerHTML=
"<embed src=\"wav2.wav\" hidden=\"true\" autostart=\"true\" loop=\"false\" />";*/
  Obj.className = "HiLite";
	window.defaultStatus = Obj.title;
	
}


function ToggleOff(Obj)
/* This function will change the contents of a table cell
to the style specified in a css class called td.Normal.
It will then set the status bar to display the page title. */
{
  Obj.className = "Normal";
  ClearTitle();
}


function Go(Obj)  
/* This function will execute a hyperlink to the location
specified in "elink".  The target frame defaults to "_self",
but can be specified in the "tframe" property of the calling
object. */
{
	var LinkTo = Obj.getAttribute('elink');
	var TF = Obj.getAttribute('tframe');
	var TargetWindow = "_self";
	if (TF != null)
		TargetWindow = TF;
	window.open(LinkTo,TargetWindow);
}


function ClearTitle()
/* This function will make the status bar display the page 
title as specified in the html head. */
{
  window.defaultStatus = document.title;
}


function SetTitle(Obj) 
/* This function will set the status bar to display the "title" 
propery of the object. */
{
	window.defaultStatus = Obj.title;
}

function createPopUp(){
	var d = document.getElementById('dimmer');
	d.className = "dimmed";
	var div = document.createElement('div');
	div.innerHTML = '<div class="popUp"><button style="margin:0; padding:0; background-color: black; border: 1px solid #CCCC00;" type="button" value="Cancel" name="cancel" id="cancel" onClick="closePopUp(this)"><img src="images/pixel.gif" width="12"/><span style="font-family: Arial, Helvetica, sans-serif; color:#B40000; font-size:14px; font-weight: bold; vertical-align: middle">CLOSE</span><img src="images/pixel.gif" width="12"/><img src="images/X.gif" style="margin: 0; padding:0; vertical-align: middle" /></button><iframe height="523" width="497" scrolling="no" border="0" src="Message.php"></iframe></div>';
	document.body.appendChild(div.firstChild);
}

function closePopUp(ths){
	ths.parentNode.parentNode.removeChild(ths.parentNode);
	var d = document.getElementById('dimmer');
	d.className = "undimmed";
}

function MsOn(Obj)
{
	Obj.className = "mospan";
}

function MsOn2(Obj)
{
	Obj.className = "dvdspan";
}

function MsOff(Obj)
{
	Obj.className = "nspan";
}

