<!--

var dtCh= "/";
var minYear=1900;
var maxYear=2100;

function delBox(item){
	  $("floater"+item).hide();
 }

function viewBox(item){
	$("floater"+item).show();
}

function cambia (){
	document.loginForm.TXT_USERNAME_LOG.value="";
}

function cambiapwd (){
	document.loginForm.TXT_PASSWORD_LOG.value="";
}

function loadswf(swf,w,h){
	document.write("<object classid=\"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000\"");
	document.write("codebase=\"http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0\"");
	document.write("width=\""+w+"\" height=\""+h+"\">");
	document.write("<param name='movie' value='"+swf+"' />\n");
	document.write("<param name='quality' value='high' /><param name='wmode' value='transparent' />\n");
	document.write("<embed src=\""+swf+"\" quality=\"high\" wmode=\"transparent\" pluginspage=\"http://www.macromedia.com/go/getflashplayer\" type=\"application/x-shockwave-flash\" width=\""+w+"\" height=\""+h+"\"></embed>");
	document.write("</object>\n");
}

function login() {
	var myURL="/funcLog.asp"
	new Ajax.Updater("logChange",  myURL, {
								asynchronous:true,
								evalScripts:true,
								parameters:Form.serialize('loginForm')
							}
	);
}

function register() {
	var myURL="/funcReg.asp"
	new Ajax.Updater("contattiChangeReg",  myURL, {
								asynchronous:true,
								evalScripts:true,
								parameters:Form.serialize('registratiForm')
							}
	);
}

function modifica() {
	var myURL="/funcMod.asp"
	new Ajax.Updater("contattiChangeReg",  myURL, {
								asynchronous:true,
								evalScripts:true,
								parameters:Form.serialize('registratiForm')
							}
	);
}


function recupera() {
	var myURL="/funcRecupera.asp"
	new Ajax.Updater("recuperaFormChange",  myURL, {
								asynchronous:true,
								evalScripts:true,
								parameters:Form.serialize('recuperaForm')
							}
	);
}

function segnala() {
	var myURL="/funcSegnala.asp"
	new Ajax.Updater("segnalaFormChange",  myURL, {
								asynchronous:true,
								evalScripts:true,
								parameters:Form.serialize('segnalaForm')
							}
	);
}



function addWish(id_113, id_500, t, testoConferma){
	if(confirm(testoConferma)){
		new Ajax.Updater('actionWish_'+id_500, '/inc/Wishlist.asp?id_113='+ id_113 + '&id_500=' + id_500 + '&t=' + t,
						{
							asynchronous:true,
							evalScripts:true,
							encoding:'UTF-8'
						}
					);
	}
}

function removeWish(id_200, id_500, t, testoConferma){
	if(confirm(testoConferma)){
		new Ajax.Updater('actionWish_'+id_500, '/inc/Wishlist.asp?del='+ id_200 + '&id_500=' + id_500 + '&t=' + t,
						{
							asynchronous:true,
							evalScripts:true,
							encoding:'UTF-8'
						}
					);
	}
}

function removeWishElemento(id_200, id_500, t, testoConferma){
	if(confirm(testoConferma)){
		new Ajax.Updater('actionWish_'+id_500, '/inc/Wishlist.asp?del='+ id_200 + '&id_500=' + id_500 + '&t=' + t,
						{
							asynchronous:true,
							evalScripts:true,
							encoding:'UTF-8'
						}
					);
	}
	document.location.reload();
}


function addDownload(id_113, id_500, t, testoConferma){
	if(confirm(testoConferma)){
		new Ajax.Updater('actionDispensa_'+id_500, '/inc/DispensaDownload.asp?id_113='+ id_113 + '&id_500=' + id_500 + '&t=' + t,
						{
							asynchronous:true,
							evalScripts:true,
							encoding:'UTF-8'
						}
					);
	}
}

function removeDownload(id_210, id_500, t, testoConferma){
	if(confirm(testoConferma)){
		new Ajax.Updater('actionDispensa_'+id_500, '/inc/DispensaDownload.asp?del='+ id_210 + '&id_500=' + id_500 + '&t=' + t,
						{
							asynchronous:true,
							evalScripts:true,
							encoding:'UTF-8'
						}
					);
	}
}

function removeDownloadElemento(id_210, id_500, t, testoConferma){
	if(confirm(testoConferma)){
		new Ajax.Updater('actionDispensa_'+id_500, '/inc/DispensaDownload.asp?del='+ id_210 + '&id_500=' + id_500+ '&t=' + t,
						{
							asynchronous:true,
							evalScripts:true,
							encoding:'UTF-8'
						}
					);
	}
	document.location.reload();
}

function confermaurl(Viewtesto,urltogo){
	if (confirm(Viewtesto))
	{
		document.location.href=urltogo
	}
}

function vediCategorie(tipo){
	if (tipo=='ego') {
		$('bottoneEGO').src = '/css/img/naviga_top_egoON.png';
		$('bottoneALTER').src = '/css/img/naviga_top_alterOFF.png';
		$('ElencoAlter').style.display = 'none';
		$('ElencoEgo').style.display = 'block';
		}
	else{
		$('bottoneEGO').src = '/css/img/naviga_top_egoOFF.png';
		$('bottoneALTER').src = '/css/img/naviga_top_alterON.png';
		$('ElencoAlter').style.display = 'block';
		$('ElencoEgo').style.display = 'none';
		}
}

		
//-->
