" + document.getElementById("objT"+frase).value + "
"; } function selectNazioneC1B(val) { var nazBase = "1"; if (document.getElementById("indirizzoC1B") != undefined){ document.getElementById("indirizzoC1B").style.display = "block"; } if (document.getElementById("provinciaC1") != undefined){ if (val == nazBase) { document.getElementById("provinciaC1").style.display = "block"; } else { document.getElementById("provinciaC1").style.display = "none"; } } //getPointC1(); } function getPointC1() { var nomepag = "getPoint"; var nomediv = "pointC1B"; var str = "idnazione=" + document.getElementById("NazioneC1").value; if (navigator.appName == "Microsoft Internet Explorer" ){ var xmlhttp=new ActiveXObject("Microsoft.XMLHTTP"); xmlhttp.open( "GET", "services/"+nomepag+".asp?sid=" + Math.random()); } else { var xmlhttp=new XMLHttpRequest(); xmlhttp.open( "POST", "services/"+nomepag+".asp"); } xmlhttp.setRequestHeader("Content-Type","application/x-www-form-urlencoded"); xmlhttp.onreadystatechange=function() { if(xmlhttp.readyState==4) { document.getElementById(nomediv).innerHTML=xmlhttp.responseText; } } xmlhttp.send(str); } function sendAddressC1B(){ var chkAll = ""; if ((document.getElementById("Citta") != undefined)&&(chkAll == "")) { if (document.getElementById("Citta").value == "") { chkAll = "NO"; alert("Immettere la città di spedizione"); document.getElementById("Citta").focus(); } } if ((document.getElementById("Telefono") != undefined)&&(chkAll == "")) { if (document.getElementById("Telefono").value == "") { chkAll = "NO"; alert("Inserire un numero di telefono nell'Indirizzo di Spedizione"); document.getElementById("Telefono").focus(); } } if ((document.getElementById("SpedireA") != undefined)&&(chkAll == "")) { if (document.getElementById("SpedireA").value == "") { chkAll = "NO"; alert("Immettere il destinatario nell'indirizzo di spedizione"); document.getElementById("SpedireA").focus(); } } if ((document.getElementById("Indirizzo") != undefined)&&(chkAll == "")) { if (document.getElementById("Indirizzo").value == "") { chkAll = "NO"; alert("Immettere l`indirizzo di spedizione"); document.getElementById("Indirizzo").focus(); } } if ((document.getElementById("CAP") != undefined)&&(chkAll == "")) { if (document.getElementById("CAP").value == "") { chkAll = "NO"; alert("Immettere il CAP di spedizione"); document.getElementById("CAP").focus(); } } if ((document.getElementById("AttenzioneDi") != undefined)&&(chkAll == "")) { if (document.getElementById("AttenzioneDi").value == "") { chkAll = "NO"; alert("Inserire un referente per l'ordine"); document.getElementById("AttenzioneDi").focus(); } } if (chkAll == ""){ document.getElementById("frmIndirizzo").submit(); } } function VisualizzaInfoC2(frase) { var inf = document.getElementById("objT"+frase).value; if (inf != "") { document.getElementById("infoC2").innerHTML = "Informazioni Ulteriori" + inf + "
"; } else { document.getElementById("infoC2").innerHTML = ""; } } function VisualizzaInfoC4(frase,opt) { var inf = document.getElementById("objT"+frase).value; if ((inf != "") && (opt == 1)) { document.getElementById("infoC4").style.display = "inline"; if (document.getElementById("i-"+frase).offsetTop!=0) { document.getElementById("infoC4").style.top = ""+document.getElementById("i-"+frase).offsetTop+"px"; } else { //Explorer 6-7 rimane fisso document.getElementById("infoC4").style.top = document.all["i-"+frase].style.top; } document.getElementById("infoC4").innerHTML = "Informazioni Ulteriori" + inf + "
"; } else { document.getElementById("infoC4").innerHTML = ""; document.getElementById("infoC4").style.display = "none"; } } function MsgImportoMinTDC5(){ alert("L`importo minimo per un ordine come interno TD Group è di euro.\nQuesto per ricoprire le spese di trasporto addebitate alla TD Group.\n"); } function MsgAttivoC5(){ alert("Siamo spiacenti ma il suo account è stato disattivato."); } function mkBox_gal(cp, isgal){ if (document.getElementById("GalleryBox")){ document.getElementById("GalleryBox").style.display = "block"; document.getElementById("GalleryBox").innerHTML = ""; if (navigator.appName == "Microsoft Internet Explorer" ){ var xmlhttp=new ActiveXObject("Microsoft.XMLHTTP"); xmlhttp.open( "GET", "services/gallery.asp?sid=" + Math.random()); } else { var xmlhttp=new XMLHttpRequest(); xmlhttp.open( "POST", "services/gallery.asp"); } xmlhttp.setRequestHeader("Content-Type","application/x-www-form-urlencoded"); xmlhttp.onreadystatechange=function() { if(xmlhttp.readyState==4) { document.getElementById("GalleryBox").innerHTML = xmlhttp.responseText; } } xmlhttp.send("CodProdotto=" + escape(cp) + "&gal=" + escape(isgal)); } } function cng_gal(zoom){ if (document.getElementById("gal_main")){ document.getElementById("gal_main").innerHTML = "