function customWindowOpen(strUrl, strWindow, strParams, iWidth, iHeight)
{
	var
		iLeft, iTop;
	iLeft = (window.screen.width - iWidth) / 2;
	iTop = (window.screen.height - iHeight) / 2;
	strParams = strParams + ",width=" + iWidth.toString() + ",height=" + iHeight.toString() + ",left=" + iLeft.toString() + ",top=" + iTop.toString();
	window.open(strUrl, strWindow, strParams);
}

function getContent(x)
{	
	
	var content=document.getElementById(x);
	var container=document.getElementById('stlContent');
	
	if(content!=null)
	{
		container.innerHTML = content.innerHTML  ;
	}	
	
}
			
function PlayVideo(prmObj,OtherId,ThirdId)
{
    var d = new Object();

    var obj = document.getElementById(prmObj.id);
    obj.style.display = "block";
    obj.className="videotbl";
     var objA = document.getElementById(OtherId.id);
    objA.style.display = "none";
    //alert(ThirdId.id);
   d= document.getElementById(ThirdId.id).object;
   //alert(d.id);
   d.play(); 
}
			
function radFunction(exec)
{
   if(exec==true)
   {
      var oSpans = document.getElementsByTagName('span');
      for (i=0; i<oSpans.length; i++)
      {
        if ((oSpans[i].id.indexOf('phcEText') > -1) &&
            (oSpans[i].id.indexOf('Editor') == -1) &&
                (oSpans[i].id.indexOf('Spell') == -1))
        {
        
            if(oSpans[i].innerHTML!='')
            {
				oSpans[i].style.display = '';
            }
        }
      }
    }
}         

function CheckPlayerStatus(MediaId)
{
    d= document.getElementById(MediaId.id).object;
    if (1 == d.playState)
        alert("Windows Media Player is stoped!");
}
