//Copyright RealGo, Inc. 2004 All Rights Reserved
function goBack(){
    history.go(-1);
}

function openHouseWindow(ListingID){
    var ustring = 'index.cfm?Action=ShowOpenHouseDetail&ListingID=' + ListingID;
    var openHouseWin = window.open(ustring,"recips","width=500,height=400,resizable=yes",true);
    openHouseWin.focus();
    
}

function openInquiryWindow(MLSNumber, fid){
    var ustring = 'index.cfm?&FID=' + fid;
    ustring = ustring + '&Action=SendInquiry&MLSNumber=' + MLSNumber;
    var inquiryWin = window.open(ustring,"recips","width=470,height=500",true);
    inquiryWin.focus();
}

function openBusOpInquiryWindow(busOpId, fid){
    var ustring = '../Reports/index.cfm?&FID=' + fid;
    ustring = ustring + '&Action=SendInquiry&busOpId=' + busOpId;
    var inquiryWin = window.open(ustring,"recips","width=470,height=500",true);
    inquiryWin.focus();
}

function openRentalInquiryWindow(rentalId, fid){
    var ustring = '../Reports/index.cfm?&FID=' + fid;
    ustring = ustring + '&Action=SendInquiry&rentalId=' + rentalId;
    var inquiryWin = window.open(ustring,"recips","width=470,height=500",true);
    inquiryWin.focus();
}

function openEmailWindow(MLSNumber, listingType){
    if(listingType == "rental") {
        ustring = '../Reports/index.cfm?Action=EmailListing&rentalId=' + MLSNumber;
    } else if(listingType == "busOp") {
        ustring = '../Reports/index.cfm?Action=EmailListing&busOpId=' + MLSNumber;
    } else {
        ustring = 'index.cfm?Action=EmailListing&MLSNumber=' + MLSNumber;
    }
    var emailWin = window.open(ustring,"recips","width=470,height=500",true);
    emailWin.focus();
}   

function printThis(){
    window.print();
}
