// JavaScript Document
// risolve il prooblema dei button su explorer

if(document.all){
	var prevOnloadFunction = window.onload;
    window.onload = function(){
    	if (prevOnloadFunction) {prevOnloadFunction();}
        for(var i=0; i < document.forms.length; i++){
            f = document.forms[i];
            for(var j=0; j < f.elements.length; j++) {
                e = f.elements[j];
                if(e.tagName == 'BUTTON'){
                	if(!e.onclick) {
                    	e.onclick = function(){
                        	this.value = this.attributes.getNamedItem('value').nodeValue;
                    	}
					}                      
                }
            }
        }
    }
}

// comuni a pił pagine
function openRevision(rawId) {
    var htmlUrl = '?PAGE=revision&ID='+rawId;
    var features = 'width=400,height=500';
    //alert(features);
    //alert(htmlUrl);
    var myWin = window.open(htmlUrl,'REVISION',features);
    myWin.focus();
    return(false);
} // openRevision
