 function OpenWindow(page,name,w,h,scroll)
 {
  setari = 'height='+h+',width='+w+',scrollbars='+scroll+',resizable';
  win = window.open(page,name,setari);
 }

 function changemodel(selected_model_id) {

  myArray=modelsArray;
  myForm=document.formarticle;
  var arrayLength = modelsID.length;
  var selMakeIndex = document.formarticle.make.selectedIndex;
  var selMake = document.formarticle.make.options[selMakeIndex].value;
  var modelIndex=0;
  document.formarticle.model.options.length = 0;
  for (var i=0;i<arrayLength;i++)  //For all makes
  {
    var mkSplitArray =  modelsID[i];
    if (selMake == mkSplitArray)  // For the choosen make
    {
      myForm.model.options[modelIndex] =   new Option ('...', 0);
      modelIndex++;
      for (var j=0;j<myArray[mkSplitArray].length;j++) //For all the models within
      {
        var splitArray = myArray[mkSplitArray][j].split("|");
        var modelName = splitArray[1];
        var modelId = splitArray[0];

          myForm.model.options[modelIndex] =   new Option (modelName, modelId);
          if (selected_model_id == modelId)
          {
            myForm.model.selectedIndex = modelIndex;
          }
          modelIndex++;
      } // for j
      break;
    }
  } // for i
}
