﻿// JScript File

function customWindowOpen(strUrl, strWindow, strParams, iWidth, iHeight)
{
	try
	{
		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);
	}
	catch (e) 
	{ 
		
	} 
}

function createSearchEvent()
{
   
    // In Case Of Pressing Enter Perform Search			
    if(event.keyCode == 13)
    {	
        __doPostBack('_ctl0$HeaderUC1$ButtonSearch$LinkButton2','')
                
        return false;
    }		
}
function radFunction(exec)
{
   if(exec==true)
   {
      var oSpans = document.getElementsByTagName('span');
      for (i=0; i<oSpans.length; i++)
      {
        if ((oSpans[i].id.indexOf('phcText') > -1) &&
            (oSpans[i].id.indexOf('Editor') == -1) &&
                (oSpans[i].id.indexOf('Spell') == -1))
        {
            if(oSpans[i].innerHTML!='')
            {
                oSpans[i].style.display = '';
                }
        }
      }
    }
}         