function pop(path, w, h, popName, scrollbars, resizable, menubar, toolbar) {
	if (!scrollbars) scrollbars=0;
	if (!resizable) resizable=0;
	if (!menubar) menubar=0;
	if (!toolbar) toolbar=0;
	
	x = (640 - w)/2;
	y = (480 - h)/2;

    if (screen) {
        y = (screen.availHeight - h)/2;
        x = (screen.availWidth - w)/2;
    }
	if (screen.availWidth > 1800) { 
		x = ((screen.availWidth/2) - w)/2; 
    }
	
	p = window.open(path,popName,',left=' + x + ',top=' + y + ',width=' + w + ',height=' + h + ',location=0,directories=0,status=0,menubar=' + menubar + ',toolbar=' + toolbar + ',scrollbars=' + scrollbars + ',resizable=' + resizable);
	p.focus();
}

function jobs(idpf) {
	pop('join.asp?idpf='+idpf, 600, 450, 'Jobs', 1);
}

function info(txt) {
	if (txt==undefined) {
		txt="";
	}
	pop('http://www.aliprandiarredi.it/popup/info.php?testo='+txt, 450, 400, 'Info', 1);
}

function consulenza() {
	pop('http://www.aliprandiarredi.it/popup/consulenza.htm', 500, 400, 'Consulenza', 1);
}

function PopupPic(sPicURL) {
	window.open("http://www.aliprandiarredi.it/newsletter/occasioni/pic.htm?"+sPicURL, "", "resizable=1,HEIGHT=200,WIDTH=200");
}
