function aprimenu(miomenu, qui) {
if (self.location == window.top.location) {
document.write("<frameset rows='34px, 1*' border='0'><frame frameborder='0' marginwidth='8' marginheight='0' noresize><frame frameborder='0' marginwidth='8' marginheight='0' noresize></frameset>");
frames[0].location.href=miomenu;
frames[1].location.href=qui;
}
}

function swap(img, qui) {
document.images[qui].src=img;
}

function popup(nomefile, nomefinestra, larghezza, altezza, scorrimento)
{
win_popup=window.open(nomefile, nomefinestra,
"toolbar=0, location=0, directories=0, status=0, menubar=0, scrollbars=" + scorrimento + ", resizable=0, copyhistory=0, width=" + larghezza + ", height=" + altezza + ", left=" + Math.round((screen.width-larghezza)/2?(screen.width-larghezza)/2:0) + ", top=" + Math.round((screen.height-altezza)/2?(screen.height-altezza)/2:0));
}

function sottolinea(questo) {
document.getElementById(questo).style.textDecoration="underline";
document.getElementById(questo).style.color="#9d0370";
}

function toglisottolineatura(questo) {
document.getElementById(questo).style.textDecoration="none";
document.getElementById(questo).style.color="#306000";
}

function sottolinea2(questo, quello) {
document.getElementById(questo).style.textDecoration="underline";
document.getElementById(quello).style.textDecoration="underline";
document.getElementById(questo).style.color="#9d0370";
document.getElementById(quello).style.color="#9d0370";
}

function toglisottolineatura2(questo, quello) {
document.getElementById(questo).style.textDecoration="none";
document.getElementById(quello).style.textDecoration="none";
document.getElementById(questo).style.color="#306000";
document.getElementById(quello).style.color="#306000";
}

function evidenzia(questo) {
document.getElementById(questo).style.border="solid thin #9d0370";
}

function disevidenzia(questo) {
document.getElementById(questo).style.borderStyle="none";
}

function allarga(fiore, larghezza, altezza) {
document.getElementById(fiore).width=larghezza;
document.getElementById(fiore).height=altezza;
}

function fabordo(questo) {
document.getElementById(questo).style.border="solid 1px #9d0370";
document.getElementById(questo).style.padding="0";
}

function toglibordo(questo) {
document.getElementById(questo).style.borderStyle="none";
document.getElementById(questo).style.padding="1px";
}


