﻿  function OpenProductHelper(strQueryUrl)
  {
     var width = window.screen.width;
     var height = window.screen.height;
     var wHeight;
     var wWidth;
     var fWidth;
     var fHeight;
     
     if(width < 1024)
     {
        wWidth = fWidth = 790;
     }
     else
     {
        wWidth = fWidth = 880;
     }
     
     if (height <= 600)
     {
       wHeight = 530;
       fHeight = 340;
     }
     else if (height <= 768)
     {
       wHeight = 650;
       fHeight = 500;
     }
     else if (height <= 864)
     {
       wHeight = 785;
       fHeight = 600;
     }
     else 
     {
       wHeight = 800;
       fHeight = 650;
     }
     
     var strUrl = "producthelppopup.aspx?furl=" + strQueryUrl + "&w=" + fWidth + "&h=" + fHeight;
     var strProp = "width="+ wWidth +", height="+ wHeight+"";
     win = window.open(strUrl,'ProductHelp',strProp);
     win.focus();
  }
  
  function WindowHandler()
  {
    var winOpener = window.opener;
    var blnArgs = (arguments.length > 0)? true : false;
    var strHome = '/';
    
    try
    {
        winOpener.location = (blnArgs)? arguments[0]: strHome;
        winOpener.focus();
    }
    catch(e)
    {
        winNewWin = (blnArgs)? window.open(arguments[0],"win") : window.open(strHome,"win");
        winNewWin.focus();
    }
  }
