
function Envoie(){
   document.formulaire.submit();
}
function jumpMenu(targ,selObj,restore){ //v3.0
  eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");
  if (restore) selObj.selectedIndex=0;
}

function findObj(n, d) { //v4.01
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=findObj(n,d.layers[i].document);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
}

function jumpMenuGo(selName,targ,restore){ //v3.0
  var selObj = findObj(selName); if (selObj) jumpMenu(targ,selObj,restore);
}

function right(e) {
if (navigator.appName == 'Netscape' && 
(e.which == 3 || e.which == 2)) {
alert("Content copyright");
return false;
}
else if (navigator.appName == 'Microsoft Internet Explorer' && 
(event.button == 2 || event.button == 3)) {
alert("Content copyright");
return false;
}
return true;
}
 
document.onmousedown=right;
if (document.layers) window.captureEvents(Event.MOUSEDOWN);
window.onmousedown=right;




function Imprimer(nomFrame, os)
 { 

	if( os==1)
	    {
		javascript:parent.frames[nomFrame].focus();
		window.print();
		}
	else if(os==2)
	{

document.write('<iframe src="http://www.google.fr" style="width: 0; height: 0; visibility: hidden" id="imprim" name="imprim"></iframe>');	
		window.imprim.print();
		}
  if (navigator.appVersion.indexOf("Mac",0)>0) {
     alert("Cette fonction n\'est pas réalisable sur Macintosh.\n\nUtilisez plutôt la combinaison de touches \"Pomme-P\"");
        }
 }
function AjouFavor() {
  if (navigator.appVersion.indexOf("Mac",0)>0) {
      alert("Cette fonction n\'est pas réalisable sur Macintosh.\n\nUtilisez plutôt la combinaison de touches \"Pomme-D\"");
	}
	else {
	if ((navigator.appName.indexOf("Microsoft",0)>=0) && (parseInt(navigator.appVersion)>=4)) {
		window.external.AddFavorite(location.href, document.title);
	} else {
		alert("Cette fonction n'est possible que par Internet Explorer 4 et +\n\nPour vous utilisez la combinaison de touches \"Control-D\"");
	}
 }
}

function AfficheHomePage()
	{
	if (document.all && document.getElementById)
		{
		document.write('<A HREF="#" onClick="HomePage(this);return(false);">A\'KEY en page d\'accueil</A><BR>');
		}
	}
function HomePage(obj)
	{
	obj.style.behavior='url(#default#homepage)';
	obj.setHomePage('http://www.informatique-marseille.com');
	}


function scrollit(seed) {
var m1 = " Bienvenue chez A'KEY ...";
var m2 = " Ouverture de notre boutique en ligne... ";
var m4 = " Plus de 40 000 References ...par exemple les DVD-RW imation de 4,7 GB, par Spindel de 25 DVD (ref 21063) au prix de 25,30  EUR...Soit 1,012 EUR l'unite .....ou... ";
var m5 = " La WebCam QuickCam Express de Logitech (ref 961607-0914) au prix de 16,09  EUR TTC...";
var m3 = "--->     Livraison en 48h pour la grande majorite des produits disponible en stock...";
var msg=m1+m2+m3+m4+m5;
var out = " ";
var c = 1;
if (seed > 100) {
seed--;
cmd="scrollit("+seed+")";
timerTwo=window.setTimeout(cmd,100);
}
else if (seed <= 100 && seed > 0) {
for (c=0 ; c < seed ; c++) {
out+=" ";
}
out+=msg;
seed--;
window.status=out;
cmd="scrollit("+seed+")";
timerTwo=window.setTimeout(cmd,100);
}
else if (seed <= 0) {
if (-seed < msg.length) {
out+=msg.substring(-seed,msg.length);
seed--;
window.status=out;
cmd="scrollit("+seed+")";
timerTwo=window.setTimeout(cmd,100);
}
else {
window.status=" ";
timerTwo=window.setTimeout("scrollit(100)",75);
}
}
}
