/* 
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */


function ajaxRequest(url,worker,args){
    // notice the use of a proxy to circumvent the Same Origin Policy.
    
    new Ajax.Request(url, {
        method: 'get',
        onSuccess: function(transport) {            
            worker(transport,args);
            
        }
    });
}
function ajaxPost(url,worker,hash){

    new Ajax.Request(url, {
        method: 'post',
        parameters: hash,
        onSuccess: function(transport) {
            worker(transport,hash);
        }
    });
}

function Popup(url,stile) {
    if(stile==null){
       stile = "top=10, left=10, width=600, height=350, status=no, menubar=no, toolbar=no scrollbar=no";
    }
    window.open(url, "",stile);
}