self.name='MerchantWindow';

function caractere_interdit(evt) {
	var keyCode = evt.which ? evt.which : evt.keyCode;
	if (keyCode==9) return true;
	var interdit = '@äãçìîïòôöõùûüñ&*?!:._;,\t#~"^¨%$£?²¤§%*()[]{}<>|\\/`\'';
	if (interdit.indexOf(String.fromCharCode(keyCode)) >= 0) {
		return false;
	}
}

function check() {
	var msg = "";
		
	if (document.formRecherche.recherche.value=="    " || document.formRecherche.recherche.value=="     " || document.formRecherche.recherche.value=="      " || document.formRecherche.recherche.value=="       " || document.formRecherche.recherche.value=="        ") {msg = "Veuillez taper au minimum 3 caractères.";}	
	if (document.formRecherche.recherche.value.length < 3) {msg = "Veuillez taper au minimum 3 caractères.";}	
	
	if (msg == "") {
		document.formRecherche.submit();
		return(true);
	} 
	else {
		alert(msg);
		return(false);
	}
}

function PopupImage(img) 
{ 
	titre="Salaire"; 
	w=open("",'image','width=400,height=400,toolbar=no,scrollbars=no,resizable=no'); 
	w.document.write("<html><head><title>"+titre+"</title></head>"); 
	w.document.write("<script language=javascript>function checksize() { if (document.images[0].complete) { window.resizeTo(document.images[0].width+10,document.images[0].height+50); window.focus();} else { setTimeout('checksize()',250) } }</"+"script>"); 
	w.document.write("<body onload='checksize()' onblur='window.close()' onclick='window.close()' leftMargin=0 topMargin=0 marginwidth=0 marginheight=0>");
	w.document.write("<table width='100%' border='0' cellspacing='0' cellpadding='0' height='100%'><tr>");
	w.document.write("<td valign='middle' align='center'><img src='"+img+"' border=0 alt=''>"); 
	w.document.write("</td></tr></table>");
	w.document.write("</body></html>"); 
	w.document.close(); 
} 

function ScanCookie(variable)
	{
	cook = document.cookie;
	variable += "=";
	place = cook.indexOf(variable,0);
	if (place <= -1)
		return("0");
	else
		{
		end = cook.indexOf(";",place)
		if (end <= -1)
			return(unescape(cook.substring(place+variable.length,cook.length)));
		else
			return(unescape(cook.substring(place+variable.length,end)));
		}
	}

function CreationCookie(nom,valeur,permanent)
{
	if(permanent)
	{
		dateExp = new Date(2020,11,11);
		dateExp = dateExp.toGMTString();
		ifpermanent = '; expires=' + dateExp + ';';
	}
	else
	{
		ifpermanent = '';
	}
	document.cookie = nom + '=' + escape(valeur) + ifpermanent;
}
	
function pNewsletter()
{

}



