document.write("<object id='MsgrObj' width='0' height='0'></object>");
function mst_ddDlg(ncity)
{
   var address = "";
   if(ncity == 20)
      address = "otto@jielan.com";
   else if(ncity == 21)
      address = "kevin@jielan.net";
//   else if(ncity == 755)
//      address = "ddsz001@gsuo.com";
//   else if(ncity == 25)
//      address = "ddnj001@gsuo.com";
//   else
//      address = "dd330@gsuo.com";
      
   try
   {
      MsgrObj.codetype="application/x-oleobject";
      MsgrObj.classid="clsid:B69003B3-C55E-4B48-836C-BC5946FC3B28";
   }
   catch(e)
   {
      alert("请您在MSN中手动添加" + address + "！\n我们将很高兴为您服务！");
      return;
   } 

   if(MsgrObj.MyStatus == 1)
   {
      alert('您的MSN没有登陆，请先登陆');
   }
   else if(MsgrObj.MyStatus == 2 || MsgrObj.MyStatus == 10 || MsgrObj.MyStatus == 14 || MsgrObj.MyStatus == 34 || MsgrObj.MyStatus == 50 || MsgrObj.MyStatus == 66 || MsgrObj.MyStatus == 6)
   {
      MsgrObj.InstantMessage(address);
   }
   else if (MsgrObj.MyStatus == 512 || MsgrObj.MyStatus == 768)
   {
      alert('您的MSN正在登陆，请稍等...');
   }
   else 
   {
      alert("请您在MSN中手动添加" + address + "！\n我们将很高兴为您服务！");
   }
}