function closeThis()
{
    var paraName = URL_Request("UploadPanelName");
 var cm=window.parent.document.getElementById(paraName);
 if (cm.style.visibility=="visible")
 {
  cm.style.visibility = "hidden";
 }
}


function URL_Request(strName)
{
   var strHref = document.location.toString();
   var intPos = strHref.indexOf("?");
   var strRight = strHref.substr(intPos + 1);//==========获取到右边的参数部分
   var arrTmp = strRight.split("&");//=============以&分割成数组
   for(var i = 0; i < arrTmp.length-1; i++ ) //===========循环数组
   {
     var dIntPos = arrTmp[i].indexOf("=");
     var paraName= arrTmp[i].substr(0,dIntPos);
     var paraData= arrTmp[i].substr(dIntPos+1);
   
     if(paraName.toUpperCase() == strName.toUpperCase())
     {
        return paraData;
      }
   }
   return "";
}
  </script>

posted on 2007-01-26 11:23  kingeric  阅读(1367)  评论(2编辑  收藏  举报