_editor_url = "/gestione/htmlarea/";    // URL to htmlarea files
var win_ie_ver = parseFloat(navigator.appVersion.split("MSIE")[1]);
if (navigator.userAgent.indexOf('Mac')        >= 0) { win_ie_ver = 0; }
if (navigator.userAgent.indexOf('Windows CE') >= 0) { win_ie_ver = 0; }
if (navigator.userAgent.indexOf('Opera')      >= 0) { win_ie_ver = 0; }
if (win_ie_ver >= 5.5) {
 document.write('<scr' + 'ipt src="' +_editor_url+ 'editor.js"');
 document.write(' language="Javascript1.2"></scr' + 'ipt>');  
} else { document.write('<scr'+'ipt>function editor_generate() { return false; }</scr'+'ipt>'); }

//SITO CORMANO

// VERIFICA EMAIL
function isEmail(what)
{
   var i=new RegExp("^.+\\@(\\[?)[a-zA-Z0-9\\-\\.]+\\.([a-zA-Z]{2,4}|[0-9]{1,3})(\\]?)$");
   if(!i.test(what.value)) { alert("L'indirizzo E-MAIL non č valido."); what.focus(); return false}   
   return true;
}

//Eliminazione Ufficio
function confermaEliminazioneUfficio(theForm)
{
	return confirm("Confermi l'eliminazione dell'ufficio?");
	return (true);
}

//Eliminazione Servizio
function confermaEliminazioneServizio(theForm)
{
	return confirm("Confermi l'eliminazione del Servizio?");
	return (true);
}

//Eliminazione Appuntamento
function confermaEliminazioneAppuntamento(theForm)
{
	return confirm("Confermi l'eliminazione dell'appuntamento?");
	return (true);
}

//Eliminazione News
function confermaEliminazioneNews(theForm)
{
	return confirm("Confermi l'eliminazione della News?");
	return (true);
}

//Eliminazione News
function confermaEliminazioneRecord(theForm)
{
	return confirm("Confermi l'eliminazione del Record?");
	return (true);
}

//Eliminazione Link
function confermaEliminazioneLink(theForm)
{
	return confirm("Confermi l'eliminazione del link?");
	return (true);
}

//Eliminazione Link
function confermaEliminazioneMailUfficio(theForm)
{
	return confirm("Confermi l'eliminazione della mail?");
	return (true);
}

//Eliminazione Numeri Utili
function confermaEliminazioneNumeri_utili(theForm)
{
	return confirm("Confermi l'eliminazione del numero utile?");
	return (true);
}

//Eliminazione Link
function confermaEliminazioneUtenteNewsletter(theForm)
{
	return confirm("Confermi l'eliminazione dell\'indirizzo e-mail?");
	return (true);
}

//Eliminazione Categoria
function confermaEliminazioneCategoria(theForm)
{
	return confirm("Confermi l'eliminazione della Categoria?");
	return (true);
}

//Dissocia Servizio
function confermaDissociazioneServizio(theForm)
{
	return confirm("Confermi la dissociazione del servizio?");
	return (true);
}

//Dissocia Modulistica
function confermaDissociazioneModulistica(theForm)
{
	return confirm("Confermi la dissociazione del documento?");
	return (true);
}

//Dissocia Modulistica
function confermaEliminazioneDocumento(theForm)
{
	return confirm("Confermi l'eliminazione del documento?");
	return (true);
}

// Chiude la finestra ed aggiorna la pagina sottostante
function fnClose(){
	window.opener.location.reload(); 
	window.close();
}

//Chiude una finestra
function Close(){
	window.close();
}


//FORM UPLOAD NUOVA MODULISTICA
function controllaformModulistica(theForm)
{
if (theForm.titolo_modulistica.value == "")
	{
		alert("Inserire un valore per il campo \"Descrizione\".");
		theForm.titolo_modulistica.focus();
		return (false);
	}
if (theForm.file.value == "")
	{
		alert("Selezionare un file da allegare.");
		theForm.file.focus();
		return (false);
	}

	return (true);
}

//FORM UPLOAD MODIFICA MODULISTICA
function controllaformModulisticaModifica(theForm)
{
if (theForm.alt_text.value == "")
	{
		alert("Inserire un valore per il campo \"Descrizione\".");
		theForm.alt_text.focus();
		return (false);
	}
	return (true);
}

//Form Newsletter
function controllaformNewsletter(theForm)
{
if (theForm.name.value == "")
	{
		alert("Compilare il campo DA");
		theForm.name.focus();
		return (false);
	}
if (theForm.subject.value == "")
	{
		alert("Compilare il campo OGGETTO");
		theForm.subject.focus();
		return (false);
	}
if (theForm.message.value == "")
	{
		alert("Compilare il campo TESTO");
		theForm.message.focus();
		return (false);
	}	
	return confirm("Confermi l'invio della mail?");
	return (true);
}


//FORM UPLOAD NUOVO REGOLAMENTO
function controllaformRegolamento(theForm)
{
if (theForm.titolo_regolamento.value == "")
	{
		alert("Inserire un valore per il campo \"Descrizione\".");
		theForm.titolo_regolamento.focus();
		return (false);
	}
if (theForm.file.value == "")
	{
		alert("Selezionare un file da allegare.");
		theForm.file.focus();
		return (false);
	}

	return (true);
}

//FORM UPLOAD MODIFICA REGOLAMENTO
function controllaformRegolamentoModifica(theForm)
{
if (theForm.titolo_regolamento.value == "")
	{
		alert("Inserire un valore per il campo \"Descrizione\".");
		theForm.titolo_regolamento.focus();
		return (false);
	}
	return (true);
}


//FORM UPLOAD NUOVO ALLEGATO
function controllaformAllegato(theForm)
{
if (theForm.alt_text.value == "")
	{
		alert("Inserire un valore per il campo \"Descrizione\".");
		theForm.alt_text.focus();
		return (false);
	}
if (theForm.file.value == "")
	{
		alert("Selezionare un file da allegare.");
		theForm.file.focus();
		return (false);
	}

	return (true);
}



function controllaformManzoninoPartecipante(theForm)
{
if (theForm.nome.value == "")
	{
		alert("Inserire un valore per il campo \"Nome\".");
		theForm.nome.focus();
		return (false);
	}
if (theForm.cognome.value == "")
	{
		alert("Inserire un valore per il campo \"Cognome\".");
		theForm.cognome.focus();
		return (false);
	}
if (theForm.titolo.value == "")
	{
		alert("Inserire un valore per il campo \"Titolo\".");
		theForm.titolo.focus();
		return (false);
	}
if (theForm.file.value == "")
	{
		alert("Selezionare un file da allegare.");
		theForm.file.focus();
		return (false);
	}
	return (true);
}



function controllaformManzoninoPartecipanteModifica(theForm)
{
if (theForm.nome.value == "")
	{
		alert("Inserire un valore per il campo \"Nome\".");
		theForm.nome.focus();
		return (false);
	}
if (theForm.cognome.value == "")
	{
		alert("Inserire un valore per il campo \"Cognome\".");
		theForm.cognome.focus();
		return (false);
	}
if (theForm.titolo.value == "")
	{
		alert("Inserire un valore per il campo \"Titolo\".");
		theForm.titolo.focus();
		return (false);
	}
	return (true);
}


/// PARTE PUBBLICA
function controllaFormRichiestaInfo(theForm)
{
if (theForm.id_ufficio.value == "")
	{
		alert("Selezionare un destinatario dall'apposito menų.");
		theForm.id_ufficio.focus();
		return (false);
	}

if (theForm.nominativo.value == "")
	{
		alert("Inserire un valore per il campo \"NOME e COGNOME\".");
		theForm.nominativo.focus();
		return (false);
	}

if (theForm.mail.value == "")
	{
		alert("Inserire un valore per il campo \"INDIRIZZO E-MAIL\".");
		theForm.mail.focus();
		return (false);
	}
	
if(!isEmail(theForm.mail)) return false;

if (theForm.oggetto.value == "")
	{
		alert("Inserire un valore per il campo \"OGGETTO'\".");
		theForm.oggetto.focus();
		return (false);
	}	
	
if (theForm.messaggio.value == "")
	{
		alert("Inserire un valore per il campo \"MESSAGGIO\".");
		theForm.messaggio.focus();
		return (false);
	}	

	return confirm("Confermi l'invio dei dati?");
	return (true);
	//return (true);
}

//FORM UPLOAD Mail Uffici
function controllaformMailUffici(theForm)
{
if (theForm.ufficio.value == "")
	{
		alert("Inserire un valore per il campo \"UFFICIO\".");
		theForm.ufficio.focus();
		return (false);
	}
if (theForm.mail.value == "")
	{
		alert("Inserire un valore per il campo \"INDIRIZZO E-MAIL\".");
		theForm.mail.focus();
		return (false);
	}

if(!isEmail(theForm.mail)) return false;

return (true);
}


//FORM INIZIATIVA ASSOCIAZIONE
function controllaformIniziative(theForm)
{
if (theForm.id_associazione.value == "")
	{
		alert("Inserire un valore per il campo \"Associazione\".");
		theForm.id_associazione.focus();
		return (false);
	}
	return (true);
}

//FINE 

//function open_info(){
//	if (document.all["info"].style.overflow == "hidden" ){
//				document.all["info"].style.visibility = "visible"
//				document.all["info"].style.overflow = "visible"
//	}else{
//				document.all["info"].style.visibility = "hidden"
//				document.all["info"].style.overflow = "hidden"	
//	}
//}


function MostraTabella(idTabella) {
	if (idTabella != "") {
		document.getElementById("Casa_" + idTabella).style.display = "inline";  // (block o inline per vederlo)
	}
}

function addbookmark(){
	if (document.all)
	window.external.AddFavorite("http://www.comune.cormano.mi.it","Comune di Cormano - Sito Ufficiale")
}

// JavaScript Document
function stop_indesidered_keys_numeri(pwd) {
	if ((event.keyCode >=48 && event.keyCode <=57)) {
		return true
	} else {
		if(pwd == 1){alert("Carattere '" + String.fromCharCode(event.keyCode) + "' non consentito")};
		return false		
	}
}

// JavaScript Document
function stop_indesidered_keys_prezzo(pwd) {
	if (event.keyCode == 44 || (event.keyCode >=48 && event.keyCode <=57) ) {
		return true
	} else {
		if(pwd == 1){alert("Carattere '" + String.fromCharCode(event.keyCode) + "' non consentito")};
		return false		
	}
}

function open_window( n )
{
	mywin = window.open(n , '', 'toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=yes,copyhistory=no,width=700,height=535,left=0,top=0,screenX=0,screeny=0');
	mywin.focus();
}

function MM_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}

function MM_swapImgRestore() { //v3.0
  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}

function MM_swapImage() { //v3.0
  var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
   if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}

function open_layer(){
	if (document.all["mappa"].style.overflow == "hidden" ){
		document.all["mappa"].style.visibility = "visible"
		document.all["filtro"].style.overflow = "hidden"
		document.all["mappa"].style.overflow = "visible"
		document.all["testo"].label = "FILTRO"
//		MM_swapImage(img,'','zzz/Layout/su.gif',1);
	}else{	
		document.all["mappa"].style.overflow = "hidden"
		document.all["filtro"].style.overflow = "visible"		
//		MM_swapImage(img,'','zzz/Layout/giu.gif',1);		
	}
}

function open_Help(){
	if (document.all["demoHelp"].style.overflow == "hidden" ){
		document.all["demoHelp"].style.overflow = "visible"
		MM_swapImage('imgDH','','/img/demoHelp.gif',1);
	}else{	
		document.all["demoHelp"].style.overflow = "hidden"
		MM_swapImage('imgDH','','/img/demoHelpC.gif',1);
	}
}

function open_Mappa(layer){
	if (document.all[layer].style.overflow == "hidden" ){
		document.all[layer].style.overflow = "visible"
		document.all[layer].style.height = "auto"				
		MM_swapImage('img'+layer,'','/img/cart_o.gif',1);
	}else{	
		document.all[layer].style.overflow = "hidden"
		document.all[layer].style.height = "0"						
		MM_swapImage('img'+layer,'','/img/cart_c.gif',1);
	}
}


function Stampa()
	{
		if(confirm("Stampare la pagina?"))
	{
		self.print()
	}
}


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 MM_findObj(n, d) { //v4.01
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
}

function MM_showHideLayers() { //v6.0
  var i,p,v,obj,args=MM_showHideLayers.arguments;
  for (i=0; i<(args.length-2); i+=3) if ((obj=MM_findObj(args[i]))!=null) { v=args[i+2];
    if (obj.style) { obj=obj.style; v=(v=='show')?'visible':(v=='hide')?'hidden':v; }
    obj.overflow=v;}
}






// JavaScript Document
function stop_indesidered_keys(pwd) {
	if (event.keyCode==45 || event.keyCode == 46 || event.keyCode == 64 || event.keyCode == 95 || (event.keyCode >=65 && event.keyCode <=90) || (event.keyCode >=97 && event.keyCode <=122) || (event.keyCode >=48 && event.keyCode <=57)|| (event.keyCode >=1 && event.keyCode <=31)) {
		return true
	} else {
		if(pwd == 1){alert("Carattere '" + String.fromCharCode(event.keyCode) + "' non consentito")};
		return false		
	}
}

function scrivi_ASCII() {
	for (i=0; i<127; i++){
//	document.write(i)
		document.write(i + " " + String.fromCharCode(i) + "<br>");
	} 
}

function MM_jumpMenu(targ,selObj,restore){ //v3.0
  eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");
  if (restore) selObj.selectedIndex=0;
}


//FORM REGISTRAZIONE
function controllaformRegistrazione(theForm)
{
if (theForm.nominativo.value == "")
	{
		alert("Inserire un valore per il campo \"Nome Agenzia\".");
		theForm.nominativo.focus();
		return (false);
	}
if (theForm.citta.value == "")
	{
		alert("Inserire un valore per il campo \"Cittā\".");
		theForm.citta.focus();
		return (false);
	}
if (theForm.cap.value == "")
	{
		alert("Inserire un valore per il campo \"CAP\".");
		theForm.cap.focus();
		return (false);
	}	
if (theForm.provincia.value == "")
	{
		alert("Inserire un valore per il campo \"Provincia\".");
		theForm.provincia.focus();
		return (false);
	}	
if (theForm.indirizzo.value == "")
	{
		alert("Inserire un valore per il campo \"Indirizzo\".");
		theForm.indirizzo.focus();
		return (false);
	}	
if (theForm.responsabile.value == "")
	{
		alert("Inserire un valore per il campo \"Titolare\".");
		theForm.responsabile.focus();
		return (false);
	}	
if (theForm.telefono1.value == "")
	{
		alert("Inserire un valore per il campo \"Nr. di Telefono\".");
		theForm.telefono1.focus();
		return (false);
	}	
if (theForm.email.value == "")
	{
		alert("Inserire un valore per il campo \"Indirizzo e-mail\".");
		theForm.email.focus();
		return (false);
	}	
if (theForm.password.value == "")
	{
		alert("Inserire un valore per il campo \"Password\".");
		theForm.password.focus();
		return (false);
	}
	
	return (true);
}
//########################################################################################


//FORM PARTECIPA
function controllaformPartecipa(theForm)
{
if (theForm.nr.value == "")
	{
		alert("Inserire un valore per il campo \"Numero\".");
		theForm.nr.focus();
		return (false);
	}
if (theForm.anno.value == "")
	{
		alert("Inserire un valore per il campo \"Anno\".");
		theForm.anno.focus();
		return (false);
	}
if (theForm.nr_anno.value == "")
	{
		alert("Inserire un valore per il campo \"Anno Numero\".");
		theForm.nr_anno.focus();
		return (false);
	}	
if (theForm.mese.value == "")
	{
		alert("Inserire un valore per il campo \"Mese\".");
		theForm.mese.focus();
		return (false);
	}	
if (theForm.sommario.value == "")
	{
		alert("Inserire un valore per il campo \"Sommario\".");
		//theForm.sommario.focus();
		return (false);
	}	
if (theForm.allegato.value == "" && theForm.url_allegato.value == "")
	{
		alert("Selezionare un allegato in formato .pdf");
		theForm.allegato.focus();
		return (false);
	}	
if (theForm.img.value == "" && theForm.url_img.value == "")
	{
		alert("Selezionare un immagine!");
		theForm.img.focus();
		return (false);
	}	
	
	return (true);
}
//########################################################################################

//FORM COMUNICATO STAMPA
function controllaformComunicato(theForm)
{
if (theForm.anno.value == "")
	{
		alert("Inserire un valore per il campo \"Anno\".");
		theForm.anno.focus();
		return (false);
	}
if (theForm.titolo.value == "")
	{
		alert("Inserire un valore per il campo \"Titolo\".");
		theForm.titolo.focus();
		return (false);
	}	
if (theForm.allegato.value == "" && theForm.url_allegato.value == "")
	{
		alert("Selezionare un allegato!");
		theForm.allegato.focus();
		return (false);
	}	
	
	return (true);
}
//########################################################################################


// FINE LINK

	var flashlinks=new Array()
	
	function changelinkcolor(){
	for (iFlash=0; iFlash< flashlinks.length; iFlash++){
	var flashtype=document.getElementById? flashlinks[iFlash].getAttribute("flashtype")*1 : flashlinks[iFlash].flashtype*1
	var flashcolor=document.getElementById? flashlinks[iFlash].getAttribute("flashcolor") : flashlinks[iFlash].flashcolor
	if (flashtype==0){
	if (flashlinks[iFlash].style.color!=flashcolor)
	flashlinks[iFlash].style.color=flashcolor
	else
	flashlinks[iFlash].style.color=''
	}
	else if (flashtype==1){
	if (flashlinks[iFlash].style.backgroundColor!=flashcolor)
	flashlinks[iFlash].style.backgroundColor=flashcolor
	else
	flashlinks[iFlash].style.backgroundColor=''
	}
	}
	}
	
	function init(){
	var i=0
	if (document.all){
	while (eval("document.all.flashlink"+i)!=null){
	flashlinks[i]= eval("document.all.flashlink"+i)
	i++
	} 
	}
	else if (document.getElementById){
	while (document.getElementById("flashlink"+i)!=null){
	flashlinks[i]= document.getElementById("flashlink"+i)
	i++
	}
	}
	setInterval("changelinkcolor()", 700)
	}
	
	if (window.addEventListener)
	window.addEventListener("load", init, false)
	else if (window.attachEvent)
	window.attachEvent("onload", init)
	else if (document.all)
	window.onload=init
// FINE FLASH LINK


function check_green(controllo, hide) {
	if (controllo.checked) {
		hide.value = eval(hide.value) + 1;
		return controllo.className = 'Green';
	}	else {
		hide.value = eval(hide.value) - 1;
		return controllo.className = '';		
	}
}

function mostraLayer(quale){
		
		var hs = document.all[quale].style.overflow;
	
		if (hs == "hidden"){
			document.all[quale].style.overflow = "visible"						
			document.all[quale].style.visibility = "visible"
		}else{
			document.all[quale].style.overflow = "hidden"						
			document.all[quale].style.visibility = "hidden"	
		}

								
}

//Funzione Popup Centrata
 function PopupCentrata() {	 
   var w = 400;
   var h = 300;
   var l = Math.floor((screen.width-w)/2);
   var t = Math.floor((screen.height-h)/2);
   var stile = "status=no, menubar=no, toolbar=no scrollbar=no";

  myWin = window.open("/popup.htm","auguri","width=" + w + ",height=" + h + ",top=" + t + ",left=" + l,stile);
	 myWin.focus();
 }
 
 function open_info(divName){
	if (document.all[divName].style.overflow == "hidden" ){
		document.all[divName].style.visibility = "visible"
		document.all[divName].style.overflow = "visible"
	}else{
		document.all[divName].style.visibility = "hidden"
		document.all[divName].style.overflow = "hidden"	
	}
}

//Funzione AUGURI
 function PopupAuguri() {	 
   var w = 400;
   var h = 302;
   var l = 10 // Math.floor((screen.width-w)/2);
   var t = 10 // Math.floor((screen.height-h)/2);
   var stile = "status=no, menubar=no, toolbar=no scrollbar=no";

   myWin = window.open("/popup.htm","auguri","width=" + w + ",height=" + h + ",top=" + t + ",left=" + l,stile);
//	 myWin.focus();
 }
 
 //Funzione Tmp Consiglio
 function PopupTmp() {  
   var w = 340;
   var h = 280;
   var l = 10 // Math.floor((screen.width-w)/2);
   var t = 10 // Math.floor((screen.height-h)/2);
   var stile = "status=no, menubar=no, toolbar=no scrollbar=no";
 
  myWin = window.open("/comune/santinelli.htm","tmp","width=" + w + ",height=" + h + ",top=" + t + ",left=" + l,stile);
//  myWin.focus();
 }
 
//Funzione Consiglio
 function PopupConsiglio(n) {	 
   var w = 340;
   var h = 270;
   var l = 10 // Math.floor((screen.width-w)/2);
   var t = 10 // Math.floor((screen.height-h)/2);
   var stile = "status=no, menubar=no, toolbar=no scrollbars=no";

   myWin = window.open(n,"consiglio","width=" + w + ",height=" + h + ",top=" + t + ",left=" + l,stile);
	 myWin.focus();
 }

//Funzione Popup questionario
 function PopupQuestionario() {	 
   var w = 500;
   var h = 580;
   var l = 10 // Math.floor((screen.width-w)/2);
   var t = 10 // Math.floor((screen.height-h)/2);
   var stile = "status=no, menubar=no, toolbar=no, scrollbars=1";

   mywin = window.open("/questionari/q_01.asp" , 'questionario', 'toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=yes,copyhistory=no,width=500,height=580,left=0,top=0,screenX=0,screeny=0');
 }

// Browser Sniffing
function Is() {
    agent  = navigator.userAgent.toLowerCase();
    this.major = parseInt(navigator.appVersion);
    this.minor = parseFloat(navigator.appVersion);
    this.ns    = ((agent.indexOf('mozilla')   !=   -1) && 
                 ((agent.indexOf('spoofer')   ==   -1) && 
                 (agent.indexOf('compatible') ==   -1)));
    this.ns4   = (this.ns && (this.major      ==    4));
    this.ns6   = (this.ns && (this.major      >=    5));
    this.ie    = (agent.indexOf("msie")       !=   -1);
    this.ie3   = (this.ie && (this.major      < 4));
    this.ie4   = (this.ie && (this.major      ==    4) && 
                 (agent.indexOf("msie 5.0")   ==   -1));
    this.ie5   = (this.ie && (this.major      ==    4) && 
                 (agent.indexOf("msie 5.0")   !=   -1));
    this.ie55  = (this.ie && (this.major      ==    4) && 
                 (agent.indexOf("msie 5.5")   !=   -1));
    this.ie6   = (this.ie && (agent.indexOf("msie 6.0")!=-1) );
}

//Sistema l'altezza del div centrale
function altezzaContent(divName, height){
//versione del browser
var is = new Is();
//se non č versione ie5 o ie55 
if (!is.ie5 && !is.ie5){
	var altezza = document.getElementById(divName).clientHeight;	
		if (height>0){
			if (altezza < height){
				document.getElementById(divName).style.height = height+'px';
			}
		}else{
			if (altezza < 700){
				document.getElementById(divName).style.height = '700px';
			}
		}
	}
}

var bypass=0;
var bIE = navigator.appName=="Microsoft Internet Explorer";
function doPopUp(url){
if (bIE){
doPopUpWindow = window.open(url,"","fullscreen=yes");
bypass=1;
}
}
