performAction = function(actionId)
{
	document.actionForm.actionRequest.value = actionId;
	//alert(actionId);
	document.actionForm.submit();
}

performFormAction = function(sender,actionId)
{
	
//	alert("ddd");
	//alert(sender);
	//actionId=actionId.substring(0,actionId.indexof('?'));
	//alert(actionId);
	sender.actionRequest.value = actionId;
	
	sender.submit();
}

choisirSaison= function(actionId)
{
	if(document.saisonForm.saison.value =='') return;
	
	document.actionForm.saisonChoisie.value = document.saisonForm.saison.value;
	document.actionForm.actionRequest.value = actionId;
	document.actionForm.submit();
}

performFormActionByFormId = function(formId,actionId,numlicence)
{
	
//	alert("ddd");
	//alert(actionId);
	//actionId=actionId.substring(0,actionId.indexof('?'));
	//alert(actionId);
	document.getElementById(formId).actionRequest.value = actionId;
	document.getElementById(formId).numlicence.value = numlicence;
	//sender.actionRequest.value = actionId;
	
	document.getElementById(formId).submit();
}


performFormActionByFormIdFiltre = function(formId,actionId,numlicence,filtre)
{
	
//	alert("ddd");
	//alert(actionId);
	//actionId=actionId.substring(0,actionId.indexof('?'));
	//alert(actionId);
	document.getElementById(formId).actionRequest.value = actionId;
	document.getElementById(formId).numlicence.value = numlicence;
	document.getElementById(formId).filtre.value = filtre;
	//sender.actionRequest.value = actionId;
	
	document.getElementById(formId).submit();
}

redirectAction = function(pageUrl)
{
	window.open(pageUrl,'self');
}

applyCSSStyle = function(divId, cssClass)
{
	document.getElementById(divId).className = cssClass;
}

pageIndisponible = function(actionId)
{
	alert('Page en cours de construction');
}
