var content1;
function OpenWin(str) {
	self.name='body';
	if (!content1) content1 =  window.open(str,'content1','scrollbars=yes,resizable=yes,width=600,height=400,status=no,location=no,toolbar=no');
	else {
		content1 =  window.open('','content1','scrollbars=yes,resizable=yes,width=600,height=400,status=no,location=no,toolbar=no');
		content1.location.href = str;
		content1.focus();
	}
}

function OpenEspo(str) {
	self.name='body';
	if (!content1) content1 =  window.open(str,'content1','scrollbars=yes,resizable=yes,width=800,height=600,status=yes,location=yes,toolbar=yes');
	else {
		content1 =  window.open('','content1','scrollbars=yes,resizable=yes,width=800,height=600,status=yes,location=yes,toolbar=yes');
		content1.location.href = str;
		content1.focus();
	}
}


//funzioni per accendere l'nvia nei form a condizione che sia settato il check
var checkobj

function accetta(el){
checkobj=el
	if (document.all||document.getElementById){
		for (i=0;i<checkobj.form.length;i++){
var tempobj=checkobj.form.elements[i]
	if(tempobj.type.toLowerCase()=="submit")
tempobj.disabled=!checkobj.checked
							}
						}
					}

function disabilita(el){
	if (!document.all&&!document.getElementById){
			if (window.checkobj&&checkobj.checked)
return true
		else{
alert("Per proseguire occorre accettare i termini del contratto")
return false
						}
					}
				}