function apri_full_screen() {
	window.open("home.asp?full=1","","fullscreen,status=no,scrollbars=no,toolbar=no,menubar=no,location=no,resizable=no");
	window.opener=null;
	window.close();
	return false
}

function controlla_target(cosa) {
	//parent.links.document.write (parent.destra.location.href);
	if (parent.destra.location.href!='http://www.nicolademarchi.it/'+cosa) {
		parent.destra.location.href=cosa
	}
}

function apri_tab_bzmn0203() {
	window.open("veditab.asp?id=bzmn0203", "_blank","width=450,height=430,status=no,scrollbars=no,toolbar=no,menubar=no,location=no,resizable=no,left=240,top=250");
}

function apri_tab_mnbz0203() {
	window.open("veditab.asp?id=mnbz0203", "_blank","width=450,height=410,status=no,scrollbars=no,toolbar=no,menubar=no,location=no,resizable=no,left=240,top=250");
}

function apri_link(cosa) {
	//self.name = 'op';
	window.open("infolink.asp?id="+cosa, "link_persona","width=320,height=260,status=no,scrollbars=no,toolbar=no,menubar=no,location=no,resizable=no,left=240,top=350");
}

function apri_tab_david(num,h) {
	window.open("veditab.asp?id=capp"+num, "_blank","width=450,height="+h+",status=no,scrollbars=no,toolbar=no,menubar=no,location=no,resizable=no,left=240,top=20");
}

function apri_glossario(cosa,w,h) {
	//self.name = 'op';
	window.open("gloss.asp?id="+cosa+"", "_blank","width="+w+",height="+h+",status=no,scrollbars=no,toolbar=no,menubar=no,location=no,resizable=no,left=120,top=160");
}

function ins_faccina() {
	//t = document.scrivi.testo.value
	//self.name = 'op';
	window.open("faccine.asp", "_blank","width=690,height=380,status=no,scrollbars=no,toolbar=no,menubar=no,location=no,resizable=no,left=240,top=190");
}

function ins_persona() {
	//t = document.scrivi.testo.value
	//self.name = 'op';
	window.open("pers_i.asp", "_blank","width=690,height=340,status=no,scrollbars=yes,toolbar=no,menubar=no,location=no,resizable=no,left=240,top=190");
}

function ins_link() {
	//t = document.scrivi.testo.value
	//self.name = 'op';
	window.open("links_i.asp", "_blank","width=690,height=340,status=no,scrollbars=yes,toolbar=no,menubar=no,location=no,resizable=no,left=240,top=190");
}

function apri_finestra_sms(cosa) {
	//self.name = 'op';
	//window.open("http://www.areaprivati.190.it/190/rsms/action/sendSMS.do?sender=xx&messageText="+cosa+"&targetGuid=549F2E1DFC55698D07A9638925A39219&BV_SessionID=@@@@1617697139.1057483041@@@@&BV_EngineID=ccdcadcikfmdeikcefeceefdgfmdfkg.0&channelId=-8676&pageTypeId=9609&programId=9424&charsLeft=%20&klink=549F2E1DFC55698D07A9638925A39219&ty_key=rsms_invio_sms_pri", "_blank","width=445,height=250,status=no,scrollbars=no,toolbar=no,menubar=no,location=no,resizable=no,left=240,top=350");
	window.open("http://www.areaprivati.190.it/190/rsms/action/sendSMS.do?sender=x&messageText="+cosa+"&targetGuid=549F2E1DFC55698D07A9638925A39219&channelId=-8676&pageTypeId=9609&programId=9424&charsLeft=%20&klink=549F2E1DFC55698D07A9638925A39219&ty_key=rsms_invio_sms_pri", "_blank","width=445,height=250,status=no,scrollbars=no,toolbar=no,menubar=no,location=no,resizable=no,left=240,top=350");
}

function vedi_persona(cosa) {
	//self.name = 'op';
	window.open("persona.asp?referer="+self.name+"&id="+cosa, "link_persona","width=320,height=280,status=no,scrollbars=no,toolbar=no,menubar=no,location=no,resizable=no,left=240,top=350");
}

function controlla_url(cosa) {
	if (self.name==top.name)
	location.href="home.asp?pag=" +cosa;
}

function apri_esempi_db() {
	//self.name = 'op';
	window.open("dbesempi.asp", "_blank","width=590,height=580,status=no,scrollbars=no,toolbar=no,menubar=no,location=no,resizable=no,left=20,top=30");
}

function apri_foto(cosa,w,h,categoria) {
	//self.name = 'op';
	window.open("vedifoto.asp?w="+w+"&categoria="+categoria+"&cosa="+cosa+"", "_blank","width="+w+",height="+h+",status=no,scrollbars=yes,toolbar=no,menubar=no,location=no,resizable=no,left=20,top=20");
}

function apri_messaggio(num,w,h) {
	//self.name = 'op';
	//window.open("vedimsg.asp?w="+w+"&numero="+num+"", "_blank","width="+w+",height="+h+",status=no,scrollbars=yes,toolbar=no,menubar=no,location=no,resizable=no,left=20,top=20");
	document.location.href="vedimsg.asp?numero="+num
}

function apri_b() {
	window.open("b.asp","","fullscreen,status=no,scrollbars=no,toolbar=no,menubar=no,location=no,resizable=no");
// parent.window.close()
}

function show(object) {
    if (document.getElementById && document.getElementById(object) != null) {
         document.getElementById(object).style.visibility='visible';
         document.getElementById(object).style.display='block';
    }
    else if (document.layers && document.layers[object] != null)
        document.layers[object].visibility = 'visible';
    else if (document.all) {
        document.all[object].style.zIndex = 100;
        document.all[object].style.visibility = 'visible';
    }
}

function hide(object) {
    if (document.getElementById && document.getElementById(object) != null) {
         document.getElementById(object).style.visibility='hidden';
         document.getElementById(object).style.display='none';
    }
    else if (document.layers && document.layers[object] != null)
        document.layers[object].visibility = 'hidden';
    else if (document.all)
         document.all[object].style.visibility = 'hidden';
}

function mswitch(object,old,collegamento) {
	hide(old);
	hide(collegamento);
	show(object);
}

function apri_petizione_mn() {
	//self.name = 'op';
	window.open("popupmna.asp", "popupmna","width=291,height=239,status=no,scrollbars=no,toolbar=no,menubar=no,location=no,resizable=no,left=240,top=350");
}