﻿function submitLde() {

    if ($('form').length == 0) {
        try {
            $('body').wrapInner('<form method="post" action="http://ws.realproserver.com/lde/process" />');
        }
        catch (e) {
            console.log(e);
        }
        //$('body').wrapInner('<form></form>');
        //$('form').attr('method', 'post');
    }
    else {
        document.forms[0].action = 'http://ws.realproserver.com/lde/process';
    }

    document.forms[0].submit();
}

function submitLdeWithVerification(verify) {
    var output = false;
    try {
        eval("output = " + verify + ";");
    }
    catch (e) { }

    if (output)
        submitLde();
}
