function formSubmit(form,p){
var target = form.parentNode.parentNode;
var params = Form.serialize($(form));
new Ajax.Updater(
    target, './ajax_index.php?p='+p,
    {   method:'post',
        asynchronous:true,
        evalScripts:true,
        onComplete: function() {
            updateHeight();
            new Effect.Highlight(target.firstChild, {duration:0.5,startcolor:'#FFBB00'})
        },
        parameters:params});
return false;
}

function loadContent(src, p){
var target = $(src).parentNode;
new Ajax.Updater(
    target,
    './ajax_index.php?p='+p,
    {   method:'get',
        asynchronous:true,
        evalScripts:true,
        onComplete: function() {
            updateHeight();
            new Effect.Highlight(src, {duration:0.5,startcolor:'#FFBB00'});
        }
    }
);
}

function loadCmsContent(src, p){
var target = $(src).parentNode;
new Ajax.Updater(
    src,
    './ajax_index.php?c=1&p='+p,
    {   method:'get',
        asynchronous:true,
        evalScripts:true,
        onComplete: function() {
            target.show();
            updateHeight();

        }
    }
);
}

