function notifyProductAdded(){
	$.jnotifica('Produit ajouté au panier',{
		  margin :350,
		  width  : 400,
		  effect : 'fade',
		  timeout : 1500,
		  padding: 25,
		  close :false,
		  msgCss : {
		    textAlign : 'center',
		    fontSize  : '138.5%',
		    fontWeight: 'bold'
		  },
			opacity : 0.9,
			 background: 'gray'
	});
	//alert("ok !");
} 
function notifyProductModified(){
	$.jnotifica('Panier mis à jour',{
		  margin :350,
		  width  : 400,
		  effect : 'fade',
		  timeout : 500,
		  padding: 25,
		  close :false,
		  msgCss : {
		    textAlign : 'center',
		    fontSize  : '138.5%',
		    fontWeight: 'bold'
		  },
			opacity : 0.9,
			 background: 'gray'
	});
	//alert("ok !");
} 

$(document).ready(function()
		{
		    $(".defaultText").focus(function(srcc)
		    {
		        if ($(this).val() == $(this)[0].title)
		        {
		            $(this).removeClass("defaultTextActive");
		            $(this).val("");
		        }
		    });
		    
		    $(".defaultText").blur(function()
		    {
		        if ($(this).val() == "")
		        {
		            $(this).addClass("defaultTextActive");
		            $(this).val($(this)[0].title);
		        }
		    });
		    
		    $(".defaultText").blur();        
});

$(document).ready(function()
		{
		    $(".defaultTextPassword").focus(function(srcc)
		    {
		        if ($(this).val() == $(this)[0].title)
		        {
		        	//$(this)[0].type="password";
		        
		        	
		            $(this).removeClass("defaultTextActive");
		            $(this).val("");
		        }
		    });
		    
		    $(".defaultTextPassword").blur(function()
		    {
		        if ($(this).val() == "")
		        {
		        	
		        		//$(this)[0].type="password";
		        
		        	
		            $(this).addClass("defaultTextActive");
		            $(this).val($(this)[0].title);
		        }
		    });
		    
		    $(".defaultTextPassword").blur();        
});

function noaccent(chaine) {
	  temp = chaine.replace(/[àâä]/gi,"a");
	  temp = temp.replace(/[éèêë]/gi,"e");
	  temp = temp.replace(/[îï]/gi,"i");
	  temp = temp.replace(/[ôö]/gi,"o");
	  temp = temp.replace(/[ùûü]/gi,"u");
	  return temp
	}

function cleanString(stringelt){
	stringelt=noaccent(stringelt);
	allowed=" -abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789#&éàèùç"
	res="";
	for (var i=0;i<stringelt.length;i++){
		if (allowed.indexOf(stringelt.charAt(i))>=0)
			res+=stringelt.charAt(i);
	}
	return  res;
}
