//* javascript celtic-silver.com / shopping cart

// add lang as parameter for bilingual site
//function checkSelectValue(selectboxid, lang) {
function checkSelectValue(selectboxid)
{
	var message = "Choisir une option avant de remplir votre panier...";
	var g = document.getElementById(selectboxid);

	if (g && g.nodeName.toLowerCase() == 'select' && g.value == 0)
	{
		alert(message);
		return false;
	}

	return true;
}


 // fctns display photo large
 function montrealbum(aintalbum, tx) {
		if(navigator.userAgent.indexOf("MSIE 6.0") != -1){
			afficheimage(aintalbum);

		}else{
			document.getElementById("cadrephoto").innerHTML = "<a href=\"javascript:cachealbum()\"><img src=\"" + aintalbum + "\" border=\"0\" /></a>";
			document.getElementById("legendephoto").innerHTML = tx;
			document.getElementById("zoomphoto").style.display='block';
		}
	}
	function cachealbum() {
		document.getElementById("zoomphoto").style.display='none';
	}
	function afficheimage(photo){
		imagePOP     = new Image();
		imagePOP.src = photo;
		nbf          = 0;
		affiche();
	}
	function affiche(){
		if (imagePOP.width != 0) {setTimeout("pop()",0);return;}
		nbf++
		if (nbf<200) {setTimeout("affiche()",20);return;}
	}
	function pop(){
		largeur = imagePOP.width;
		hauteur = imagePOP.height;
		ttop=(screen.height-hauteur)/2;
		tleft=(screen.width-largeur)/2;
		POPUP = window.open("","affiche","top="+ttop+",left="+tleft+",width="+largeur+",height="+hauteur+",menubar=no,scrollbars=auto,statusbar=no");
		POPUP.document.write("<html><title>Bioux Avatar / Celtic-Silver</title></html><body MARGINWIDTH=0 MARGINHEIGHT=0><a href='javascript:window.close()'><img name='img' style='position:absolute;top:0;left:0;' src="+imagePOP.src+" border=0 alt='Cliquez pour fermer la fenêtre'></a></body>");
	}
	// fin fctns display photo large
