";switch(F){case"text":editinplace_html='
';editinplace_html+='
'+P+"
";break;case"textarea":editinplace_html='
";editinplace_html+='
'+P+"
";break;default:throw"unsupported field type: '"+F+"'"}button_html='
';button_html+='';button_html+='';button_html+="
";switch(V){case"right":K+="
"+editinplace_html+" | "+button_html+" |
";break;case"left":K+="
"+button_html+" | "+editinplace_html+" |
";break;case"bottom":K+="
"+editinplace_html+" |
"+button_html+" |
";break;case"top":K+="
"+button_html+" |
"+editinplace_html+" |
";break}K+="
";if(L=="bottom"){K+='