
function btSrhOnClick()
{
  if( edtKey.text=="" )
  {
    widget.alert("ÇëÊäÈëÒª·­ÒëµÄµ¥´Ê.");
    return;
  }
  	
  widget.widgetHeight = 255;	
  bgFlyOut.Visible = true;
  HtmlPanelUrl = "http://dict.cn/mini.php?q=" + edtKey.Text;
  HtmlPanelVisible = true;
}

function widgetOnDeActive()
{
  HtmlPanelVisible = false;  
  bgFlyOut.Visible = false;
  widget.widgetHeight = 50;
}

function edtKeyOnKeyDownReturn()
{
	btSrhOnClick();
}

function widgetOnDock()
{
  if(!bgFlyOut.Visible)
    widget.widgetHeight = 50
  else
    widget.widgetHeight = 255;
}

function widgetOnUnDock()
{
  if(!bgFlyOut.Visible)
    widget.widgetHeight = 50
  else
    widget.widgetHeight = 255;
}