function openWindow(url,target,w,h){
	var new_win = window.open(url,target,"width="+w+",height="+h+",left=300,resizable=no,scrollbars=yes,menubar=no,toolbar=no,directories=no,location=no,status=yes");
	if(window.focus)new_win.focus();
}
function openBrWindow(theURL,winName,features)
	{
  window.open(theURL,winName,features);
	}
function openWindowWithoutScroll(url,target,w,h){
	var new_win = window.open(url,target,"width="+w+",height="+h+",left=300,resizable=no,scrollbars=no,menubar=no,toolbar=no,directories=no,location=no,status=no");
	if(window.focus)new_win.focus();
}
function verifyQueryFr(){
	var strQuery = document.getElementById('searcha').value;
	var reNonSpace = /\S/g;
	//alert("The search engine is being upgraded. This function is temporarily unavailable.");
	//return false;
	if ((reNonSpace.test(strQuery)) && (strQuery!='Recherche') ) {
		return true;
	} else {
	alert("Veuillez entrer un mot clef");
	document.getElementById('searcha').focus();
	return false;
	}
}
function verifyQueryUk(){
	var strQuery = document.getElementById('searcha').value;
	var reNonSpace = /\S/g;
	//alert("The search engine is being upgraded. This function is temporarily unavailable.");
	//return false;
	if ((reNonSpace.test(strQuery)) && (strQuery!='Search') ) {
		return true;
	} else {
	alert("Please enter a keyword");
	document.getElementById('searcha').focus();
	return false;
	}
}

function ValidAlmanach(){
	var voForm  = window.document.forms['almanach'];
	var viDay = voForm.elements['day'].value;
	var viMonth = voForm.elements['month'].value;
	if((viDay == 30) && (viMonth == 2)){
		alert('Cette date n\'existe pas.');
		return false;
	}else if(viDay == 31)
			if((viMonth == 2)||(viMonth == 4)||(viMonth == 6)||(viMonth == 9)||(viMonth == 11)){
				alert('Cette date n\'existe pas.');
				return false;
			}
	return true;
}
