// function do_submit(formname, posturl, rewriteid) 
// {    
// 
//     $.ajax({
//         url: geturl,
//         type: 'POST',
//         success: function(html){
//             $('#' + insertid).prepend('<div class="wrapper">' + html + '</div>');
//         }
//     });
//  ajax.formdata = document.getElementById(formname).serialize();
// 
// }

function do_load_and_insert(geturl, insertid) 
{
    $.ajax({
        url: geturl,
        type: 'POST',
        success: function(html){
            $('#' + insertid).prepend('<div class="wrapper">' + html + '</div>');
        }
    });
}


function do_load(geturl, rewriteid) 
{
    errors = 0;
    
    if(rewriteid)
    {
        $("#" + rewriteid).load(geturl);
		//display_loading(ajax.result_div);
	}
	else
        $.ajax({url: geturl});
}
