function isDate2(dateStr) {
	var datePat = /^(\d{1,2})(\/|-)(\d{1,2})(\/|-)(\d{4})$/;
	var matchArray = dateStr.match(datePat); // is the format ok?

	if (dateStr.length != 10) {
		return false;
	}

	if (matchArray == null) {
		return false;
	}

	return true; // date is valid
}

function checkMail(email) {
   	//var filter = /^([a-zA-Z0-9_\.\-])+\@(([a-zA-Z0-9\-])+\.)+([a-zA-Z0-9]{2,4})+$/;
   	//if (filter.test(email)) {
   		return true;
   	//}
    //return false;
}

function showhide(){
	alert('On a social bookmarking system or network, users store lists of Internet resources that they find useful. These lists can be accessible to the public by users of a specific network or website. Other users with similar interests can view the links by topic, category, tags, or even randomly. Other than web page bookmarks, services specialized to a specific subject or format - feeds, books, videos, shopping items, map locations, wineries, etc. - can be found.')
}

function updateLayout(){
	/*var br=navigator.appName;
	
	if(br.indexOf("Microsoft")>=0){
		document.getElementById("sponsors").style.height="93px";
	}
	else{
		document.getElementById("sponsors").style.height="93px";
	}*/
}