function nta(url){
norme = open(url,'norme','width=600,height=400,top=50,left=50,scrollbars=yes,resizable=yes');
norme.focus();

}

function ntas(url){
norme = open(url,'norme','width=300,height=500,top=20,left=20,scrollbars=yes,resizable=yes');
norme.focus();

}

function gu(tip, cod){
	// collegamento alle schede
	if (tip == 's') {
		defurl = 'schede/s' + cod + '.html';
		ntas(defurl);
	};
	// insediamenti residenziali
	if (tip == 'ire') {
		if (cod.substring(0,1) == 'a' ){defurl = 'nta/l_a.html' };
		if (cod.substring(0,1) == 'b' ){defurl = 'nta/l_b.html' };
		if (cod.substring(0,2) == 'c1'){defurl = 'nta/l_c1.html'};
		if (cod.substring(0,2) == 'c2'){defurl = 'nta/l_c2.html'};
		nta(defurl);
	};
	// insediamenti secondari e terziari
	if (tip == 'ist') {
		defurl = 'nta/l_dimp.html';
		if (cod.substring(0,2) == 'is'){defurl = 'nta/l_d.html'};
		nta(defurl);
	};
	// zone agricole
	if (tip == 'agr') {
		defurl = 'nta/l_e.html';
		nta(defurl);
	};
	// zone interesse collettivo
	if (tip == 'ico') {
		defurl = 'nta/l_via.html';
		if (cod.substring(0,1) == 'f'){defurl = 'nta/l_f.html'};
		nta(defurl);
	};
	// tutela ambiente
	if (tip == 'tut') {
		defurl = 'nta/l_tut.html';
		nta(defurl);
	};
	// attuazione del prg
	if (tip == 'att') {
		defurl = 'nta/l_att.html';
		nta(defurl);
	};
	// interventi sull'edificato
	if (tip == 'int') {
		defurl = 'nta/l_int.html';
		nta(defurl);
	};
	// piani urbanistici
	if (tip == 'pur') {
		defurl = 'nta/l_pur.html';
		nta(defurl);
	};
	// vincoli
	if (tip == 'vin') {
		defurl = 'nta/l_vin.html';
		nta(defurl);
	};
	// varie
	if (tip == 'var') {
		if (cod == 'min'){defurl = 'nta/l_min.html'};
		nta(defurl);
	};
}
function scheda(ns){
parent.frames.tav.document.open();
parent.frames.tav.document.clear();
parent.frames.tav.document.write('<html><head><title>Scheda n.');
parent.frames.tav.document.write(ns);
parent.frames.tav.document.writeln('</title>\n<link rel="STYLESHEET" type="text/css"; href="../../stili.css">\n</head>');
parent.frames.tav.document.writeln('<script language="JavaScript">');
parent.frames.tav.document.writeln('function gu(tip, cod){}');
parent.frames.tav.document.writeln('</script>');
parent.frames.tav.document.writeln('<body  bgcolor="#DDDDDD">');
parent.frames.tav.document.writeln('<object id="scheda" classid="clsid:8718C658-8956-11D2-BD21-0060B0A12A50" width=100% height=100%> \n<param name="src" value="S');
parent.frames.tav.document.write(ns);
parent.frames.tav.document.write('.dwf"> <param name="appearance" value="1">\n<embed width=100% height=95% src="S');
parent.frames.tav.document.write(ns);
parent.frames.tav.document.write('.dwf" appearance="1"> \n</embed> \n</object>');
parent.frames.tav.document.writeln('</body>\n</html>');
parent.frames.tav.document.close()
}
