/*
 * SimpleModal Basic Modal Dialog
 * http://www.ericmmartin.com/projects/simplemodal/
 * http://code.google.com/p/simplemodal/
 *
 * Copyright (c) 2009 Eric Martin - http://ericmmartin.com
 *
 * Licensed under the MIT license:
 *   http://www.opensource.org/licenses/mit-license.php
 *
 * Revision: $Id: basic.js 212 2009-09-03 05:33:44Z emartin24 $
 *
 */

//$(document).ready(function() {

//    if ($('#hdfSuccess').value != "") 
//    {
//        $('#basic-modal-content').modal({onClose: function(dialog){
//            alert("CLEAR");
//            $('#hdfSuccess').value = "";
//            $.modal.close(); //--- Must call this!
//            });
//        });
//    }
//});

function pageLoad() 
{
    if ($('#srREFERAFRIEND_hdfSuccess').get(0).value != "")
    {
        $('#basic-modal-content').modal({ onClose: function(dialog) {
        $('#srREFERAFRIEND_hdfSuccess').get(0).value = "";
            //$('#txtReferrerAddress').get(0).value = "";
        $('#srREFERAFRIEND_txtReferralAddresses').get(0).value = "";
            $.modal.close(); //--- Must call this!
        }
        });
    }
}

