* fields should be passed in following format: [{text:'prompt text', name:'return name', type:'input type'},...]
* @param fields to display
* @param title dialog title
* @param callback which will be triggered when user press OK (user answers will be passed to callback in following format: [{name:'return name', value: 'user value'},...])
*/
form:function(fields,title,callback){
varcontent='<table>';
for (varainfields){
content+='<tr><td>'+fields[a].text+'</td><td>';
vartype=fields[a].type;
if (type=='text'||type=='checkbox'||type=='password')