var bookmarkurl="http://www.irpinianews.it"
var bookmarktitle="IrpiniaNews - L'Informazione On Line di Avellino e provincia"
function addbookmark(){
if (document.all)
window.external.AddFavorite(bookmarkurl,bookmarktitle)
}

function vai(url, scrolls, resize, left, top, width, height) {
OpenWin = this.open(url, "CtrlWindow", "toolbar=no ,menubar=no ,location=no ,scrollbars=" + scrolls + ",resizable=" + resize + " ,status=no ,left=" + left + ",top=" + top + ",width=" + width + ",height=" + height);
}

var message="Function Disabled!";

function clickIE() {if (document.all) {alert(message);return false;}}
function clickNS(e) {if 
(document.layers||(document.getElementById&&!document.all)) {
if (e.which==2||e.which==3) {alert(message);return false;}}}
if (document.layers) 
{document.captureEvents(Event.MOUSEDOWN);document.onmousedown=clickNS;}
else{document.onmouseup=clickNS;document.oncontextmenu=clickIE;}

document.oncontextmenu=new Function("return false")

var omitformtags=["input", "textarea", "select"]
omitformtags=omitformtags.join("|")
function disableselect(e){
if (omitformtags.indexOf(e.target.tagName.toLowerCase())==-1)
return false
}
function reEnable(){
return true
}
if (typeof document.onselectstart!="undefined")
document.onselectstart=new Function ("return false")
else{
document.onmousedown=disableselect
document.onmouseup=reEnable
}

serv_url = '/service/'; dest_url = '/?news=';
function stampa(str) 
{
searchWin = window.open(serv_url + "stampa" + dest_url + str ,'stampa','scrollbars=no,resizable=no,width=1,height=1,status=no,location=no,toolbar=no');
}
function commenta(str) 
{
searchWin = window.open(serv_url + "commenta" + dest_url + str , 'commenti','width=500, height=500 left=10,top=10 ,toolbar=no, location=no,status=no,menubar=no,scrollbars=no,resizable=no');
}
function initstampa(){  
if (window.print) {
    window.print() ;  
} else {
    var WebBrowser = '<OBJECT ID="WebBrowser1" WIDTH=0 HEIGHT=0 CLASSID="CLSID:8856F961-340A-11D0-A96B-00C04FD705A2"></OBJECT>';
document.body.insertAdjacentHTML('beforeEnd', WebBrowser);
    WebBrowser1.ExecWB(6, 2);  
}
}
function chiudi()
{
self.close()
}
function dlink(lin){
    preurl="http://www."
    linope= preurl + lin + "/"              
    window.open(linope);
}
function meteo(cit){
    meteourl="http://www.ilmeteo.it/meteo.php?citta_input="
    percro= meteourl + cit              
    window.open(percro,'meteo','width=530, height=250 left=150,top=325 ,toolbar=no, location=no,status=no,menubar=no,scrollbars=no,resizable=no');
}


function fbs_click() {
	u=location.href;
	t=document.title;
	window.open('http://www.facebook.com/sharer.php?u='+encodeURIComponent(u)+'&t='+encodeURIComponent(t),'sharer','toolbar=0,status=0,width=626,height=436');
	return false;
	}