
function popup(sPicURL) {
window.open("foto.htm?"+sPicURL, "", "resizable=1,HEIGHT=300,WIDTH=200");}

function verify(frm)
{

if (frm.name == 'newsletter')
{ 
	Ctrl = frm.email;
	result = false;
	space_tokens = Ctrl.value.split(" ");
	if (space_tokens.length == 1) {
	 at_tokens = Ctrl.value.split("@");
	 if (at_tokens.length == 2) {
		if (at_tokens[1].length != 0) {
			right_dot_tokens = at_tokens[1].split(".");
			if (right_dot_tokens.length >= 2) {
				if (right_dot_tokens[1].length != 0) {
					result=true;
				}
			}
		}
	}
	}
	if (!result){
           errorString = "Inserisci un'indirizzo e-mail valido";
           alert(errorString);
           Ctrl.focus();
	   return (result);
           }
}}


 
function start(winflash, x, y)
{
window.open(winflash,'','scrollbars=1,screenX=150,screenY=50,left=150,top=50,resizable=0,menubar=0,toolbar=0,status=0,width='+x+',height='+y);
}

function start2(winflash, x, y)
{
window.open(winflash,'','scrollbars=0,screenX=150,screenY=50,left=150,top=50,resizable=0,menubar=0,toolbar=0,status=0,width='+x+',height='+y);
}

