function bookmark() {
	var ua=navigator.userAgent.toLowerCase();
	var konq=(ua.indexOf('konqueror')!=-1);
	var saf=(ua.indexOf('webkit')!=-1);
	var mac=(ua.indexOf('mac')!=-1);
	var ctrlKey=mac?'Command/Cmd':'CTRL';

	if(window.external && (!document.createTextNode ||(typeof(window.external.AddFavorite)=='unknown'))) {
		window.external.AddFavorite("http://www.shopbyclick.net","Shop By Click.net");
	} else if(konq) {
		alert('Veuillez appuyer sur CTRL + B pour ajouter ce site à vos favoris.');
	} else if(window.opera) {
		void(0);
	} else if(window.home||saf) {
		alert('Veuillez appuyer sur '+ctrlKey+' + D pour ajouter ce site à vos favoris.');
	} else if(!window.print || mac) {
		alert('Veuillez appuyer sur Command/Cmd + D pour ajouter ce site à vos favoris.');    
	} else {
		alert('Votre navigateur internet n\'étant pas reconnu, vous devrez ajouter ce site manuellement à vos favoris.');
	}
}


function chekmdp(){

  if ((document.Wiz.mdp.value != document.Wiz.mdp2.value)   ||  document.Wiz.mdp.value== "" || document.Wiz.mdp2.value==""  )
  {
    alert("les mots de passe sont différents.");
    document.Wiz.mdp.focus();
    return (false);
  }
 

}



					function lib(wref,wtit,wL,wH,url)
{
var url= "outputFile.asp?"+document.Wiz.FILE1.value

params="resizable=1,status=1,scrollbars=1,toolbar=0,width="+wL+",height="+wH;
remote=window.open(url,wref,params);
remote.focus();
if (remote.opener==null) remote.opener=window;
}


                    function up(theforme)
					{
				parent.top.location.href='outputFile.asp';
				return true
					
					}


					function Validator(theForm)
{

  if (theForm.fiche.value == "")
  {
    alert("Choisissez une image");
    theForm.fiche.focus();
    return (false);
  }

else
{

chgHidden(this);
MM_openBrWindow('Patience.asp','Patience',winstyle);

}

  return (true);
}

function chgHidden(){
winstyle="height=200,width=350,status=no,toolbar=no,menubar=no,location=no,left=300,top=200";
}
var winUpl;
function MM_openBrWindow(theURL,winName,features) { //v2.0
  winUpl = window.open('Patience.asp','hello',winstyle);

}


function randomImg(){
if (document.Wiz.image.value=="ok") {
document.getElementById('imagex').src = "";
}
else if (document.Wiz.image.value=="full") {
document.getElementById('imagex').src = "img/full.gif";
}
}

function ChekDel(){
document.Wiz.objdel.value="ok"
document.Wiz.submit()
}