function submit_events_desc(event_id) {
	document.forms.send.event_id.value = event_id;
	document.forms.send.action = "05_02_evenements_des_anciens_details.asp";
	document.forms.send.submit();
}

function change_page(intpage) {
	document.forms.send.intpage.value = intpage;
	document.forms.send.action = "05_02_evenements_des_anciens.asp";//calls itself
	document.forms.send.method = "post";
	document.forms.send.submit();
	}
	
function skip(type)	{
	if(type == "first")
		document.forms.send.intpage.value = 1;
	if(type == "last")
		document.forms.send.intpage.value = 'end';
	if(type == "prev")
		document.forms.send.intpage.value = parseInt(document.forms.send.intpage.value) - 1;
	if(type == "next") {
		document.forms.send.intpage.value = parseInt(document.forms.send.intpage.value) + 1;
	}
	document.forms.send.action = "05_02_evenements_des_anciens.asp";//calls itself
	document.forms.send.method = "post";
	document.forms.send.submit();
	}

function calandar_date_click(search_date) {
	document.forms.send.curdate.value = search_date;
	document.forms.send.search_date.value = search_date;
	document.forms.send.search_month.value = "";
	document.forms.send.search_year.value = "";
	document.forms.send.action = "05_02_evenements_des_anciens.asp"
	document.forms.send.submit();
	}
	
function search_month(searchmonth,searchyear) {
	document.forms.send.curdate.value = searchmonth  + "/01/"  + searchyear;
	document.forms.send.reset_intpage.value = true;
	document.forms.send.search_date.value = "";
	document.forms.send.search_month.value = searchmonth;
	document.forms.send.search_year.value = searchyear;
	document.forms.send.action = "05_02_evenements_des_anciens.asp"
	document.forms.send.submit();	
	}
	
function move_month(move_type)	{
		//in here I might want to convert the date to english... but not here
		document.forms.send.movetype.value = move_type;
		document.forms.send.action = "05_02_evenements_des_anciens.asp";
		document.forms.send.submit();
		}
		
function switch_event_type(event_type_id){
	document.send.intpage.value = "1";
	document.send.action= "<%=page%>";
	document.send.method = "post";
	document.send.submit();
	}