/* GNU Liscense - Pau and Arnau usage: ------------------------------------------ function SetValueToVar(arrayreturned){ object.arrayofvalues=arrayreturned; } mPrompt(parametersQuantity, promptTitle, promptDescription, arrayparametersnames, originalValues, SetValueToVar); ------------------------------------------ parametersQuantity: how many parameters will the mPrompt ask for promptTitle: main title for the mPrompt promptDescription: description for the mPrompt arrayparametersnames: an array with the name of the parameters. If send empty (""), it will display 'parameter' originalValues: original values of the parameters, inside an array, if no values, send empty string ("") SetValueToVar: function declared to set the values to the variable. Puts the values into an array */ function mPrompt(quantity, procname, description, arrayparametersnames, returnplace, funcgiv){ if(document.getElementById('idprompt')==null) { var bgpanel = document.createElement('div'); arraycontent=returnplace; bgpanel.id = 'idbgpanel'; bgpanel.className = 'backgroundpanel'; document.getElementsByTagName('body')[0].appendChild(bgpanel); prompt = document.createElement('div'); prompt.id = 'idprompt'; prompt.className = 'caixaPrompt'; prompt.quantity=quantity; prompt.descr=description; document.getElementsByTagName('body')[0].appendChild(prompt); cont=""; cont+="
" + description +"
"; for(var i=0; i