<apex:page standardcontroller="Maintenance_Contract_Estimate__c" sidebar="false">
	<!-- <apex:includeScript value="{!URLFOR($Resource.connection20)}"/>
    <apex:includeScript value="{!URLFOR($Resource.apex20)}"/> -->
    <script type="text/javascript">
		var rdn = '{!Maintenance_Contract_Estimate__c.RecordType_DeveloperName__c}';
		// 追加限次跳转
		var urf = '{!Maintenance_Contract_Estimate__c.URF_Contract__c}';
		if(rdn == 'NewMaintenance_Quote'){

			if (urf == 'true') {
				window.open("/apex/SelectAssetEstimateURF?id={!URLENCODE(Maintenance_Contract_Estimate__c.Id)}", "_self")
			}else{
				window.open("/apex/SelectAssetEstimateVM?id={!URLENCODE(Maintenance_Contract_Estimate__c.Id)}", "_self");
			}
			
		}else{
			window.open("/apex/SelectAssetEstimate?id={!URLENCODE(Maintenance_Contract_Estimate__c.Id)}", "_self");
		}
	</script>
	<body>
	</body>
</apex:page>