function confirmation(text) {
	var yes = confirm(text);
	if (yes) return true;
	return false;
}

function template_loader(module, file, foreign, update_element) {
    new Ajax.Request(_path + 'api/'+_iso+'/modules/loader', {
    	method: 'get',
    	parameters: {module: module, file:file, foreign:foreign},
    	onSuccess:function(transport) {
    		if($(update_element)) {
    			$(update_element).update(transport.responseText);
    		}
    	}
    });
    return false;
}

function popup(obj,w,h) {
	var url = (obj.getAttribute) ? obj.getAttribute('href') : obj.href;
	if (!url) return true;

	w = (w) ? w += 20 : 150;
	h = (h) ? h += 25 : 150;
	var args = 'width='+w+',height='+h+',resizable,scrollbars=yes';
	pop = window.open(url,'',args);
	return (pop) ? false : true;
}