function confirmed(){ result=confirm('Are you sure?'); if(result){ return true; } else { return false; } } //EDITOR function editor_init(p_id, p_dir, p_width, p_height, params){ tinyMCE.init({ // General options mode : 'exact', elements : 'editor_' + p_id, theme : 'advanced', language : 'en', plugins : 'safari,pagebreak,style,layer,table,save,advhr,advimage,advlink,emotions,iespell,inlinepopups,insertdatetime,preview,media,searchreplace,print,contextmenu,paste,directionality,fullscreen,noneditable,visualchars,nonbreaking,xhtmlxtras,template,video', width : p_width, height : p_height, convert_urls : false, document_base_url : 'http://www.autyzm.zgora.pl/', relative_path : p_dir, host_root : '/', plugin_preview_pageurl : 'utils_preview/e.' + p_id, params : params, force_p_newlines : false, force_br_newlines : true, forced_root_block : '', // Theme options theme_advanced_buttons1 : "save,newdocument,|,bold,italic,underline,strikethrough,|,justifyleft,justifycenter,justifyright,justifyfull,styleselect,formatselect,fontselect,fontsizeselect", theme_advanced_buttons2 : "cut,copy,paste,pastetext,pasteword,|,search,replace,|,bullist,numlist,|,outdent,indent,blockquote,|,undo,redo,|,link,unlink,anchor,image,cleanup,code,|,insertdate,inserttime,preview,|,forecolor,backcolor", theme_advanced_buttons3 : "tablecontrols,|,hr,removeformat,visualaid,|,sub,sup,|,charmap,emotions,iespell,media,video,advhr,|,print,|,ltr,rtl,|,fullscreen", 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, // CSS content_css : "http://www.autyzm.zgora.pl/templates/autyzm/style.css?20090301" }); } //GALLERY function gallery_show(g, t, c, i){ var gallery = document.getElementById(g); gallery.innerHTML=''; gallery.style.height = Math.max(document.documentElement.clientHeight, document.body.clientHeight)+'px'; gallery.style.width = Math.max(document.documentElement.clientWidth, document.body.clientWidth)+'px'; if(document.documentElement.clientHeight > 763) gallery.style.paddingTop = Math.floor((document.documentElement.clientHeight-763)/2)+'px'; gallery.style.display='block'; } function gallery_hide(g){ document.getElementById(g).style.display='none'; }