// Funciones Generales
function fEnConstruccion()
{	alert('En Construccion');
}

function fPreferity()
{	window.external.AddFavorite('http://www.SelectraSistemi.it','Selectra Sistemi');
}

function fOpenWindow(sTxDirUrl,sTarget)
{	window.open(sTxDirUrl,sTarget);
}

function fOpenIframe(sNomeFrame,sTxDirUrl)
{	//document.frames[sNomeFrame].location.replace(sTxDirUrl);
	setTimeout("document.frames['" + sNomeFrame + "'].location.replace('" + sTxDirUrl + "');",500);
}

function fOpenShowModal(sTxDirUrl,nWidth,nHeight)
{	window.showModalDialog(sTxDirUrl,'','dialogWidth:' + nWidth + 'px;dialogHeight:'+ nHeight + 'px');
}

function fCancel()
{	window.close();
}

function fBack()
{	history.go(-1);
}

function fOpenHomePage()
{	fOpenWindow('index.asp','_parent');
}

function fInCostruzione()
{	alert('In Costruzione!!!');
}

function fControllaAccesso(user,pswd)
{	fOpenWindow('logon.asp?sUser='+user+'&sPswd='+pswd,'_self');
}

function fControllaAccessofuori(user,pswd)
{	fOpenIframe('frmContent','logonfuori.asp?sUser='+user+'&sPswd='+pswd);
}

// Funciones para el Menu Principal

function fOpenChiSiamo()
{	fOpenIframe('frmContent','chisiamo.asp');
}

function fOpenDoveSiamo()
{	fOpenIframe('frmContent','dovesiamo.asp');
}

function fOpenMarchi()
{	fOpenIframe('frmContent','marchi.asp');
}

function fOpenOfferte()
{	fOpenIframe('frmContent','offerta.asp');
}

function fOpenCarrello(nCoProd)
{	fOpenIframe('frmContent','carrello.asp?nCoProd='+nCoProd);
}

function fOpenHomeSite()
{	fOpenHomePage();
}

function fOpenProdotti()
{	fOpenIframe('frmContent','prodotti.asp');
}

function fOpenListino()
{	fOpenIframe('frmContent','scaricalistino.asp');
}

function fOpenLogin()
{	fOpenIframe('frmContent','login.asp');
}

function fOpenContattaci()
{	fOpenIframe('frmContent','contatti.asp');
}

function fOpenAssistenza()
{	fOpenIframe('frmContent','assistenza.asp');
}

function fOpenVideoSorveglianza()
{	fOpenIframe('frmContent','videosorveglianza.asp');
}

function fOpenCondizione()
{	fOpenIframe('frmContent','condizione.asp');
}

function fOpenGuidaAdq()
{	fOpenIframe('frmContent','guidaadquisto.asp');
}

function fRegistrati()
{	fOpenWindow('registrati.asp','_self');
}

function fOpenSubFamiglia(nCoFam)
{	fOpenIframe('frmSubFam','subfamiglia.asp?nCoFam='+nCoFam);
}

function fOpenDetCarrello(nCoTemp)
{	fOpenShowModal('detcarrello.asp?nCoTemp='+nCoTemp,450,200);
}

function fOpenAssistenzaSite()
{	fOpenIframe('frmAssistenza','assistenzasite.asp');
}

function fOpenAssistenzaCenter()
{	fOpenIframe('frmAssistenza','assistenzacenter.asp');
}

function fOpenAssistenzaRemoto()
{	fOpenIframe('frmAssistenza','assistenzaremoto.asp');
}

function fOpenAssistenzaPreven()
{	fOpenIframe('frmAssistenza','assistenzapreven.asp');
}

function fOpenRichiestaRMA()
{	fOpenIframe('frmAssistenza','richiestarma.asp');
}

