
function newwins(keyword,lmid,hyid,dqid)
{
 //window.open('http://sou.wjw.cn/snews.aspx?keyword='+escape(keyword)+'&classId='+lmid+'&dq='+escape(dqid)+'&hy='+hyid,'newwin','toolbar=yes,menubar=yes,scrollbars=yes,resizable=yes,location=yes, status=yes');
  if(keyword == '')
  {
     keyword ='$';
  }
  if(lmid == '')
  {
     lmid ='$';
  }
  if(hyid == '')
  {
     hyid ='$';
  }
  if(dqid == '')
  {
     dqid ='$';
  }
  
 window.location.href='http://www.qqdcw.com/zx/Search-'+keyword+'-'+lmid+'-'+hyid+'-'+dqid+'-0.xhtml';
 //window.open('http://www.qqdcw.com/zx/Search-'+keyword+'-'+lmid+'-'+hyid+'-'+dqid+'-0.xhtml','newwin','toolbar=yes,menubar=yes,scrollbars=yes,resizable=yes,location=yes, status=yes');
}


function Request(strName)
{
    var strHref = window.document.location.href;
    alert(strHref);
    var intPos = strHref.indexOf("?");
    var strRight = strHref.substr(intPos + 1);

    var arrTmp = strRight.split("&");
    for(var i = 0; i < arrTmp.length; i++)
    {
        var arrTemp = arrTmp[i].split("=");

        if(arrTemp[0].toUpperCase() == strName.toUpperCase()) return arrTemp[1];
    }
    return "";
}

function jsSelectItemByValue(objSelect,objItemValue)
{    

     //إذ¶دتا·ٌ´وشع
     var isExit = false;
     for(var i=0;i<objSelect.options.length;i++)
     {
         if(objSelect.options[i].value == objItemValue)
         {
             objSelect.options[i].selected = true;
              //window.alert(objSelect.options[i].value);
             isExit = true;
             break;
         }
     }      
  
}

 function menuFix() 
    {

        if (document.getElementById('navht')!=null)
        {
         var sfEls = document.getElementById("navht").getElementsByTagName("li");
         
         for (var i=0; i<sfEls.length; i++) 
         {
          sfEls[i].onmouseover=function() 
          {
          this.className+=(this.className.length>0? " ": "") + "sfhover";
          }
          sfEls[i].onMouseDown=function() 
          {
          this.className+=(this.className.length>0? " ": "") + "sfhover";
          }
          sfEls[i].onMouseUp=function() {
          
          this.className+=(this.className.length>0? " ": "") + "sfhover";
          }
          sfEls[i].onmouseout=function()
           {
          this.className=this.className.replace(new RegExp("( ?|^)sfhover\\b"),"");

          }
       }
    }
}

window.onload=menuFix;
