function aprifinestra(u){
w = screen.width * 0.9;
h = (document.all ? screen.height : screen.height-150) * 0.9;
op = 'scrollbars=yes,toolbar=yes,location=yes,directories=yes,menubar=yes,resizable=yes,status=yes,width=' + w + ',height=' + h + ',screenX=0,screenY=0,top=0,left=0';
com=open(u,'',op);
}

function vai(u,w) {
if (!w) window.location.href=u;
else aprifinestra(u);
}

function link()
{
var url='';
for (i = 0; i < arguments.length; i++)
   url = url + arguments[i];
vai(url,0);
}

function higo(h,c){
e='?c=' + h + '&f=' + c;
g='myclic' + 'k.php';
t='.tuttogratis' + '.it/';
b='://';
w='www';
h='http';
url = h + b + w + t + g + e ;
vai(url,1);
}

//sceglie quale script utilizzare per calcolare il clik delle statistiche HL
function hiugo(a,b,c)	{
// a ->	0: click, 1: unique
// b ->	id dell'HL
// c -> id della sezione
if (a == 0)	{
	g='hl_clic' + 'k.php';
	e='?c=' + b + '&f=' + c;
}
else {
	g='hl_uniqu' + 'e.php';
	e='?' + b + '&0&' + c;
}
t='.tuttogratis' + '.it/';
b='://';
w='www';
h='http';
url = h + b + w + t + g + e ;
vai(url,1);
}

function ovtgo(p,s,c,h,n){
e='?c=' + c + '&p=' + p + '&k=' + h;
g= s + '.' + 'php';
t='.tuttogratis' + '.it/';
b='://';
w='www';
h='http';
url = h + b + w + t + g + e ;
vai(url,n);
}

function go(s,i,f){
e='tg?';
g=s+'.';
t='.tuttograt' + 'is.it/';
b='://';
w='www';
h='http';
url = h + b + w + t + g + e + i;
vai(url,f);
}

function gos(s,i,f){
e='tg?';
g=s+'.';
t='.tuttograt' + 'is.it/';
b='://';
w='shopping';
h='http';
url = h + b + w + t + g + e + i;
vai(url,f);
}
