
function submit_form(a,b){
	var x='form_'+b;
	var theform = document.getElementById(x);
	if(a==2){
		theform.setAttribute('action','process/block.php');
		theform.submit();
	} else if(a==3){
		theform.setAttribute('action','process/clear.php');
		if(confirm("Clear this appointment?")){
			theform.submit();
		}
	} else {
		theform.setAttribute('action','book.php');
		theform.submit();
	}
	
	
}
