
//递进式下拉选择框
function selectChange(oPrent, oChild, arrPrtValue, arrChdValue, arrChdText){
  var oSel ;
  var x ;
  //先清空子选择框
  for (var i=oChild.options.length; i>=0; i--) oChild.options[i]=null;
 
  for (x=0; x<arrChdValue.length; x++){
      if ( arrPrtValue[x] == oPrent.value ){
          oSel = document.createElement("option") ;
          oSel.value = arrChdValue[x];
          oSel.text = arrChdText[x] ;
          oChild.add(oSel) ;
       }
   }
}
//初始化递进式下拉选择框
function selectLoad(oChild, arrPrtValue, arrChdValue, arrChdText, PrtValue, SelValue){
  var oSel ;
  var x ;

  for (x=0; x<arrChdValue.length; x++){
      if ( PrtValue && arrPrtValue[x] == PrtValue ){
          oSel = document.createElement("option") ;
          oSel.value = arrChdValue[x];
          oSel.text = arrChdText[x] ;
          if ( SelValue && arrChdValue[x]==SelValue ){oSel.selected=true};
          oChild.add(oSel) ;
       }
   }
}
//打开新窗口1
function CustomNewWin(URL,WinName,w_width,w_height){  
  var NewWin,CustomStr;
  var d_width = window.screen.availWidth - 12;
  var d_height = window.screen.availHeight - 83;
  
  if (w_width)
    CustomStr = "width=" + w_width + " height=" + w_height ;
  else
    CustomStr = "width=" + d_width + " height=" + d_height + " left=0 top=52";  //全屏打开

  CustomStr += " scrollbars=1 resizable=1";
  NewWin = window.open(URL,WinName,CustomStr);
  //return NewWin;
}

//打开新窗口2
function popwin2(url)                    
     {                    
        window.open(url,"search","toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=1,resizable=0,width=500,height=520,top=0,left=0");       }       