<!--//

function submitForm(Form, Action)
{
	eval("document." + Form + ".Action.value=Action;");
	eval("document." + Form + ".submit();");
}

function submitFormXLingua(Form, Action,Page)
{
	prefissoNazionalita="/IT/";
	if (eval("document." + Form + ".idLingua.options[document." + Form + ".idLingua.selectedIndex].value")=='1') { prefissoNazionalita="/IT/";}
	if (eval("document." + Form + ".idLingua.options[document." + Form + ".idLingua.selectedIndex].value")=='2') { prefissoNazionalita="/UK/";}
	if (eval("document." + Form + ".idLingua.options[document." + Form + ".idLingua.selectedIndex].value")=='3') { prefissoNazionalita="/ES/";}
	if (eval("document." + Form + ".idLingua.options[document." + Form + ".idLingua.selectedIndex].value")=='4') { prefissoNazionalita="/FR/";}
	if (eval("document." + Form + ".idLingua.options[document." + Form + ".idLingua.selectedIndex].value")=='6') { prefissoNazionalita="/DE/";}
	
	eval("document." + Form + ".Action.value=Action;");
	eval("document." + Form + ".action='"+prefissoNazionalita+Page+"';");
	eval("document." + Form + ".submit();");
}

function submitFormPage(Form,Action,Page)
{
	eval("document." + Form + ".action=Page;");
	eval("document." + Form + ".Action.value=Action;");
	eval("document." + Form + ".submit();");
}

function submitCalciatore(Action, Page, Codice)
{
	document.ricerca.TxtPage.value=Page;
	document.ricerca.TxtCodPersonaF.value=Codice;
	submitForm('ricerca',Action);
}

function submitSquadra(Action, Page, Codice)
{
	document.ricerca.TxtPage.value=Page;
	document.ricerca.TxtCodSquadraF.value=Codice;
	//document.ricerca.submit();
	submitForm('ricerca',Action);
}

function submitFigurina(Action, Page, Codice)
{
	document.cercaFigurine.txtPage.value=Page;
	document.cercaFigurine.txtCodice.value=Codice;
	submitForm('cercaFigurine',Action);
}


function openSite(Url)
{
	window.open(Url,'NewWindow')
}


function submitCarrello(Form,Action,Codice)
{
	eval("document." + Form + ".IdArticolo.value=document." + Form + ".IdArticolo_" + Codice + ".value;");
	eval("document." + Form + ".IdRigaOrdine.value=document." + Form + ".IdRiga_" + Codice + ".value;");
	eval("document." + Form + ".Quantita.value=document." + Form + ".Quantita_" + Codice + ".selectedIndex + 1;");
	eval("document." + Form + ".Prezzo.value=document." + Form + ".Prezzo_" + Codice + ".value;");
        /*!alert(document.ListaArticoli.Quantita_1(document.ListaArticoli.Quantita_1.selectedIndex).value);*/
	/*eval("!alert(document.ListaArticoli.Quantita_1(2).value);")*/
	submitFormPage(Form, Action,'carrello.asp');
}



function popUpNegozioPanini(IDColl,Home) {
popHome = window.open('http://www.panini.it/popfigure.asp?ID='+IDColl+'&Home='+Home,'popper','resizable=no,toolbar=no,status=no,width=500,height=300');
}

function popUpNetSphere() {
//popHome = window.open('./netsphere.asp','poppers','resizable=no,toolbar=no,status=no,width=330,height=300');
window.open('netsphere.asp','popper','resizable=no,toolbar=no,status=no,width=330,height=300');
}

function popUpGold() {
popHome = window.open('gold.htm','popper','resizable=no,toolbar=no,status=no,width=400,height=200');
}

function popRisposte1() {
popHome = window.open('100202risposte.html','popper','resizable=no,toolbar=no,status=no,width=450,height=450');
}

function popRisposte2() {
popHome = window.open('170202risposte.html','popper','resizable=no,toolbar=no,status=no,width=450,height=450');
}

function popRisposte3() {
popHome = window.open('240202risposte.html','popper','resizable=no,toolbar=no,status=no,width=450,height=450');
}

function popRisposte4() {
popHome = window.open('030302risposte.html','popper','resizable=no,toolbar=no,status=no,width=450,height=450');
}

function popRisposte5() {
popHome = window.open('100302risposte.html','popper','resizable=no,toolbar=no,status=no,width=450,height=450');
}


function popRisposte6() {
popHome = window.open('170302risposte.html','popper','resizable=no,toolbar=no,status=no,width=450,height=450');
}


function popRisposte7() {
popHome = window.open('240302risposte.html','popper','resizable=no,toolbar=no,status=no,width=450,height=450');
}

function popRisposte8() {
popHome = window.open('010402risposte.html','popper','resizable=no,toolbar=no,status=no,width=450,height=450');
}

function popRisposte9() {
popHome = window.open('070402risposte.html','popper','resizable=no,toolbar=no,status=no,width=450,height=450');
}

function popRisposte10() {
popHome = window.open('140402risposte.html','popper','resizable=no,toolbar=no,status=no,width=450,height=450');
}

function popRisposte11() {
popHome = window.open('210402risposte.html','popper','resizable=no,toolbar=no,status=no,width=450,height=450');
}

function popRisposte12() {
popHome = window.open('280402risposte.html','popper','resizable=no,toolbar=no,status=no,width=450,height=450');
}

function popRisposte13() {
popHome = window.open('060502risposte.html','popper','resizable=no,toolbar=no,status=no,width=450,height=450');
}

function popRisposte14() {
popHome = window.open('130502risposte.html','popper','resizable=no,toolbar=no,status=no,width=450,height=450');
}

function popRisposte15() {
popHome = window.open('200502risposte.html','popper','resizable=no,toolbar=no,status=no,width=450,height=450');
}

function popRisposte16() {
popHome = window.open('270502risposte.html','popper','resizable=no,toolbar=no,status=no,width=450,height=450');
}

function popRisposte17() {
popHome = window.open('020602risposte.html','popper','resizable=no,toolbar=no,status=no,width=450,height=450');
}

function popRisposte18() {
popHome = window.open('100602risposte.html','popper','resizable=no,toolbar=no,status=no,width=450,height=450');
}

function popRisposte19() {
popHome = window.open('170602risposte.html','popper','resizable=no,toolbar=no,status=no,width=450,height=450');
}

function popDisclaimer(pagina) {
popHome = window.open(pagina,'popper','resizable=no,toolbar=no,status=no,width=500,height=450');
}

function popUpHars() {
  window.open('http://www.castgroup.it','hars','');
  window.close('popper');
}

function noDownload(evt){
  return false;
}


function changeLabel(Form, label1, label2)
{
	eval("document." + Form + ".label1.value='" + label1 + "';");
	eval("document." + Form + ".label2.value='" + label2 + "';");
}


function scegliStyleSheet()
{
var HM_BrowserString="";

if ((navigator.appName.indexOf('Netscape') != -1) && (navigator.userAgent.indexOf('/4') != -1))
   {
   HM_BrowserString="NS";
   }
if ((navigator.userAgent.indexOf('MSIE') != -1) && (navigator.userAgent.indexOf('/4') != -1))
   {
   HM_BrowserString = "MSIE";
   }

document.write("<link rel='stylesheet' href='Styles/stili"+ HM_BrowserString +".css' type='text/css'>");
}


function submitField(Form, Name, Value)
{
	eval("document." + Form + "." + Name + ".value=Value;");
	eval("document." + Form + ".submit();");
}

function submitPageField(Page, Form, Name, Value)
{
	eval("document." + Form + ".action='" + Page + "';");
	eval("document." + Form + "." + Name + ".value=Value;");
	eval("document." + Form + ".submit();");
}

function submitOrdine()
{
	submitFormPage('Carrello', '', 'shopla.asp');

}

function submitOrdineSella()
{
	submitFormPage('Carrello', '', 'sellapay.asp');

}


function noDownload(evt){
  return false;
}


function lockImage(img){
  eval("document."+img+".oncontextmenu=noDownload"); /*Funziona con MSIE*/
  eval("document."+img+".onmousedown=noDownload");   /*Funziona con Netscape*/
}

function OpenPopUp(href, width, height)  {
	window.open(href,"NewWindow","toolbar=no,directories=no,menubar=no,scrollbars=yes,width="+ width +",height=" + height + "'");
}

/*
if(document.layers) window.captureEvents(Event.MOUSEDOWN);

function no_click(e){
var msg = ":-P  No right click for you!";
if (navigator.appName == 'Netscape' && ( e.which == 2 || e.which == 3))
 {
  alert(msg);return false;
 }
 if (navigator.appName == 'Microsoft Internet Explorer' && (event.button == 2 || event.button == 3))
 {
  alert(msg);return false;
 }
}
window.onmousedown=no_click;
document.onmousedown=no_click;
*/

//-->

