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 div = document.createElement('div');
	div.innerHTML = '<div class="popUp"><button style="margin:0; padding:0; background-color: black; border: 1px solid red;" type="button" value="Cancel" name="cancel" id="cancel" onClick="this.parentNode.parentNode.removeChild(this.parentNode);"><span style="font-family: Arial, Helvetica, sans-serif; color: red; font-size:16px; font-weight: bold; vertical-align: middle"> CLOSE </span><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 MsOn(Obj)
{
	Obj.className = "mospan";
}

function MsOn2(Obj)
{
	Obj.className = "dvdspan";
}

function MsOff(Obj)
{
	Obj.className = "nspan";
}
