var STATUS_SUBMIT = 'S_SUB';

function go_to_form(form,hf_action){
    if(hf_action != null && hf_action.value == STATUS_SUBMIT){
        document.location.hash = form.id;
    }
}

function go_to_hash(hash_name){
    document.location.hash = hash_name;
}

function submit_form(form,hf_action,check_privacy,err_message){
    if(check_privacy != null && check_privacy.checked){
        hf_action.value = STATUS_SUBMIT;
        form.submit();
    }
    else{
        alert(err_message)
    }
}


