function popupcarte(linkCarte) {

	newwp = window.open(linkCarte,"popupcarte","width=800,height=600,scrollbars=no");
  	setTimeout('newwp.focus();',250);
}

function postParam(name,sel)
{
	current_url = document.location.href;
	if(current_url.indexOf("(page)")> 0)
	{
		current_url = current_url.replace(/(\d*$)/,"");
		current_url = current_url.replace("/(page)/","");

	}
	if(current_url.indexOf("(" + name + ")") > 0)
	{
		current_url = current_url.replace(/(\d*$)/,"");
		current_url = current_url.replace("/(commune)/","");
	}
	document.location.href = current_url + "/(" + name + ")/"+ sel.options[sel.selectedIndex].value;
}


function verifDemandeDoc ( theForm ) {

	theForm = document.getElementById(theForm);



	if (
			theForm.ContentObjectAttribute_data_boolean_9229.checked == false &&
			theForm.ContentObjectAttribute_data_boolean_9231.checked == false &&
			theForm.ContentObjectAttribute_data_boolean_9232.checked == false &&
			theForm.ContentObjectAttribute_data_boolean_9233.checked == false &&
			theForm.ContentObjectAttribute_data_boolean_9234.checked == false &&
			theForm.ContentObjectAttribute_data_boolean_9235.checked == false
		) {

		alert('Veuillez à sélectionner au moins une documentation avant de valider votre demande');
	}
	else {
		theForm.submit();
	}
}