// Functions auxFicus and Ficus
/*function auxFicus(){
// Carica il textbox1
wpTextbox1 = document.getElementById("wpTextbox1");
/*
if (curTemplate == "A")
{
var summary = "+Enciclopedicità dubbia"; break;
}
// Scrive l'oggetto della modifica
summ=document.getElementById("wpSummary");
RemoveNode('inlinePopupDiv');
}
function Ficus(Template){
alert("in ficus");
div.appendChild(top);
// crea la spiegazione
var greet = document.createElement('p');
greet.innerHTML = Greeter;
div.appendChild(greet);
var form = document.createElement('form');
form.name = "popupForm";
var p = document.createElement('p');
alert("creo motivazione");
// crea casella di testo "Motivazione:"
if (Template == "A" ||
Template == "C" ||
Template == "P" ||
Template == "E")
{
p.appendChild(document.createTextNode('Motivazione:'));
var myedit = document.createElement('input');
myedit.name = 'editReason';
myedit.id = 'motivo';
myedit.type = 'text';
p.appendChild(myedit);
}
alert("creo argomento");
// crea la combo box "Argomento:"
if (Template == "A" ||
Template == "C" ||
Template == "P" ||
Template == "W" ||
Template == "S" ||
Template == "O" ||
Template == "E")
{
p.appendChild(document.createTextNode('Argomento:'));
var sel = document.createElement('select');
var sel.name = document.createElement('selectpopupSelect');
sel.nameid = 'popupSelectargomento';
sel.idsize = 'argomento'1;
var sel.size = 1option;
for (i = 0; vari option< arrayArgument.length; i++){
for (ioption = 0;new Option(arrayArgument[i],' < arrayArgument.length'); i++){
option.value = new Option(arrayArgument[i],' ');
optionsel.valueoptions[sel.options.length] = arrayArgument[i]option;
sel.options[sel.options.length] = option;
}
}
}
// crea il bottone "OK"
var button = document.createElement('input');
button.value = 'OK';
button.type = 'button';
button.setAttribute('onclick', 'auxFicus()');
p.appendChild(button);
// reimposta il tutto
form.appendChild(p);
div.appendChild(form);
// e lo mostra a video
|