function launch(url)
{
	self.name = "opener";
	remote = open(url, "remote", "scrollbars,width=650,height=600");
}
 
function launch_photo(url)
{
	self.name = "opener";
 	remote = open(url, "win", "width=420,height=450,scrollbars=no");
}
 
function launch_help(url)
{
	self.name = "opener";
	remote = open(url, "win", "scrollbars,width=400,height=500");
}

function launch_small(url)
{
	window.open(url,'win','width=250,height=250, status=no, resizable=no, scrollbars=no');
	_W.focus();
	_W.moveTo(0,0);
}

function launch_medium(url)
{
	window.open(url,'win','width=400,height=300, scrollbars=yes');
	_W.focus();
	_W.moveTo(0,0);
}

function launch_big(url)
{
	var _W = window.open(url,'win','width=600, height=600, status=yes, resizable=yes, scrollbars=yes');
	_W.focus();
	_W.moveTo(0,0);
}

function launch_bigger(url)
{
	var _W = window.open(url,'win','width=600, height=600, status=yes, resizable=yes, scrollbars=yes');
	_W.focus();
	_W.moveTo(0,0);
}

function launch_feedback(url)
{
	window.open(url,'win','width=1000, height=500, status=yes, resizable=yes, scrollbars=yes');
	_W.focus();
	_W.moveTo(0,0);
}

function launch_confirm(url)
{
	var answer = confirm('Vuoi cancellare?')
	if (answer)
	{
		window.open(url,'win','width=750, height=650, status=yes, resizable=yes, scrollbars=yes');
	}
}

function launch_dealer(url)
{
	self.name = "opener";
 	remote = open(url, "win", "width=350, height=250, scrollbars=no, resizable=yes, status=no");
}

function launch_dettagli(url)
{
	window.open(url,'win','width=500,height=400, resizable=yes, status=no", scrollbars=auto');
}

function launch_photogallery(url)
{
    day = new Date();
    id = day.getTime();
    eval("page" + id + " = window.open(url, '" + id + "', 'toolbar=0,scrollbars=0,location=0,statusbar=0,menubar=0,resizable=0,width=750,height=500,left = 265,top = 177');");
}

/*function launch_photogallery(url)
{
    var mine = window.open('','','width=1,height=1,left=0,top=0,scrollbars=no');
    if(mine)
    {
        day = new Date();
        id = day.getTime();
        eval("page" + id + " = window.open(url, '" + id + "', 'toolbar=0,scrollbars=0,location=0,statusbar=0,menubar=0,resizable=0,width=750,height=500,left = 265,top = 177');");
    }
    else
    {
        alert('Attenzione, il tuo browser blocca l\'apertura delle finestre popup.\nQuesto potrebbe causare dei problemi nella visualizzazione della photogallery');
    }
    mine.close()
}*/
