function wakeup() {
    $opacity('target', 20, 100, 2200);
};

function  wpsubmit(obj){
    var url;
    var name;
    var value;
    var ajax_ref;

    // fade out block
    // $opacity('custform',100,0,1200);
    url = "/201";
    
    ajax_ref = new $ajax();
    ajax_ref.requestFile = url;

    for (i=0; i<obj.getElementsByTagName("input").length; i++) {
	name  = obj.getElementsByTagName("input")[i].name;
	value = obj.getElementsByTagName("input")[i].value;

	ajax_ref.setVar(name,value);
    }
    ajax_ref.onCompletion = function() {
	obj.innerHTML = ajax_ref.response;
    };

    ajax_ref.runAJAX(); 
};


function loadbit(url) {
divId = 'target';            // ID of Div which will recover the result.
// url = 'page.php';          // 'HTML file to be called' ext *.php, *.inc, ...
loader = '<p>loading</p>';    // 'html for loading' or false
effect = 'appear';            // 'appear' , 'blind' , 'highlight' or false
ecache = false;               //cache for html file true or false
$ajaxload(divId, url, loader, effect, ecache);
}
