//<!--
	
function openBrWindow(theURL,winName,features) { 
	  disp=window.open(theURL,winName,features)
	  disp.focus();
	}
	
	


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 inviare la richiesta è necessario accettare i termini della liberatoria sulla Privacy.")
return false
						}
					}
				}

function checkemail(theField) 
{
   if (theField.indexOf('@', 0) > 0 && (theField.indexOf('.',0) > theField.indexOf('@',0)))
   {
      return true;
   } 
   else 
   {
      alert("Per favore inserire un indirizzo Email valido!");
      return false;
   }
}

function ctrl()
{
	var f = document.contatto;
	
	if (f.nomecognome.value == "") {
		alert("E' necessario inserire il Nome e Cognome.")
		f.nomecognome.focus();
		return false;	
    }	
	
	if (f.email.value == "") {
		alert("E' necessario inserire un Email valido.")
		f.email.focus();
		return false;	
    }			
	
	if  (!checkemail(f.email.value))
		return false;


	return true;
}


function iscriviti()
{
	alert("ddd");
	document.location.href="default.asp?iscriviti=1";
}

function cancellati()
{
	document.location.href="default.asp?iscriviti=0";
}

	
	
	
/*
newwin_02.04.03
mailto:webmaster@avonet.cz
http://www.avonet.cz
*/


function newwin(co,xwidth,yheight) 
{

xx = screen.width/2 - xwidth/2;
yy = screen.availHeight/2 - yheight/2;
var xdist = 10;
var ydist = 29;

var a = window.open("","new","toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=auto,left="+xx+",top="+yy+",resizable=no,width="+(xwidth+xdist)+",height="+(yheight+ydist));
a.resizeTo(xwidth+xdist,yheight+ydist);
a.document.clear();

a.document.open("text/html");
a.document.writeln('<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">');
a.document.writeln("<html><head><title>GIPPY'S</title>" +'<meta http-equiv="content-type" content="text/html; charset=windows-1250"></head>');

a.document.writeln('<body leftmargin="0" topmargin="0" style="background-color:#ffffff;margin:0px;padding:0px;">');

a.document.writeln('<script language="JavaScript" type="text/javascript"> this.focus(); </script>'); 

a.document.writeln('<div style="position:absolute;top:'+(yheight-31)+';left:'+(xwidth-82)+';" id="loading"><img src="img/caricamento.gif" width="82" height="31" border="0" alt=""></div>');
a.document.writeln('<script language="JavaScript" type="text/javascript">');
a.document.writeln(' <!-- ');
a.document.writeln(' function makeObj(obj)');
a.document.writeln(' {');
a.document.writeln('   var dom = document.getElementById?1:0');
a.document.writeln('   if (dom) this.css = document.getElementById(obj).style');
a.document.writeln('   else if (document.all && !dom) this.css =  document.all[obj].style;');
a.document.writeln('   else if (document.layers && !dom) this.css =  document.layers[obj];');
a.document.writeln('   else return false;');
a.document.writeln(' }');
a.document.writeln(' var test = new makeObj("loading")');
a.document.writeln(' // --> ');
a.document.writeln('</script>');

a.document.writeln('<div><a href="#" onclick="window.close();"><img src="'+co+'" width="'+xwidth+'"alt="Clicca per chiudere la finestra" height="'+yheight+'" onload="test.css.visibility = \'hidden\'" border="0" alt=""></a></div>');
a.document.writeln('</body>');

a.document.writeln('</html>');

a.document.close();

}

function txtwin(co,sirka,vyska)
{
window.open(co,"or","toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=no,width="+sirka+",height="+vyska);
return false;
}

//-->
