//Determine whether the iframe has been loaded, RMid is the ID of the iframe
document.getElementById("RMid").onload = function () {
alert("Loading Complete");
}
//Operation AddReceipt2 method in the iframe page in the parent frame
window.frames["RMid"].AddReceipt2();