// JavaScript Document

function conferma(idsocio,datat,turno,ambu,vol)
{
	
	window.open("conferma.asp?idsocio="+idsocio+"&datat="+datat+"&turno="+turno+"&ambu="+ambu+"&vol="+vol,"", "toolbar=no,location=no  directories=no,status=no,menubar=no,left="+((screen.width-200)/2)+",top="+((screen.height-300)/2)+",resizable=no,width=210,height=300",false) ;
}


function modifica(idsocio,datat,turno,ambu,vol)
{
	
	window.open("modifica.asp?idsocio="+idsocio+"&datat="+datat+"&turno="+turno+"&ambu="+ambu+"&vol="+vol,"", "toolbar=no,location=no  directories=no,status=no,menubar=no,left="+((screen.width-300)/2)+",top="+((screen.height-400)/2)+",resizable=no,width=350,height=400",false) ;
}
function modifica_ass(idsocio,idass,pos)
{
	
	window.open("modifica_a.asp?idsocio="+idsocio+"&idass="+idass+"&pos="+pos,"", "toolbar=no,location=no  directories=no,status=no,menubar=no,left="+((screen.width-300)/2)+",top="+((screen.height-400)/2)+",resizable=no,width=350,height=400",false) ;
}


function apri(cosa)
{
	
	window.open(cosa,"", "toolbar=no,location=no  directories=no,status=no,menubar=no,left="+((screen.width-200)/2)+",top="+((screen.height-300)/2)+",resizable=no,width=350,height=300",false) ;
}

function apri2(cosa)
{
	
	window.open(cosa,"", "toolbar=no,location=no  directories=no,status=no,menubar=no,left="+((screen.width-200)/2)+",top="+((screen.height-300)/2)+",resizable=no,width=350,height=450",false) ;
}

function apri3(cosa)
{
	
	window.open(cosa,"", "toolbar=no,location=no  directories=no,status=no,menubar=no,left="+((screen.width-200)/2)+",top="+((screen.height-400)/2)+",resizable=no,width=350,height=500",false) ;
}

function apri4(cosa)
{
	
	window.open(cosa,"", "toolbar=no,location=no  directories=no,status=no,menubar=no,left="+((screen.width-200)/2)+",top="+((screen.height-300)/2)+",resizable=no,width=550,height=100",false) ;
}

var keylist="abcdefghijklmnopqrstuvwxyz"
var keylist2="123456789"
var temp=""
var plength=6
function generatepass(plength){
temp=""
for (i=0;i<(plength/2);i++)
temp+=keylist.charAt(Math.floor(Math.random()*keylist.length))
for (i=0;i<(plength/2);i++)
temp+=keylist2.charAt(Math.floor(Math.random()*keylist2.length))
document.entra.pass.value=temp
}

