
function load_page(){
	toto=true;
	if(load_page.arguments.length<3 || load_page.arguments[2]=='' || load_page.arguments[2]==false){
		if(save){
			toto=false;
			toto=confirm("Are you sure you don't want to save the datas?");
			if(toto){
				save=false;
			}
		}
	}
	if(toto){
		thediv='big_center';
		if(load_page.arguments.length>1 && load_page.arguments[1]!=''){
			thediv=load_page.arguments[1];
		}
		document.getElementById(thediv).innerHTML='<img src="/img/indicator.gif" width="16" height="16" border="0" />';
		new Ajax.Updater(thediv,'/admin/pages/' + load_page.arguments[0] ,{method:'post', asynchronous:true, evalScripts:true});
		
	}
}

function send_form(form_name, targ, blo){
		datas='';
		save=false;
		for(i=0; i < document.getElementById(form_name).length;i++){
			if(datas!=''){
				datas = datas + '&';
			}
			datas = datas + URLencode(document.getElementById(form_name).elements[i].name) + '=' + URLencode(document.getElementById(form_name).elements[i].value);
		}
		}
function URLencode(sStr) {
	return escape(sStr).
	 replace(/\+/g, '%2B').
		replace(/\"/g,'%22').
		   replace(/\'/g, '%27').
			 replace(/\//g,'%2F');
}