//JScript source code
//var win = new Array();
//var myWin1=null;
//var myWin2 = null;

function ShowPopup(pURL,PName,pVal,pHeight,pWidth)
{
var myWin = window.open( pURL + "?s=" + pVal,"MyWindow"+PName ,"height=" + pHeight + ",width=" + pWidth  + ",left=100,top=100,resizable=No,scrollbars=no,toolbar=No,status=No");
  //win[win.length]=window.open( pURL + "?s=" + pVal,"MyWindow"+PName ,"height=" + pHeight + ",width=" + pWidth  + ",left=100,top=100,resizable=No,scrollbars=no,toolbar=No,status=No");
   // alert(win.length);
    if(myWin==null)
    {        
        alert("Please remove the Popup Blocker.");    
    }  
    return false;
}

function ShowPopupScroll(pURL,PName,pVal,pHeight,pWidth)
{
 var myWin = window.open( pURL + "?s=" + pVal,"MyWindow"+PName ,"height=" + pHeight + ",width=" + pWidth  + ",left=100,top=100,resizable=No,scrollbars=Yes,toolbar=No,status=No");    
 //win[win.length]= window.open( pURL + "?s=" + pVal,"MyWindow"+PName ,"height=" + pHeight + ",width=" + pWidth  + ",left=100,top=100,resizable=No,scrollbars=Yes,toolbar=No,status=No");    
 //win[win.length]=window.open( pURL + "?s=" + pVal,"MyWindow"+PName ,"height=" + pHeight + ",width=" + pWidth  + ",left=100,top=100,resizable=No,scrollbars=Yes,toolbar=No,status=No");
   // alert(win.length);
        if(myWin==null) 
        {        
        alert("Please remove the Popup Blocker."); 
        }    
        return false;
}

//function Closeallpopup()
//{
////closepopup("mywin")
//        alert(win.length);
//        for(var i=0;i<win.length;i++)
//        {
//            //if(win[i]) // && !win[i].closed)
//            //}
//            win[i].close();
//            //}
//        }
//        }
//function closepopup(PName)
//{
//var win=window.open("MyWindow"+PName);
//win.close();
////var win=window.open("",popupName,"width=1,height=1");
//}

////window.onload=closeallpopup();

function RefreshParent()
{
 
    window.opener.location.reload();
    
}

function text_Focus(txtObj)
{
    if(txtObj!=null)
    {
        txtObj.className="clsTextFocus"
    }
}

function text_LostFocus(txtObj)
{
    if(txtObj!=null)
    {
        txtObj.className="clsText"
    }
}
