var domain = "http://"+window.location.hostname;

function verifEmail(email){
	var place = email.indexOf("@",1);
	var point = email.indexOf(".",place+1);
	if ((place > -1)&&(email.length >2)&&(point > 1)){
		var verif = /^[a-zA-Z0-9_-]+@[a-zA-Z0-9-]{2,}[.][a-zA-Z]{2,3}$/
		if (verif.exec(email) == null){
			return false;
		}else{
			return true;
		}
	}else{
		return(false);
	}
}
function log(msg){
	try{
		console.log(msg);
	}catch(e){
	
	}
}

