/*
function SubmitTo( param, name ) {
    var thisForm;
    if ( typeof(name) == typeof(undefined) ) {
        $('form')[0].attr('action',param);
        $('form')[0].submit();
    } else {
        $('#' + name).attr('action',param);
        $('#' + name).submit()
    }
    return false;
}
*/

function SubmitTo( param, name ) {

var thisForm;
    if ( typeof(name) == typeof(undefined) ) {
        thisForm = document.forms[0];
    } else {
        thisForm = document.forms[name];
    }
    
    thisForm.action = param;

    thisForm.submit();

    return false;
}

