window.onload=function(){if(!NiftyCheck()) return;
Rounded("div#ga dl","all","#ecfaff","#5BC4EB","smooth");}

$(document).ready(function() {
$("a#box").fancybox({
	'titleShow' : false,
	'transitionIn' : 'none',
	'transitionOut' : 'none'
	});
$("#various2").fancybox({
		ajax : {
		type	: "POST",
		example	: 'myexample=test'
		}
	});

$("#[id*=rem]").fancybox({
		'width'				: '65%',
		'height'			: '65%',
		'autoScale'     	: false,
		'transitionIn'		: 'none',
		'transitionOut'		: 'none',
		'type'				: 'iframe'
	});

$("#various4").fancybox({
		'padding'           : 0,
		'autoScale'     	: false,
		'transitionIn'		: 'none',
		'transitionOut'		: 'none'
	});

});

function togMe(a){
var e=document.getElementById(a);
if(!e)return true;
if(e.style.display=="none"){e.style.display=""}
else {e.style.display="none"}
return true;}

function Popup(fi) {
var z = fi;
var w = 500;
var h = 350;
var l = Math.floor((screen.width-w)/2);
var t = Math.floor((screen.height-h)/2);
window.open("http://www.radiostuni.it/include/aiuto/"+ z +".htm", "", "width=" + w + ", height=" + h + ", top=" + t + ", left=" + l);}

function numbersonly(myfield, e, dec) {
var key; var keychar;
if (window.event)
key = window.event.keyCode;
else if (e)
key = e.which;
else return true;
keychar = String.fromCharCode(key);
// control keys
if ((key==null) || (key==0) || (key==8) || (key==9) || (key==13) || (key==27) )
return true;
// numbers
else if ((("0123456789").indexOf(keychar) > -1))
return true;
else if (dec && (keychar == ".")) {
myfield.form.elements[dec].focus();
return false;
} else return false;}