window.addEvent('domready', function() {
var a = 0;
flita=new Image();
flitas=new Image();
fluk=new Image();
flukover=new Image();
flita.src = "gfx/flag_ita.gif";
flitas.src = "gfx/flag_ita_selected.gif";
fluk.src = "gfx/flag_uk.gif";
flukover.src = "gfx/flag_uk_over.gif";
$('sorrybox').innerHTML='
'+
'| CONTROLLO REGISTRAZIONE |  |
'+
' |
'+
''+
''+
''+
' | '+
' | '+
' '+
' '+
' |
'+
' |
'+
' |
'+
'
';
$('senddata').innerHTML=''+
'| EMAIL INVIATA |  |
'+
' |
'+
' |
'+
''+
''+
' | '+
'Controllate la posta. Vi è stata inviata una mail con i dati di accesso. | '+
' '+
' |
'+
' |
'+
' |
'+
' |
'+
'
';
$('loginbox').innerHTML=''+
''+
'| Avete dimenticato i dati? |
'+
'
';
$('retrievedata').innerHTML='';
});
function mypopup(what)
{
mywindow = window.open (what, "map","location=0,status=0,scrollbars=1, width=700,height=500");
//mywindow.moveTo(0,0);
}
function openpage(what){
formulario.page.value=what;
formulario.submit();
}
function vai(){
location.href='/download.php?id='+top.document.getElementById('pageid').value+'&area=prodotti';
}
function vaiservizi(){
location.href='/download.php?id='+top.document.getElementById('pageid').value+'&area=servizi';
}
function pulsa(){
new Effect.Pulsate('userreg', {duration: 3,pulses:3});
new Effect.Appear('userreg', {queue: 'end'} );
}
function opensenddata(){
loading.style.display='none';
retrievedata.style.display='none';
senddata.style.display='inline';
}
function openretrievedata(){
loading.style.display='none';
loginbox.style.display='none';
retrievedata.style.display='inline';
}
function openlogin(){
loading.style.display='none';
velina.style.height=document.body.scrollHeight ;
velina.style.display='inline';
loginbox.style.display='inline';
}
function closelogin(){
velina.style.display='none';
loginbox.style.display='none';
retrievedata.style.display='none';
errorbox.style.display='none';
errorbox2.style.display='none';
loading.style.display='none';
senddata.style.display='none';
sorrybox.style.display='none';
}
function opensorry(what){
document.getElementById('sorrytext').innerHTML=what;
velina.style.height=document.body.scrollHeight ;
velina.style.display='inline';
sorrybox.style.display='inline';
}
function carica(what,where){
var tail='&r='+Math.floor(Math.random()*99999);
var myAjax = new Ajax(what+tail+" ", {method: 'get', update: where, onSuccess: function(text){
$('loading').style.display='inline';
}, onComplete: function(text){
$('loading').style.display='none';
}, evalScripts: true });
myAjax.request();
}
function blinka(oggetto){
new Fx.Style(oggetto, 'opacity', {duration:400, onComplete:
function() {
new Fx.Style(oggetto, 'opacity', {duration:400, onComplete:
function() {
new Fx.Style(oggetto, 'opacity', {duration:400, onComplete:
function() {
new Fx.Style(oggetto, 'opacity', {duration:400}).start(1);
}}).start(0);
}}).start(1);
}}).start(0);
}