/*function MM_reloadPage(init) {  //reloads the window if Nav4 resized
  if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
    document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}
  else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();
}
MM_reloadPage(true);*/
function ResetInput(obj, val){
		if (obj.value == val){
				obj.value = '';
				obj.className='input-attivo';
		}else{
				if (obj.value == ''){
					obj.value = val;
					obj.className='input-txt';
				}
		}
		//alert('->' + val);
		/*if (val == 'password'){
				if (obj.value != val){
						obj.type = 'password';
				}else{
						obj.type = 'text';
				}
		}*/
}
function pswcambia(){
	var dd = document.getElementById('divPassword')
	dd.innerHTML='<input type="password" name="password" onblur="pswricambia(this)" class="input-attivo"  maxlength="100">'
	setTimeout('document.NomeForm.password.focus()',50);
}
function pswricambia(pp){
	if(pp.value==''){
		var dd = document.getElementById('divPassword')
		dd.innerHTML='<input type="text" name="password" value="password" onfocus="pswcambia()" class="input-txt"  maxlength="100">'
	}
}
function OpenWindow(theURL, nome, w, h, l, t) {
	if (isNaN(l)){
		LeftPosition = (screen.width) ? (screen.width-w)/2 : 0;
	} else {
		LeftPosition = l;
	}
	if (isNaN(t)){
		TopPosition = (screen.height) ? (screen.height-h)/2 : 0;
	} else {
		TopPosition = t;
	}
	window.open(theURL,nome,'status=no,scrollbars=yes,resizable=no,width='+w+',height='+h+',left='+LeftPosition+',top='+TopPosition);
}