/**/
/*javascript:openPopUp('system_difficolta.htm',355,120,'yes');*/
/* ************************************************************ */
/* ************* Esplodo il menù a tentina CSS **************** */
/* ************************************************************ */
function init() {
var menuID = ["m1","m2"];
for (var i in menuID)
document.getElementById("s-"+menuID[i]).style.display = "none";
}
function mostra(id) {
if (document.getElementById("s-"+id).style.display == "none") {
init();
document.getElementById("s-"+id).style.display = "block";
}
else init()
}
/* ******************************************************** */
/* ************* Inizializzazione funzioni **************** */
/* ******************************************************** */
function initFunctions() {
preloadImages();
}
/* **************************************************** */
/* FUNZIONE per aprire una finestra di PopUp centrata */
/* **************************************************** */
function openPopUp(url,w,h,scrl) {
l = (screen.width-w)/2;
t = (screen.height-h)/2;
newWin = window.open(url,"nuovafinestra", "width="+w+", height="+h+", left="+l+", top="+t+", scrollbars="+scrl+", resizable=no")
}
/* ************************************************* */
/* FUNZIONE per il popup degli UPLOADS */
/* *********é*************************************** */
function getUploads(inputName,formName) {
l = (screen.width-540)/2;
t = (screen.height-300)/2;
var def = "document."+formName+"."+inputName+".value";
window.open("../upload/uploadFormPopUp.asp?inputName=" + inputName + "&def=" + def + "&formName=" + formName,"cUpd","status=no,toolbar=no,menubar=no,location=no,directories=no,width=523,height=155,left=" + l + ", top=" + t + ",resizable=no");
}
/* ******************************************************** */
/* ****************** Rollover immagini ******************* */
/* ******************************************************** */
userAgent = window.navigator.userAgent;
browserVers = parseInt(userAgent.charAt(userAgent.indexOf("/")+1),10);
function newImage(arg) {
if (document.images) {
rslt = new Image();
rslt.src = arg;
return rslt;
}
}
function findElement(n,ly) {
if (browserVers < 4) return document[n];
var curDoc = ly ? ly.document : document;
var elem = curDoc[n];
if (!elem) {
for (var i=0;i