function isshort(id) { if (id == 'Password') var len = 6; else if (id == 'Login') var len = 4; else var len = 4; if ($(id).value.length < len) { var tp = $(id).type; $(id).style.color="red"; var temp = $(id).value; $(id).value="TOO SHORT"; $(id).type="text"; setTimeout("$('"+id+"').value='"+temp+"';$('"+id+"').style.color=\"gray\";$('"+id+"').type='"+tp+"';",1140); $(id).focus();return true; } else return false; } function MomaMceStart() { tinyMCE.init({ mode : "specific_textareas", editor_selector : "mceEditor", language: "en", plugins : "safari,pagebreak,table,save,advhr,advimage,advlink,emotions,insertdatetime,preview,print,contextmenu,paste,fullscreen,noneditable,visualchars,nonbreaking,template", theme_advanced_buttons1 : "newdocument,|,bold,italic,underline,strikethrough,|,cut,copy,paste,pastetext,|,bullist,numlist,|,justifyleft,justifycenter,justifyright,justifyfull,|,hr,removeformat,,,formatselect,fontselect,fontsizeselect", theme_advanced_buttons2 : "tablecontrols,||,outdent,indent|,undo,redo,|,link,unlink,anchor,image,cleanup,code,|,insertdate,inserttime,preview,|,forecolor,backcolor", theme_advanced_buttons3 : "", //theme_advanced_buttons4 : "insertlayer,moveforward,movebackward,absolute,|,styleprops,|,cite,abbr,acronym,del,ins,attribs,|,visualchars,nonbreaking,template,pagebreak", theme_advanced_toolbar_location : "top", theme_advanced_toolbar_align : "left", // theme_advanced_statusbar_location : "bottom", // theme_advanced_resizing : true, theme : "advanced", relative_urls : false, // Default value document_base_url : 'http://my.momapix.com/xali/personal_htm/' }); } function perselector(id,url,text) { new Ajax.InPlaceCollectionEditor(id, url, { collection: [['Tutti','Any']], value: 0, okButton: true, cancelLink: true, submitOnSelect: true, clickToEditText: text, ajaxOptions: {method: 'get'} //override so we can use a static for the result }); } function ajaxselector(id,url,text) { new Ajax.InPlaceCollectionEditor(id, url, { collection: [['AWR','Awards'],['CLT','Culture'],['ENT','Entertainment'],['ENV','Environment'],['HST','History'],['LND','Landscape'],['NTR','Nature'],['PPL','People'],['PRT','portrait'],['SSC','Seascape'],['SPR','Sport'],['STL','Still Life']], value: 0, okButton: true, cancelLink: true, submitOnSelect: true, clickToEditText: text, ajaxOptions: {method: 'get'} //override so we can use a static for the result }); }