if (document.layers)
{
   window.captureEvents(Event.MOUSEMOVE)
   window.onmousemove=barfix;
}
else
   document.onmousemove=barfix;

function barfix()
{
   window.status="Sportgaetano.it - Il portale dedicato allo sport della citta' di Gaeta"
}

function right(e) {
if (navigator.appName == 'Netscape' &&
(e.which == 3 || e.which == 2))
	return false;
else if (navigator.appName == 'Microsoft Internet Explorer' &&
(event.button == 2 || event.button == 3)) {
	alert("Spiacenti, il tasto destro del mouse e' disabilitato");
	return false;
}
return true;
}
document.onmousedown=right;
if (document.layers) window.captureEvents(Event.MOUSEDOWN);
window.onmousedown=right;

/**********************************/

var Popup = Class.create();
Popup.prototype = 
{
  initialize: function(options)
  {
    this.options = {
      url: '#',
      width: 310,
      height: 330
    }
    Object.extend(this.options, options || {});
	window.open(this.options.url, '', 'width='+this.options.width+',height='+this.options.height+',scrollbars=yes');
  }
}
function sondaggio(pagina){
	new Popup({url:pagina});
}

function sondaggioExec(_form,pagina) {
	voto_id=''
	voto = Form.getInputs(_form,'radio','vote').find(function(radio){return radio.checked;})
	voto!= null ? voto_id = voto.value : voto_id='';
	if ( voto_id==''){alert("IMPOSSIBILE COMPLETARE L'OPERAZIONE\nSelezionare una risposta.");return false} 
	new Popup({url:pagina+"&voto_id="+voto_id});
}
function HideSpot(){
	$('divSpot').setStyle({display: 'none'});
	$('bodywrapper').setStyle({display: 'block'});	
}
