|  |  | 
 |  |  |     var ids = {!GETRECORDIDS( $ObjectType.Maintenance_Contract_Estimate__c)}; | 
 |  |  |     if (ids.length == 1) { | 
 |  |  |         if("{!Maintenance_Contract__c.RecordTypeId}"  == "01210000000gTYq"){ | 
 |  |  |              window.open( "/apex/SelectAssetEstimateVM?copyid=" + ids[0], "_top"); | 
 |  |  |              //URF限次合同2期 LY 20220902 start | 
 |  |  |              if("{!Maintenance_Contract__c.URF_Contract__c}"==true){ | 
 |  |  |                  window.open( "/apex/SelectAssetEstimateURF?copyid=" + ids[0], "_top"); | 
 |  |  |              }else { | 
 |  |  |                  window.open( "/apex/SelectAssetEstimateVM?copyid=" + ids[0], "_top"); | 
 |  |  |              } | 
 |  |  |              //URF限次合同2期 LY 20220902 end | 
 |  |  |         }else{ | 
 |  |  |              window.open( "/apex/SelectAssetEstimate?copyid=" + ids[0], "_top"); | 
 |  |  |         } |