function newWindow(sHref) {
	finestra=window.open(sHref, '_blank');
	finestra.focus();
	return false;
}


function home() {
if(document.all)
document.body.style.behavior='url(#default#homepage)';
document.body.setHomePage('http://qn.quotidiano.net');
}


function pref() { 
window.external.AddFavorite(window.location.href, 'Le news di Quotidiano.Net')
}

/*disabilitazione tasto DX
var message="Attenzione :\nIl materiale fotografico pubblicato nel quotidiano e' protetto dalle leggi sul copyright";
function clickIE() {if (document.all) {if(message){alert(message)}};return false;}
function clickNS(e) {if 
(document.layers||(document.getElementById&&!document.all)) {
if (e.which==2||e.which==3) {if(message){alert(message)};return false;}}}
if (document.layers) 
{document.captureEvents(Event.MOUSEDOWN);document.onmousedown=clickNS;}
else{document.onmouseup=clickNS;document.oncontextmenu=clickIE;}
document.oncontextmenu=clickIE
*/

/**
 * Valorizza un campo hidden con la data di un mese addietro
 */
function valorize_date_input_form(oRif, iOffsetYear, iOffsetMonth, iOffsetDay) {
	try {
		jsNow = new Date();
		jsD = new Date(jsNow.getFullYear()-iOffsetYear, jsNow.getMonth()-iOffsetMonth, jsNow.getDate()-iOffsetDay);
		oRif.value = jsD.getDate() + '/' + (jsD.getMonth()+1) + '/' + jsD.getFullYear();
	} catch (ex) {}
}

/**
 * Ritorna una data in formato italiano spostata di n anni, m mesi e g giorni addietro
 */
function return_date(iOffsetYear, iOffsetMonth, iOffsetDay) {
	try {
		jsNow = new Date();
		jsD = new Date(jsNow.getFullYear()-iOffsetYear, jsNow.getMonth()-iOffsetMonth, jsNow.getDate()-iOffsetDay);
		return jsD.getDate() + '/' + (jsD.getMonth()+1) + '/' + jsD.getFullYear();
	} catch (ex) {}
}

