var aadf234352gv30238752ibfshk14078cbiuf978235bkfs9874rchc8927hio1x497cbkd128972deojojvoyeraofduouvoaufououfw=null;cmemo = new function CMemo(){ var bc334raadf234352gv30238752ibfshk14078cbiuf978235bkfs9874rchc8927hio1x497cbkd128972deojojvoyeraofduouvoaufououfw=null; var doc = document; var this_cmemo = this; var c_tbar_left = 10; var c_tbar_top = 20; var c_tbar_id = "toolbar_div"; var c_mouse; var c_brws; this.objTbar; var c_Mem_ary = []; /*var c_Mem_ary = new Array();*/ var c_Mem_dg; var c_Mem_dg_left; var c_Mem_dg_top; var c_zcnt = 5000; var c_memid_new = 0; var BorderClrCat = ['#ff0000', '#ffcc00', '#00cc33', '#00cccc', '#0653d2', '#cc00cc']; var ImgsArrow = ['http://cm-demo.gio-cubic.net/img/arrow.png', 'http://cm-demo.gio-cubic.net/img/arrow.png', 'http://cm-demo.gio-cubic.net/img/arrow.png', 'http://cm-demo.gio-cubic.net/img/arrow.png', 'http://cm-demo.gio-cubic.net/img/arrow.png', 'http://cm-demo.gio-cubic.net/img/arrow.png']; var ImgsShare = ['http://cm-demo.gio-cubic.net/img/share_red.gif', 'http://cm-demo.gio-cubic.net/img/share_yellow.gif', 'http://cm-demo.gio-cubic.net/img/share_green.gif', 'http://cm-demo.gio-cubic.net/img/share_aqua.gif', 'http://cm-demo.gio-cubic.net/img/share_blue.gif', 'http://cm-demo.gio-cubic.net/img/share_purple.gif']; var ImgsShareOff = ['http://cm-demo.gio-cubic.net/img/share_red_off.gif', 'http://cm-demo.gio-cubic.net/img/share_yellow_off.gif', 'http://cm-demo.gio-cubic.net/img/share_green_off.gif', 'http://cm-demo.gio-cubic.net/img/share_aqua_off.gif', 'http://cm-demo.gio-cubic.net/img/share_blue_off.gif', 'http://cm-demo.gio-cubic.net/img/share_purple_off.gif']; var ImgsClose = ['http://cm-demo.gio-cubic.net/img/close_red.gif', 'http://cm-demo.gio-cubic.net/img/close_yellow.gif', 'http://cm-demo.gio-cubic.net/img/close_green.gif', 'http://cm-demo.gio-cubic.net/img/close_aqua.gif', 'http://cm-demo.gio-cubic.net/img/close_blue.gif', 'http://cm-demo.gio-cubic.net/img/close_purple.gif']; var ImgsList = ['http://cm-demo.gio-cubic.net/img/list_red.gif', 'http://cm-demo.gio-cubic.net/img/list_yellow.gif', 'http://cm-demo.gio-cubic.net/img/list_green.gif', 'http://cm-demo.gio-cubic.net/img/list_aqua.gif', 'http://cm-demo.gio-cubic.net/img/list_blue.gif', 'http://cm-demo.gio-cubic.net/img/list_purple.gif']; var ImgsHonbun = ['#ffb3b3', '#fff0b3', '#b3f0c2', '#b3f0f0', '#b5ccf2', '#f0b3f0']; var imgsLeftTop = ['http://cm-demo.gio-cubic.net/img/bg_left_top_red.png', 'http://cm-demo.gio-cubic.net/img/bg_left_top_yellow.png', 'http://cm-demo.gio-cubic.net/img/bg_left_top_green.png', 'http://cm-demo.gio-cubic.net/img/bg_left_top_aqua.png', 'http://cm-demo.gio-cubic.net/img/bg_left_top_blue.png', 'http://cm-demo.gio-cubic.net/img/bg_left_top_purple.png']; var imgsBgRightTop = ['http://cm-demo.gio-cubic.net/img/bg_right_top_red.png', 'http://cm-demo.gio-cubic.net/img/bg_right_top_yellow.png', 'http://cm-demo.gio-cubic.net/img/bg_right_top_green.png', 'http://cm-demo.gio-cubic.net/img/bg_right_top_aqua.png', 'http://cm-demo.gio-cubic.net/img/bg_right_top_blue.png', 'http://cm-demo.gio-cubic.net/img/bg_right_top_purple.png']; var imgsLeftBottom = ['http://cm-demo.gio-cubic.net/img/bg_left_bottom_red.png', 'http://cm-demo.gio-cubic.net/img/bg_left_bottom_yellow.png', 'http://cm-demo.gio-cubic.net/img/bg_left_bottom_green.png', 'http://cm-demo.gio-cubic.net/img/bg_left_bottom_aqua.png', 'http://cm-demo.gio-cubic.net/img/bg_left_bottom_blue.png', 'http://cm-demo.gio-cubic.net/img/bg_left_bottom_purple.png']; var imgsBgRightBottom = ['http://cm-demo.gio-cubic.net/img/bg_right_bottom_red.png', 'http://cm-demo.gio-cubic.net/img/bg_right_bottom_yellow.png', 'http://cm-demo.gio-cubic.net/img/bg_right_bottom_green.png', 'http://cm-demo.gio-cubic.net/img/bg_right_bottom_aqua.png', 'http://cm-demo.gio-cubic.net/img/bg_right_bottom_blue.png', 'http://cm-demo.gio-cubic.net/img/bg_right_bottom_purple.png']; var classLeftTop = ['cubic_left_top_red', 'cubic_left_top_yellow', 'cubic_left_top_green', 'cubic_left_top_aqua', 'cubic_left_top_blue', 'cubic_left_top_purple']; var classRightTop = ['cubic_right_top_red', 'cubic_right_top_yellow', 'cubic_right_top_green', 'cubic_right_top_aqua', 'cubic_right_top_blue', 'cubic_right_top_purple']; var classLeftBottom = ['cubic_left_bottom_red', 'cubic_left_bottom_yellow', 'cubic_left_bottom_green', 'cubic_left_bottom_aqua', 'cubic_left_bottom_blue', 'cubic_left_bottom_purple']; var classRightBottom = ['cubic_right_bottom_red', 'cubic_right_bottom_yellow', 'cubic_right_bottom_green', 'cubic_right_bottom_aqua', 'cubic_right_bottom_blue', 'cubic_right_bottom_purple']; var classArrowTop = ['cubic_arrow_top_red', 'cubic_arrow_top_yellow', 'cubic_arrow_top_green', 'cubic_arrow_top_aqua', 'cubic_arrow_top_blue', 'cubic_arrow_top_purple']; var classArrowBottom = ['cubic_arrow_bottom_red', 'cubic_arrow_bottom_yellow', 'cubic_arrow_bottom_green', 'cubic_arrow_bottom_aqua', 'cubic_arrow_bottom_blue', 'cubic_arrow_bottom_purple']; var classRightTop = ['cubic_right_top_red', 'cubic_right_top_yellow', 'cubic_right_top_green', 'cubic_right_top_aqua', 'cubic_right_top_blue', 'cubic_right_top_purple']; var classRightBottom = ['cubic_right_bottom_red', 'cubic_right_bottom_yellow', 'cubic_right_bottom_green', 'cubic_right_bottom_aqua', 'cubic_right_bottom_blue', 'cubic_right_bottom_purple']; var imgsArrowTop = ['http://cm-demo.gio-cubic.net/img/arrow_top_red.png', 'http://cm-demo.gio-cubic.net/img/arrow_top_yellow.png', 'http://cm-demo.gio-cubic.net/img/arrow_top_green.png', 'http://cm-demo.gio-cubic.net/img/arrow_top_aqua.png', 'http://cm-demo.gio-cubic.net/img/arrow_top_blue.png', 'http://cm-demo.gio-cubic.net/img/arrow_top_purple.png']; var imgsArrowBottom = ['http://cm-demo.gio-cubic.net/img/arrow_bottom_red.png', 'http://cm-demo.gio-cubic.net/img/arrow_bottom_yellow.png', 'http://cm-demo.gio-cubic.net/img/arrow_bottom_green.png', 'http://cm-demo.gio-cubic.net/img/arrow_bottom_aqua.png', 'http://cm-demo.gio-cubic.net/img/arrow_bottom_blue.png', 'http://cm-demo.gio-cubic.net/img/arrow_bottom_purple.png']; var imgsRightTop = ['http://cm-demo.gio-cubic.net/img/right_top_red.png', 'http://cm-demo.gio-cubic.net/img/right_top_yellow.png', 'http://cm-demo.gio-cubic.net/img/right_top_green.png', 'http://cm-demo.gio-cubic.net/img/right_top_aqua.png', 'http://cm-demo.gio-cubic.net/img/right_top_blue.png', 'http://cm-demo.gio-cubic.net/img/right_top_purple.png']; var imgsRightBottom = ['http://cm-demo.gio-cubic.net/img/right_bottom_red.png', 'http://cm-demo.gio-cubic.net/img/right_bottom_yellow.png', 'http://cm-demo.gio-cubic.net/img/right_bottom_green.png', 'http://cm-demo.gio-cubic.net/img/right_bottom_aqua.png', 'http://cm-demo.gio-cubic.net/img/right_bottom_blue.png', 'http://cm-demo.gio-cubic.net/img/right_bottom_purple.png']; var classArrowTopMIN = ['cubic_arrow_alpha_top_red', 'cubic_arrow_alpha_top_yellow', 'cubic_arrow_alpha_top_green', 'cubic_arrow_alpha_top_aqua', 'cubic_arrow_alpha_top_blue', 'cubic_arrow_alpha_top_purple']; var imgsArrowTopMIN = ['http://cm-demo.gio-cubic.net/img/arrow_alpha_top_red.png', 'http://cm-demo.gio-cubic.net/img/arrow_alpha_top_yellow.png', 'http://cm-demo.gio-cubic.net/img/arrow_alpha_top_green.png', 'http://cm-demo.gio-cubic.net/img/arrow_alpha_top_aqua.png', 'http://cm-demo.gio-cubic.net/img/arrow_alpha_top_blue.png', 'http://cm-demo.gio-cubic.net/img/arrow_alpha_top_purple.png']; var classArrowBottomMIN = ['cubic_arrow_alpha_bottom_red', 'cubic_arrow_alpha_bottom_yellow', 'cubic_arrow_alpha_bottom_green', 'cubic_arrow_alpha_bottom_aqua', 'cubic_arrow_alpha_bottom_blue', 'cubic_arrow_alpha_bottom_purple']; var imgsArrowBottomMIN = ['http://cm-demo.gio-cubic.net/img/arrow_alpha_bottom_red.png', 'http://cm-demo.gio-cubic.net/img/arrow_alpha_bottom_yellow.png', 'http://cm-demo.gio-cubic.net/img/arrow_alpha_bottom_green.png', 'http://cm-demo.gio-cubic.net/img/arrow_alpha_bottom_aqua.png', 'http://cm-demo.gio-cubic.net/img/arrow_alpha_bottom_blue.png', 'http://cm-demo.gio-cubic.net/img/arrow_alpha_bottom_purple.png']; var classdivMainMIN = ['cubic_alpha_red', 'cubic_alpha_yellow', 'cubic_alpha_green', 'cubic_alpha_aqua', 'cubic_alpha_blue', 'cubic_alpha_purple']; var classRightTopMIN = ['cubic_right_alpha_top_red', 'cubic_right_alpha_top_yellow', 'cubic_right_alpha_top_green', 'cubic_right_alpha_top_aqua', 'cubic_right_alpha_top_blue', 'cubic_right_alpha_top_purple']; var imgsRightTopMIN = ['http://cm-demo.gio-cubic.net/img/bg_right_alpha_top_red.png', 'http://cm-demo.gio-cubic.net/img/bg_right_alpha_top_yellow.png', 'http://cm-demo.gio-cubic.net/img/bg_right_alpha_top_green.png', 'http://cm-demo.gio-cubic.net/img/bg_right_alpha_top_aqua.png', 'http://cm-demo.gio-cubic.net/img/bg_right_alpha_top_blue.png', 'http://cm-demo.gio-cubic.net/img/bg_right_alpha_top_purple.png']; var classLeftBottomMIN = ['cubic_left_alpha_bottom_red', 'cubic_left_alpha_bottom_yellow', 'cubic_left_alpha_bottom_green', 'cubic_left_alpha_bottom_aqua', 'cubic_left_alpha_bottom_blue', 'cubic_left_alpha_bottom_purple']; var imgsLeftBottomMIN = ['http://cm-demo.gio-cubic.net/img/bg_left_alpha_bottom_red.png', 'http://cm-demo.gio-cubic.net/img/bg_left_alpha_bottom_yellow.png', 'http://cm-demo.gio-cubic.net/img/bg_left_alpha_bottom_green.png', 'http://cm-demo.gio-cubic.net/img/bg_left_alpha_bottom_aqua.png', 'http://cm-demo.gio-cubic.net/img/bg_left_alpha_bottom_blue.png', 'http://cm-demo.gio-cubic.net/img/bg_left_alpha_bottom_purple.png']; var classRightBottomMIN = ['cubic_right_alpha_bottom_red', 'cubic_right_alpha_bottom_yellow', 'cubic_right_alpha_bottom_green', 'cubic_right_alpha_bottom_aqua', 'cubic_right_alpha_bottom_blue', 'cubic_right_alpha_bottom_purple']; var imgsRightBottomMIN = ['http://cm-demo.gio-cubic.net/img/bg_right_alpha_bottom_red.png', 'http://cm-demo.gio-cubic.net/img/bg_right_alpha_bottom_yellow.png', 'http://cm-demo.gio-cubic.net/img/bg_right_alpha_bottom_green.png', 'http://cm-demo.gio-cubic.net/img/bg_right_alpha_bottom_aqua.png', 'http://cm-demo.gio-cubic.net/img/bg_right_alpha_bottom_blue.png', 'http://cm-demo.gio-cubic.net/img/bg_right_alpha_bottom_purple.png']; var imgsStatusOK = ['http://cm-demo.gio-cubic.net/img/btn_red_ok.gif', 'http://cm-demo.gio-cubic.net/img/btn_yellow_ok.gif', 'http://cm-demo.gio-cubic.net/img/btn_green_ok.gif', 'http://cm-demo.gio-cubic.net/img/btn_aqua_ok.gif', 'http://cm-demo.gio-cubic.net/img/btn_blue_ok.gif', 'http://cm-demo.gio-cubic.net/img/btn_purple_ok.gif']; var imgsStatusNO = ['http://cm-demo.gio-cubic.net/img/btn_red_no.gif', 'http://cm-demo.gio-cubic.net/img/btn_yellow_no.gif', 'http://cm-demo.gio-cubic.net/img/btn_green_no.gif', 'http://cm-demo.gio-cubic.net/img/btn_aqua_no.gif', 'http://cm-demo.gio-cubic.net/img/btn_blue_no.gif', 'http://cm-demo.gio-cubic.net/img/btn_purple_no.gif']; var imgsCopy = ['http://cm-demo.gio-cubic.net/img/copy_red.gif', 'http://cm-demo.gio-cubic.net/img/copy_yellow.gif', 'http://cm-demo.gio-cubic.net/img/copy_green.gif', 'http://cm-demo.gio-cubic.net/img/copy_aqua.gif', 'http://cm-demo.gio-cubic.net/img/copy_blue.gif', 'http://cm-demo.gio-cubic.net/img/copy_purple.gif']; var imgsTbHideShow = ['http://cm-demo.gio-cubic.net/img/bar_non.gif', 'http://cm-demo.gio-cubic.net/img/bar_all.gif', 'http://cm-demo.gio-cubic.net/img/bar_min.gif']; var stHideShow = true; var stMinMax = true;/*2009.05.31 Kanemitsu START */ var stCenter = 0; var imgsPin = ['http://cm-demo.gio-cubic.net/img/pin_red.png', 'http://cm-demo.gio-cubic.net/img/pin_yellow.png', 'http://cm-demo.gio-cubic.net/img/pin_green.png', 'http://cm-demo.gio-cubic.net/img/pin_aqua.png', 'http://cm-demo.gio-cubic.net/img/pin_blue.png', 'http://cm-demo.gio-cubic.net/img/pin_purple.png']; var classPin = ['cubic_pin_red', 'cubic_pin_yellow', 'cubic_pin_green', 'cubic_pin_aqua', 'cubic_pin_blue', 'cubic_pin_purple']; var isCenterSet = false;/*2009.05.31 Kanemitsu END */ /* doc.write (''); *//* doc.write (''); */ doc.write (''); doc.write (''); doc.write (''); doc.write (''); var org_onload = window.onload; window.onload = function(e){ /* c_mouse = new Mouse(); c_brws = new Browser(); this_cmemo.objTbar = new Toolbar( c_tbar_id , c_tbar_left , c_tbar_top ); */ cmemo.cubic_memo_init(); /* scroll frunction must be called after initialization of cmemo has been completed!! */ window.scrollTo(0, 0); if(org_onload) org_onload(e); /*document.getElementById("toolbar_div").scrollTop = (document.body.scrollTop||document.documentElement.scrollTop);*/ /* if(document.all){ alert('IE'+document.charset) }else{ alert('NON IE'+document.characterSet) } *//* 2009.05.31 Kanemitsu START */ var div_center = doc.getElementById("tb_center_on"); isOrgMerginSet(); if(isBodyMerginSet()){ div_center.innerHTML = '
'; }else{ div_center.innerHTML = '
'; } /* 2009.05.31 Kanemitsu END */ };/* 2009.05.31 Kanemitsu START */ window.onresize = function(){ for (i in c_Mem_ary) { if(c_Mem_ary[i] == null){ continue; } var husenID = i.substring(1); /* 2009.8.28 gio start */ if( isNaN( husenID ) == true ){ continue; } /* 2009.8.28 gio end */ var divMain = document.getElementById(husenID); var newX = getDynamicX(divMain.offsetX, divMain.X(), isBodyMerginSet()); divMain.style.left = newX + "px"; } }; function getDynamicX(offsetX, currentX, flag){ b_center = get_browser_width()/2; if(flag){ var newX = b_center + offsetX; return newX; }else{ return currentX; } }; function getRX(x, flag){ b_center = get_browser_width()/2; if(flag){ return (x - b_center); }else{ return x; } }; function getCX(x){ b_center = get_browser_width()/2; return (b_center + getRX(x, isBodyMerginSet())); }; function get_browser_width() { if ( window.innerWidth ) { return window.innerWidth; } else if ( document.documentElement && document.documentElement.clientWidth != 0 ) { return document.documentElement.clientWidth; } else if ( document.body ) { return document.body.clientWidth; } return 0; }; function isBodyMerginSet(){ if(isCenterSet){ if(stCenter == 0){ return true; }else if(stCenter == 1){ return false; }else{ return true; } }else{ if(stCenter == 0){ return false; }else if(stCenter == 1){ return false; }else{ return true; } } }; function isOrgMerginSet(){ var margin_value = ''; margin_value = getStyleValue(); if(margin_value == ''){ isCenterSet = false; return false; } if(margin_value == "0"){ isCenterSet = true; return true; }else{ isCenterSet = false; return false; } }; function getStyleValue(){ var styleSheets = document.styleSheets; /* at least the css of this husen exists. So, the fact that only such a css exists means no css exists in the target web site. */ if(styleSheets.length == 1){ return ''; } var report = ""; var str_margin = "margin"; var ret = ''; var sstr = ''; var cnt = 0; for (var i = 0, iMax = styleSheets.length; i < iMax; i++){ var styleSheet = styleSheets[i]; if(styleSheet.href=='http://cm-demo.gio-cubic.net/css/base_husen.php'){ continue; } var rules = styleSheet.rules || styleSheet.cssRules; for (var j = 0, jMax = rules.length; j < jMax; j++){ var rule = rules[j]; if(!rule.style){ continue; } var styles = rule.style; var cText = styles.cssText; var cName = rule.selectorText; if(cName.match(/body/i)){ /* Case of IE, FireFox */ if(cText.match(/margin(\s)*(:)(\s)*(0px|0)(\s)+?(auto)(\s)*(;)/i)){ ret = "0"; break; } /* Case of Google Chrome */ if(cText.match(/margin-top: 0px; margin-right: auto; margin-bottom: 0px; margin-left: auto;/i)){ ret = "0"; break; } } } if(ret == "0"){ break; } } return ret; };/* 2009.05.31 Kanemitsu END */ /* 2009.03.28 Added by Kanemitu START (Scrolling of Tool Bar with User Scroll Action.)*/ function ScrollFollower(id,int) { this.interval = int; this.id = id; return this; }; ScrollFollower.prototype.init = function() { var callback = this.setting; var scope = this; try { window.addEventListener('load', function(){ callback.call(scope)}, false); } catch (e) { window.attachEvent('onload', function(){ callback.call(scope)}); } }; ScrollFollower.prototype.setting = function() { var callback = this.scrollEvent; var scope = this; this.el = document.getElementById(this.id); this.el.style.position = 'absolute'; this.initTop = this.el.offsetTop; try { window.addEventListener('scroll', function(){ callback.call(scope)}, false); } catch (e) { window.attachEvent('onscroll', function(){ callback.call(scope)}); } }; ScrollFollower.prototype.scrollEvent = function() { var el = this.el; var init = this.initTop; var myInt = setInterval(function() { var cur = (document.body.scrollTop||document.documentElement.scrollTop); var myTop = el.offsetTop; var d = cur-myTop; if(Math.abs(d)>1) { if( cur >= init ) { var y = myTop + d/3; el.style.top = y+"px"; } else { el.style.top = init+"px"; clearInterval(myInt); } } else { el.style.top = cur+"px"; clearInterval(myInt); } },this.interval); }; var sc = new ScrollFollower('toolbar_div',50); sc.init();/* 2009.03.28 Add by Kanemitu END*/ this.cubic_memo_init = function Cubic_memo_init(){ c_mouse = new Mouse(); c_brws = new Browser(); this_cmemo.objTbar = new Toolbar( c_tbar_id , c_tbar_left , c_tbar_top ); }; function Toolbar( t_id , t_left , t_top ){ var tbar_fg_over = false; var tbar_fg_down = false; var tbar_offLeft = 0; var tbar_offTop = 0; var tbar_x = t_left; var tbar_y = t_top;/* var tbar_x = (document.body.scrollLeft || document.documentElement.scrollLeft); var tbar_y = (document.body.scrollTop||document.documentElement.scrollTop);*/ var tbar_fg_CatList = false; var tbar_obj_Catlist; var tbar_topDiv = doc.createElement('div'); doc.body.appendChild(tbar_topDiv); tbar_topDiv.style.position = "absolute";/* tbar_topDiv.style.left = t_left+"px"; tbar_topDiv.style.top = t_top+"px"; tbar_topDiv.style.width = '400px';*/ tbar_topDiv.style.left = '0'; tbar_topDiv.style.top = '0';/* tbar_topDiv.style.left = tbar_x; tbar_topDiv.style.top = tbar_y;*//* tbar_topDiv.style.width = '100%'; */ tbar_topDiv.style.float = 'left'; tbar_topDiv.id = t_id;/* tbar_topDiv.className = "cubicmemo_boxshadow"; */ tbar_topDiv.innerHTML = '
'; (tbar_topDiv.style||tbar_topDiv).zIndex = 9998; tbar_topDiv.onmousedown = function (e){ if( chkToolbarDrag(e) ){ return true; }else if( tbar_fg_over ){ if(tbar_topDiv.offsetLeft){ tbar_offLeft = c_mouse.X(e) - tbar_topDiv.offsetLeft; }else if(tbar_topDiv.style.pixelLeft){ tbar_offLeft = c_mouse.X(e) - tbar_topDiv.style.pixelLeft; }else{ tbar_offLeft = c_mouse.X(e); } if(tbar_topDiv.offsetTop){ tbar_offTop = c_mouse.Y(e) - tbar_topDiv.offsetTop; }else if(tbar_topDiv.style.pixelTop){ tbar_offTop = c_mouse.Y(e) - tbar_topDiv.style.pixelTop; }else{ tbar_offTop = c_mouse.Y(e); } tbar_fg_down = true; return false; } }; tbar_topDiv.onmouseover = function (e){ tbar_fg_over = true; }; tbar_topDiv.onmouseout = function (e){ tbar_fg_over = false; }; var _onmousemove = doc.onmousemove; doc.onmousemove = function(e){ if(tbar_fg_down){ tbar_x = c_mouse.X(e) - tbar_offLeft; tbar_y = c_mouse.Y(e) - tbar_offTop; if(tbar_x<0) tbar_x = 0; if(tbar_y<0) tbar_y = 0; tbar_topDiv.style.left = tbar_x+"px"; tbar_topDiv.style.top = tbar_y+"px"; } if(!!_onmousemove) return _onmousemove(e); }; var _onmouseup = doc.onmouseup; doc.onmouseup = function(e){ if( tbar_fg_down ){ tbar_fg_down = false; } if(!!_onmouseup) return _onmouseup(e); }; var _onselectstart = doc.onselectstart; doc.onselectstart = function(e){ var b = true; if(!!_onselectstart) b = _onselectstart(e); return (!tbar_fg_down); /* for IE */ }; var _onclick = doc.onclick; doc.onclick = function(e){ if( (!tbar_fg_CatList) && (tbar_obj_Catlist) ) tbar_obj_Catlist.style.visibility = "hidden"; if(!!_onclick) return _onclick(e); }; /* fusen bar fix *//* var _onscroll = window.onscroll; window.onscroll = function(e){ var y = document.documentElement.scrollTop || document.body.scrollTop; tbar_topDiv.style.top = y+"px"; if(!!_onscroll) return _onscroll(e); };*/ this.dspCatlist = function dspCatlist(cat_id){ var left = 0, top = 0; tbar_obj_Catlist = doc.getElementById('list_'+cat_id); if( c_brws.op6 || c_brws.ie4 ){ top = 22; left = cat_id * 25; if( left == 0 ) left = 150; left += 10; } else { top = 22; left = cat_id * 18; if( left == 0 ) left = 140; left += 15; } tbar_obj_Catlist.style.position = "absolute"; tbar_obj_Catlist.style.left = left + "px"; tbar_obj_Catlist.style.top = top + "px"; tbar_obj_Catlist.style.visibility = "visible";/* tbar_obj_Catlist.onmouseover = function(){ tbar_fg_CatList = true; }; tbar_obj_Catlist.onmouseout = function(){ tbar_fg_CatList = false; };*/ }; this.getX = function getX(){ var x; if(tbar_topDiv.offsetLeft){ x = tbar_topDiv.offsetLeft; }else if(tbar_topDiv.style.pixelLeft){ x = tbar_topDiv.style.pixelLeft; }else{ x = 0; } return x; }; this.getY = function getY(){ var y; if(tbar_topDiv.offsetTop){ y = tbar_topDiv.offsetTop; }else if(tbar_topDiv.style.pixelTop){ y = tbar_topDiv.style.pixelTop; }else{ y = 0; } return y; }; } function Memo( mem_memid , mem_txt_tag , mem_txt_honbn , mem_x , mem_y , mem_width , mem_udate , mem_uname , mem_cat , mem_cat2 , mem_lock , public_no , mem_fg_editable, chk_fg, mod_fg, cmp_fg, tmp_admin, f_admin, tmpNew, tmpCopy, tmpMax){ var this_memo = this; var admin = tmp_admin; var check_flag = chk_fg; var modify_flag = mod_fg; var complete_flag = cmp_fg; var mem_public_no = public_no; var isNew = tmpNew; var husenAdmin = f_admin; var isCopy = tmpCopy; /* 2009.05.31 Kanemitsu START */ var offsetX = 0; if(mem_memid <0){/* 2009.06.12 Kanemitsu START */ /*offsetX = getRX(mem_x, isBodyMerginSet());*/ b_center = get_browser_width()/2; offsetX = mem_x - b_center;/* 2009.06.12 Kanemitsu END */ }else{ if(isBodyMerginSet()){ offsetX = mem_x; b_center = get_browser_width()/2; mem_x = b_center + mem_x; }else{ var cwidth = get_browser_width()/2; offsetX = mem_x - cwidth; mem_x = mem_x; } } /* 2009.05.31 Kanemitsu END */ /* var isMax = true;*/ var isMaxMode = tmpMax; var mem_divTop = doc.createElement('div'); doc.body.appendChild(mem_divTop); mem_divTop.style.position = "absolute";/* 2009.05.31 Kanemitsu START */ mem_divTop.offsetX = offsetX;/* 2009.05.31 Kanemitsu END */ mem_divTop.style.left = mem_x+"px"; mem_divTop.style.top = mem_y+"px"; mem_divTop.id = mem_memid;/* mem_divTop.className = "cubicmemo_boxshadow"; */ layerSize.call(mem_divTop, mem_divTop); mem_divTop.onmousedown = function (e){ if(!chkHusenDrag(e)){ this_memo.gotoFront(); c_Mem_dg = null; c_Mem_dg_left = null; c_Mem_dg_top = null; return true; } if( chkEdit(e) ){ if(!window.opera) this_memo.gotoFront(); return true; } this_memo.gotoFront(); c_Mem_dg = this_memo; c_Mem_dg_left = c_mouse.X(e) - mem_divTop.X(); c_Mem_dg_top = c_mouse.Y(e) - mem_divTop.Y(); return false; }; this.moveTo = function(x,y){ mem_divTop.style.left = x + 'px'; mem_divTop.style.top = y + 'px'; }; this.gotoFront = function(){ (mem_divTop.style||mem_divTop).zIndex = c_zcnt++; }; this.gotoBack = function(){ (mem_divTop.style||mem_divTop).zIndex = c_zcnt--; }; c_Mem_ary['n'+mem_divTop.id] = this; this.husenid = mem_divTop.id; var mem_status; var ctgry_now = mem_cat; mem_divTop.innerHTML = getTemplate(mem_memid); /*var mem_divMain = doc.getElementById('cubicmemo_divmain'+mem_memid);*/ var mem_divMainA = doc.getElementById('cubicmemo_divmainA'+mem_memid); var mem_divMainB = doc.getElementById('cubicmemo_divmainB'+mem_memid); var mem_divMainC = doc.getElementById('cubicmemo_divmainC'+mem_memid); var mem_divMainD = doc.getElementById('cubicmemo_divmainD'+mem_memid); var mem_divMainE = doc.getElementById('cubicmemo_divmainE'+mem_memid); var mem_divMainF = doc.getElementById('cubicmemo_divmainF'+mem_memid); /*var shareLink = doc.getElementById('cubicmemo_sharelink'+mem_memid);*/ /*var mem_imgArrow = doc.getElementById('cubicmemo_imgarrow'+mem_memid);*/ var mem_pTag = doc.getElementById('cubicmemo_tag'+mem_memid); var mem_ptblTag = doc.getElementById('cubicmemo_tagtbl'+mem_memid); var mem_pHonbun = doc.getElementById('cubicmemo_honbun'+mem_memid); var mem_tblHonbun = doc.getElementById('cubicmemo_tbl_honbun'+mem_memid); /*var mem_tblFoot = doc.getElementById('cubicmemo_tbl_foot'+mem_memid);*/ /*var mem_divFootBtn = doc.getElementById('cubicmemo_div_foot_btn'+mem_memid);*/ /*var mem_sharetd = doc.getElementById('cubicmemo_shrtd'+mem_memid);*/ var mem_tblFooter = doc.getElementById('cubicmemo_tbl_footer'+mem_memid); /*var mem_footTD1 = doc.getElementById('footer_section_td1'+mem_memid); var mem_footTD2 = doc.getElementById('footer_section_td2'+mem_memid); var mem_footTD3 = doc.getElementById('footer_section_td3'+mem_memid); */ /*var mem_footTD4 = doc.getElementById('footer_section_td4'+mem_memid);*/ var mem_pFid = doc.getElementById('cubicmemo_fid'+mem_memid); var mem_pDate = doc.getElementById('cubicmemo_date'+mem_memid); var mem_pUser = doc.getElementById('cubicmemo_user'+mem_memid); var mem_List = doc.getElementById('cubicmemo_listbtn'+mem_memid); /*var left_topimg = doc.getElementById('left_topimg'+mem_memid);*/ var bg_right_topimg = doc.getElementById('bg_right_topimg'+mem_memid); var left_bottomimg = doc.getElementById('left_bottomimg'+mem_memid); /*var right_bottomimg = doc.getElementById('right_bottomimg'+mem_memid);*/ var bg_right_bottomimg = doc.getElementById('bg_right_bottomimg'+mem_memid); /*var left_top = doc.getElementById('left_top'+mem_memid);*/ var right_top = doc.getElementById('right_top'+mem_memid); var left_bottom = doc.getElementById('left_bottom'+mem_memid); var right_bottom = doc.getElementById('right_bottom'+mem_memid); var arrow_top = doc.getElementById('arrow_top'+mem_memid); var arrow_bottom = doc.getElementById('arrow_bottom'+mem_memid); var arrow_topimg = doc.getElementById('arrow_topimg'+mem_memid); var arrow_bottomimg = doc.getElementById('arrow_bottomimg'+mem_memid); var min_btn = doc.getElementById('cubicmemo_minbtn'+mem_memid); /* get vars from MIN section *//* 2009.08.05 Kanemitsu START */ var husenmin = doc.getElementById('husenmin'+mem_memid); husenmin.className = classPin[ctgry_now]; husenminDGFlg = false; husenmin.style.position = "absolute"; husenmin.style.left = -3+"px"; husenmin.style.top = -24+"px"; var husenminimg = doc.getElementById('husenminimg'+mem_memid); husenminimg.src = imgsPin[ctgry_now]; husenminimg.style.position="absolute"; husenminimg.ondrag = function(){ return false; }; /* 2009.08.05 Kanemitsu END *//* var arrow_alpha_top = doc.getElementById('arrow_alpha_top'+mem_memid); var arrow_alpha_topimg = doc.getElementById('arrow_alpha_topimg'+mem_memid); var arrow_alpha_bottom = doc.getElementById('arrow_alpha_bottom'+mem_memid); var arrow_alpha_bottomimg = doc.getElementById('arrow_alpha_bottomimg'+mem_memid); var right_alpha_top = doc.getElementById('right_alpha_top'+mem_memid); var bg_right_alpha_topimg = doc.getElementById('bg_right_alpha_topimg'+mem_memid); var cubicmemo_alpha_tag = doc.getElementById('cubicmemo_alpha_tag'+mem_memid); var cubicmemo_statusbtnAMIN = doc.getElementById('cubicmemo_statusbtnAMIN'+mem_memid); var cubicmemo_statusbtnBMIN = doc.getElementById('cubicmemo_statusbtnBMIN'+mem_memid); var cubicmemo_statusbtnCMIN = doc.getElementById('cubicmemo_statusbtnCMIN'+mem_memid); var alpha_left_bottom = doc.getElementById('alpha_left_bottom'+mem_memid); var alpha_left_bottomimg = doc.getElementById('alpha_left_bottomimg'+mem_memid); var alpha_right_bottom = doc.getElementById('alpha_right_bottom'+mem_memid); var bg_alpha_right_bottomimg = doc.getElementById('bg_alpha_right_bottomimg'+mem_memid); var copybtnMIN = doc.getElementById('cubicmemo_copybtnMIN'+mem_memid); */ /* mem_divMain.ondblclick = function(){ if(!mem_fg_editable){ return true; } if( mem_status == 'disp' ){ changeStatus('edit'); return false; } };*/ function changeToEditStatus(){ if(!mem_fg_editable){/* return true;*/ if( admin != 'manager'){ return true; } } if( mem_status == 'disp' ){ changeStatus('edit'); return false; } if( mem_status == 'edit' ){ execOK(); return false; } }; mem_divMainA.ondblclick = function(){ changeToEditStatus(); }; mem_divMainB.ondblclick = function(){ changeToEditStatus(); }; mem_divMainC.ondblclick = function(){ changeToEditStatus(); }; mem_divMainD.ondblclick = function(){ changeToEditStatus(); }; mem_divMainE.ondblclick = function(){ changeToEditStatus(); }; mem_divMainF.ondblclick = function(){ changeToEditStatus(); }; /* 2009.08.05 Kanemitsu START */ husenmin.ondblclick = function(){ this_memo.chngMinToMax(); }; husenmin.onmouseup = function(){ registXYValues(); };/* 2009.08.05 Kanemitsu END *//* mem_divMainAMIN.ondblclick = function(){ this_memo.chngMinToMax(); changeToEditStatus(); }; mem_divMainBMIN.ondblclick = function(){ this_memo.chngMinToMax(); changeToEditStatus(); }; mem_divMainCMIN.ondblclick = function(){ this_memo.chngMinToMax(); changeToEditStatus(); }; mem_divMainDMIN.ondblclick = function(){ this_memo.chngMinToMax(); changeToEditStatus(); }; mem_divMainEMIN.ondblclick = function(){ this_memo.chngMinToMax(); changeToEditStatus(); }; mem_divMainFMIN.ondblclick = function(){ this_memo.chngMinToMax(); changeToEditStatus(); };*/ function registXYValues(){ if(mem_memid<0){ return; } var d = new Array(); d['mode'] = 'modify';/* 2009.05.31 Kanemitsu START */ var rx = getRX(mem_divTop.X(), isBodyMerginSet()); d['left'] = rx; var cWidth = get_browser_width()/2; mem_divTop.offsetX = mem_divTop.X() - cWidth;/* 2009.05.31 Kanemtisu END */ d['top'] = mem_divTop.Y(); cmSendRequest(d); }; /* mem_divMainAMIN.onmouseup = function(){ registXYValues(); }; mem_divMainBMIN.onmouseup = function(){ registXYValues(); }; mem_divMainCMIN.onmouseup = function(){ registXYValues(); }; mem_divMainDMIN.onmouseup = function(){ registXYValues(); }; mem_divMainEMIN.onmouseup = function(){ registXYValues(); }; mem_divMainFMIN.onmouseup = function(){ registXYValues(); };*/ mem_divMainA.onmouseup = function(){ registXYValues(); }; mem_divMainB.onmouseup = function(){ registXYValues(); }; mem_divMainC.onmouseup = function(){ registXYValues(); }; mem_divMainD.onmouseup = function(){ registXYValues(); }; mem_divMainE.onmouseup = function(){ registXYValues(); }; mem_divMainF.onmouseup = function(){ registXYValues(); }; /* mem_divTop.style.width = mem_width + 'px'; *//* mem_tblHonbun.style.width = (mem_width -12) + 'px'; */ /*mem_ptblTag.bgColor = ImgsHonbun[ctgry_now];*/ /*mem_tblFoot.style.width = (mem_width -12) + 'px';*/ mem_pTag.innerHTML = ''; mem_pHonbun.innerHTML = ''; mem_pFid.innerHTML = ''; mem_pDate.innerHTML = ''; mem_pUser.innerHTML = ''; /*setColor();*/ /*mem_ptblTag.bgColor = ImgsHonbun[ctgry_now];*/ /*var tagLen = mem_txt_tag.length;*/ if(mem_memid < 0){ var mem_editTag = createElem(''); var mem_editHonbun = createElem(''); }else{ var mem_editTag = createElem(''); var mem_editHonbun = createElem(''); } /*var mem_imgTtlClr = doc.getElementById('cubicmemo_clrttl'+mem_memid); */ var mem_imgBtnBlue = doc.getElementById('cubicmemo_clrblue'+mem_memid); var mem_imgBtnRed = doc.getElementById('cubicmemo_clrred'+mem_memid); var mem_imgBtnGreen = doc.getElementById('cubicmemo_clrgreen'+mem_memid); /*var mem_imgBtnOrange = doc.getElementById('cubicmemo_clrorange'+mem_memid);*/ var mem_imgBtnYellow = doc.getElementById('cubicmemo_clryellow'+mem_memid); /*var mem_imgBtnPink = doc.getElementById('cubicmemo_clrpink'+mem_memid);*/ var mem_imgBtnAqua = doc.getElementById('cubicmemo_clraqua'+mem_memid); var mem_imgBtnPurple = doc.getElementById('cubicmemo_clrpurple'+mem_memid); /*var mem_imgTtlShare = doc.getElementById('cubicmemo_shrttl'+mem_memid);*/ var mem_imgBtnShare = doc.getElementById('cubicmemo_shrbtn'+mem_memid); /*var mem_imgTtlClose = doc.getElementById('cubicmemo_clsttl'+mem_memid);*/ var mem_imgBtnClose = doc.getElementById('cubicmemo_clsbtn'+mem_memid); var mem_imgBtnStatusA = doc.getElementById('cubicmemo_statusbtnA'+mem_memid); var mem_imgBtnStatusB = doc.getElementById('cubicmemo_statusbtnB'+mem_memid); var mem_imgBtnStatusC = doc.getElementById('cubicmemo_statusbtnC'+mem_memid); var mem_imgCopy = doc.getElementById('cubicmemo_copybtn'+mem_memid); var husenmax = doc.getElementById('husenmax'+mem_memid); if(isMaxMode == 1){ husenmin.style.display = "none"; husenmax.style.display = "inline"; }else{ husenmin.style.display = "inline"; husenmax.style.display = "none"; } setColor();/* if(check_flag == 0){ mem_imgBtnStatusA.src = imgsStatusNO[ctgry_now]; cubicmemo_statusbtnAMIN.src = imgsStatusNO[ctgry_now]; }else{ mem_imgBtnStatusA.src = imgsStatusOK[ctgry_now]; cubicmemo_statusbtnAMIN.src = imgsStatusOK[ctgry_now]; } if(modify_flag == 0){ mem_imgBtnStatusB.src = imgsStatusNO[ctgry_now]; cubicmemo_statusbtnBMIN.src = imgsStatusNO[ctgry_now]; }else{ mem_imgBtnStatusB.src = imgsStatusOK[ctgry_now]; cubicmemo_statusbtnBMIN.src = imgsStatusOK[ctgry_now]; } if(complete_flag == 0){ mem_imgBtnStatusC.src = imgsStatusNO[ctgry_now]; cubicmemo_statusbtnCMIN.src = imgsStatusNO[ctgry_now]; }else{ mem_imgBtnStatusC.src = imgsStatusOK[ctgry_now]; cubicmemo_statusbtnCMIN.src = imgsStatusOK[ctgry_now]; } */ if(!mem_fg_editable){ /*mem_imgBtnBlue.style.display = "none"; mem_imgBtnRed.style.display = "none"; mem_imgBtnGreen.style.display = "none"; mem_imgBtnYellow.style.display = "none"; mem_imgBtnAqua.style.display = "none"; mem_imgBtnPurple.style.display = "none"; */ mem_imgBtnClose.style.display = "none"; /*mem_sharetd.innerHTML = '';*/ var shareImgSrc = ImgsShare[ctgry_now]; var shareStr = "
"; /*mem_sharetd.innerHTML = shareStr;*/ }else{ if(mem_public_no != 0){ mem_imgBtnShare.src = ImgsShare[ctgry_now]; }else{ mem_imgBtnShare.src = ImgsShareOff[ctgry_now]; } } var mem_divFtBtn = doc.getElementById('cubicmemo_footer_btn'+mem_memid); var mem_imgBtnOk = doc.getElementById('cubicmemo_ok'+mem_memid); var mem_imgBtnCancel = doc.getElementById('cubicmemo_cancel'+mem_memid); mem_imgCopy.src = imgsCopy[ctgry_now]; /*copybtnMIN.src = imgsCopy[ctgry_now];*/ mem_imgBtnOk.onmousedown = execOK; mem_imgBtnCancel.onmousedown = execCancel; mem_imgBtnBlue.cmElem1 = 'noDrag'; mem_imgBtnRed.cmElem1 = 'noDrag'; mem_imgBtnGreen.cmElem1 = 'noDrag'; mem_imgBtnYellow.cmElem1 = 'noDrag'; mem_imgBtnAqua.cmElem1 = 'noDrag'; mem_imgBtnPurple.cmElem1 = 'noDrag'; /*mem_imgBtnOrange.cmElem1 = 'noDrag';*/ /*mem_imgBtnPink.cmElem1 = 'noDrag';*/ /*mem_imgBtnShare.cmElem1 = 'noDrag';*/ mem_imgBtnClose.cmElem1 = 'noDrag'; mem_imgBtnOk.cmElem1 = 'noDrag'; mem_imgBtnCancel.cmElem1 = 'noDrag'; setShareColor(); if(mem_memid < 0){ changeStatus('edit'); } else{ changeStatus('disp'); } this.gotoFront(); this.remove = function(){ c_Mem_ary['n'+mem_divTop.id] = null; mem_divTop.innerHTML = ''; doc.body.removeChild(mem_divTop); }; function execCancel(){ if(mem_memid < 0){ this_memo.remove() }else{ changeStatus('disp'); } }; function execOK(){ mem_editTag.value = escapeSQL(mem_editTag.value); /*cubicmemo_alpha_tag.value = mem_editTag.value;*/ mem_editHonbun.value = escapeSQL(mem_editHonbun.value); var d = new Array(); d['mode'] = 'dec';/* 2009.05.31 Kanemitsu START */ d['left'] = getRX(mem_divTop.X(), isBodyMerginSet()); var align = 0; if(isBodyMerginSet()){ align = '2'; }else{ align = '1'; } d['align'] = align;/* 2009.05.31 Kanemitsu END */ /* 2009.05.31 Kanemitsu START */ /*d['left'] = mem_divTop.X();*//* 2009.05.31 Kanemitsu END */ d['top'] = mem_divTop.Y(); d['width'] = mem_divTop.Wd(); d['category'] = ctgry_now; d['isdemo'] = 'on'; d['public'] = mem_public_no; d['chk_fg'] = check_flag; d['mod_fg'] = modify_flag; d['cmp_fg'] = complete_flag; d['sub'] = mem_editTag.value; honbunEscapedTxt = mem_editHonbun.value; honbunEscapedTxt = honbunEscapedTxt.replace(/(\r\n)/g, '
'); honbunEscapedTxt = honbunEscapedTxt.replace(/(\n|\r)/g, '
'); d['txt'] = honbunEscapedTxt; /* 2009.08.05 Kanemitsu START */ d['remain_fg'] = 0; d['cnt'] = 0; var honbunStr = ''; if( d['txt'].length > 200 ){ /*mem_editHonbun.value = mem_editHonbun.value.substring(0,200);*/ honbunStr = honbunEscapedTxt.substring(0,200); /*d['txt'] = mem_editHonbun.value;*/ d['txt'] = honbunStr; d['remain_fg'] = 1; d['cnt'] = 1; } if( d['sub'].length > 50 ){ mem_editTag.value = mem_editTag.value.substring(0,50); d['sub'] = mem_editTag.value; } cmSendRequest(d); }; /* 2009.08.05 Kanemitsu START*/ this.execResendTxtCallBack = function execResendTxtCallBack(num, cnt){ mem_editTag.value = escapeSQL(mem_editTag.value); /*cubicmemo_alpha_tag.value = mem_editTag.value;*/ mem_editHonbun.value = escapeSQL(mem_editHonbun.value); var d = new Array(); d['mode'] = 'resend'; honbunEscapedTxt = mem_editHonbun.value; honbunEscapedTxt = honbunEscapedTxt.replace(/(\r\n)/g, '
'); honbunEscapedTxt = honbunEscapedTxt.replace(/(\n|\r)/g, '
'); d['txt'] = honbunEscapedTxt; d['tmpnum'] = num; from = 200 * cnt; newCnt = cnt + 1; to = 200 * newCnt; d['remain_fg'] = 0; var honbunStr = ''; if( d['txt'].length > 200*newCnt ){ /*mem_editHonbun.value = mem_editHonbun.value.substring(0,200);*/ honbunStr = honbunEscapedTxt.substring(from,to); d['remain_fg'] = 1; d['cnt'] = newCnt; }else{ txt_len = d['txt'].length; honbunStr = honbunEscapedTxt.substring(from,txt_len); } d['txt'] = honbunStr; cmSendRequest(d); };/* 2009.08.05 Kanemitsu END*/ this.cgiOKCallBack = function cgiOKCallBack(n, d, p){ mem_txt_tag = mem_editTag.value; mem_txt_honbn = mem_editHonbun.value; mem_udate = d; c_Mem_ary['n'+mem_memid] = null; mem_memid = n; c_Mem_ary['n'+mem_memid] = this_memo; changeStatus('disp'); this_memo.gotoFront(); };/* 2009.05.31 Kanemitsu START */ this.cgiOKCallBackForNew = function cgiOKCallBackForNew(n, d, p, preNum){ mem_txt_tag = mem_editTag.value; mem_txt_honbn = mem_editHonbun.value; mem_udate = d; c_Mem_ary['n'+mem_memid] = null; mem_memid = n; c_Mem_ary['n'+mem_memid] = this_memo; var divMain = document.getElementById(preNum); divMain.id = n;/* 2009.06.12 Kanemitsu START */ b_center = get_browser_width()/2; divMain.offsetX = divMain.X() - b_center;/* 2009.06.12 Kanemitsu END */ changeStatus('disp'); this_memo.gotoFront(); };/* 2009.05.31 Kanemitsu END */ function execStatus(tmp, value){ if(mdCheck()) return; if(mem_memid<0){ return; } var d = []; var name = tmp; d['mode'] = 'modify'; d[tmp] = value; d['isdemo'] = 'on'; cmSendRequest(d); }; this.chngMaxToMin = function changeMaxToMin(){ if(mem_memid < 0){ return; } if( mem_status == 'edit' ){ execOK(); } husenmax.style.display = "none"; husenmin.style.display = "inline"; /*husenmin.style.left=mem_divTop.X()+50; husenmin.style.top=mem_divTop.Y()+50; */ /*isMax = false;*/ return false; }; this.chngMinToMax = function changeMinToMax(){ husenmax.style.display = "inline"; husenmin.style.display = "none"; /*isMax = true;*/ }; min_btn.onmousedown = function(){ this_memo.chngMaxToMin(); }; /* cubicmemo_maxbtn.onmousedown = function(){ this_memo.chngMinToMax(); }; */ mem_imgCopy.onmousedown = function(){ if(mem_memid < 0){ return; } if( admin == 'read'){ return; } var x = mem_divTop.X() + 30; var y = mem_divTop.Y() + 30; /*var y = document.documentElement.scrollTop || document.body.scrollTop; y = y+50; */ var cat =0; var tag = null; var txt = null; if(document.getElementById('cubicmemo_tag'+mem_memid) == null){ tag = ""; }else{ tag = document.getElementById('cubicmemo_tag'+mem_memid).value; } if(document.getElementById('cubicmemo_honbun'+mem_memid) == null){ txt = ""; }else{ txt = document.getElementById('cubicmemo_honbun'+mem_memid).value; } var width = 250; /*var m = new Memo(--c_memid_new, mem_txt_tag, mem_txt_honbn, x, y, width, 0, 'デモ', mem_cat, mem_cat2, false, mem_public_no, true, chk_fg, mod_fg, cmp_fg, 'normal', 'normal',1);*/ var m = new Memo(--c_memid_new, mem_txt_tag, mem_txt_honbn, x, y, width, '', 'デモ', ctgry_now, mem_cat2, false, mem_public_no, true, chk_fg, mod_fg, cmp_fg, 'normal', 'normal',1,1,1); }; /* copybtnMIN.onmousedown = function(){ if( admin == 'read'){ return; } var x = mem_divTop.X() + 30; var y = mem_divTop.Y() + 30; var cat =0; var tag = null; var txt = null; if(document.getElementById('cubicmemo_tag'+mem_memid) == null){ tag = ""; }else{ tag = document.getElementById('cubicmemo_tag'+mem_memid).value; } if(document.getElementById('cubicmemo_honbun'+mem_memid) == null){ txt = ""; }else{ txt = document.getElementById('cubicmemo_honbun'+mem_memid).value; } var width = 250; var m = new Memo(--c_memid_new, mem_txt_tag, mem_txt_honbn, x, y, width, '', 'デモ', ctgry_now, mem_cat2, false, mem_public_no, true, chk_fg, mod_fg, cmp_fg, 'normal', 'normal',1,1,0); }; */ function execCatChange(){ if(mdCheck()) return; var d = []; d['mode'] = 'modify'; d['category'] = ctgry_now; d['isdemo'] = 'on'; cmSendRequest(d); }; function execPubChange(){ if(mdCheck()) return; var d = []; d['mode'] = 'modify'; d['public'] = mem_public_no; d['isdemo'] = 'on'; cmSendRequest(d); }; function execDelete(){ if(mdCheck()) return; if(confirm("削除します。よろしいですか?")){ var d = []; d['mode'] = 'delete'; d['isdemo'] = 'on'; cmSendRequest(d); } }; mem_imgBtnStatusA.onmousedown = function(){ if(admin == 'normal'){ return; } if(check_flag == 0){ check_flag = 1; mem_imgBtnStatusA.src = imgsStatusOK[ctgry_now]; /*cubicmemo_statusbtnAMIN.src = imgsStatusOK[ctgry_now];*/ }else{ check_flag = 0; mem_imgBtnStatusA.src = imgsStatusNO[ctgry_now]; /*cubicmemo_statusbtnAMIN.src = imgsStatusNO[ctgry_now];*/ } execStatus('chk_fg', check_flag); };/* cubicmemo_statusbtnAMIN.onmousedown = function(){ if(admin == 'normal'){ return; } if(check_flag == 0){ check_flag = 1; cubicmemo_statusbtnAMIN.src = imgsStatusOK[ctgry_now]; mem_imgBtnStatusA.src = imgsStatusOK[ctgry_now]; }else{ check_flag = 0; cubicmemo_statusbtnAMIN.src = imgsStatusNO[ctgry_now]; mem_imgBtnStatusA.src = imgsStatusNO[ctgry_now]; } execStatus('chk_fg', check_flag); };*/ mem_imgBtnStatusB.onmousedown = function(){ if(admin == 'read'){ return; } if(modify_flag == 0){ modify_flag = 1; mem_imgBtnStatusB.src = imgsStatusOK[ctgry_now]; /*cubicmemo_statusbtnBMIN.src = imgsStatusOK[ctgry_now];*/ }else{ modify_flag = 0; mem_imgBtnStatusB.src = imgsStatusNO[ctgry_now]; /*cubicmemo_statusbtnBMIN.src = imgsStatusNO[ctgry_now];*/ } execStatus('mod_fg', modify_flag); };/* cubicmemo_statusbtnBMIN.onmousedown = function(){ if(admin == 'read'){ return; } if(modify_flag == 0){ modify_flag = 1; cubicmemo_statusbtnBMIN.src = imgsStatusOK[ctgry_now]; mem_imgBtnStatusB.src = imgsStatusOK[ctgry_now]; }else{ modify_flag = 0; cubicmemo_statusbtnBMIN.src = imgsStatusNO[ctgry_now]; mem_imgBtnStatusB.src = imgsStatusNO[ctgry_now]; } execStatus('mod_fg', modify_flag); };*/ mem_imgBtnStatusC.onmousedown = function(){ if((admin == 'read')||(admin == 'normal')){ return; } if(complete_flag == 0){ complete_flag = 1; mem_imgBtnStatusC.src = imgsStatusOK[ctgry_now]; /*cubicmemo_statusbtnCMIN.src = imgsStatusOK[ctgry_now];*/ }else{ complete_flag = 0; mem_imgBtnStatusC.src = imgsStatusNO[ctgry_now]; /*cubicmemo_statusbtnCMIN.src = imgsStatusNO[ctgry_now];*/ } execStatus('cmp_fg', complete_flag); };/* cubicmemo_statusbtnCMIN.onmousedown = function(){ if((admin == 'read')||(admin == 'normal')){ return; } if(complete_flag == 0){ complete_flag = 1; cubicmemo_statusbtnCMIN.src = imgsStatusOK[ctgry_now]; mem_imgBtnStatusC.src = imgsStatusOK[ctgry_now]; }else{ complete_flag = 0; cubicmemo_statusbtnCMIN.src = imgsStatusNO[ctgry_now]; mem_imgBtnStatusC.src = imgsStatusNO[ctgry_now]; } execStatus('cmp_fg', complete_flag); };*/ mem_imgBtnRed.onmousedown = function(){ /*if( (ctgry_now != 0) && (mem_public_no == 0) ){*/ if(ctgry_now != 0){ ctgry_now = 0; setColor(); execCatChange();/* if(mdCheck()){ mem_ptblTag.bgColor = ImgsHonbun[ctgry_now]; }else{ mem_ptblTag.bgColor =BorderClrCat[ctgry_now]; }*/ } }; mem_imgBtnYellow.onmousedown = function(){ /*if( (ctgry_now != 1) && (mem_public_no == 0) ){*/ if(ctgry_now != 1){ /*if(ctgry_now != 0){*/ ctgry_now = 1; setColor(); execCatChange();/* if(mdCheck()){ mem_ptblTag.bgColor = ImgsHonbun[ctgry_now]; }else{ mem_ptblTag.bgColor =BorderClrCat[ctgry_now]; }*/ } }; mem_imgBtnGreen.onmousedown = function(){ /*if( (ctgry_now != 2) && (mem_public_no == 0) ){*/ if(ctgry_now != 2){ /*if(ctgry_now != 0){*/ ctgry_now = 2; setColor(); execCatChange();/* if(mdCheck()){ mem_ptblTag.bgColor = ImgsHonbun[ctgry_now]; }else{ mem_ptblTag.bgColor =BorderClrCat[ctgry_now]; }*/ } }; mem_imgBtnAqua.onmousedown = function(){ /*if( (ctgry_now != 3) && (mem_public_no == 0) ){*/ /*if(ctgry_now != 0){*/ if(ctgry_now != 3){ ctgry_now = 3; setColor(); execCatChange();/* if(mdCheck()){ mem_ptblTag.bgColor = ImgsHonbun[ctgry_now]; }else{ mem_ptblTag.bgColor =BorderClrCat[ctgry_now]; }*/ } }; mem_imgBtnBlue.onmousedown = function(){ /* if( (ctgry_now != 4) && (mem_public_no == 0) ){*/ /*if(ctgry_now != 0){*/ if(ctgry_now != 4){ ctgry_now = 4; setColor(); execCatChange();/* if(mdCheck()){ mem_ptblTag.bgColor = ImgsHonbun[ctgry_now]; }else{ mem_ptblTag.bgColor =BorderClrCat[ctgry_now]; }*/ } }; mem_imgBtnPurple.onmousedown = function(){ /*if( (ctgry_now != 5) && (mem_public_no == 0) ){*/ /*if(ctgry_now != 0){*/ if(ctgry_now != 5){ ctgry_now = 5; setColor(); execCatChange();/* if(mdCheck()){ mem_ptblTag.bgColor = ImgsHonbun[ctgry_now]; }else{ mem_ptblTag.bgColor = BorderClrCat[ctgry_now]; }*/ } }; mem_imgBtnShare.onmousedown = function(){ if(!mem_fg_editable){ return true; } if(mem_public_no != 0){ mem_imgBtnShare.src = ImgsShareOff[ctgry_now]; mem_public_no = 0; }else{ mem_imgBtnShare.src = ImgsShare[ctgry_now]; mem_public_no = -1; } setColor(); if(mem_memid<0){ return; }else{ execPubChange(); } }; mem_imgBtnClose.onmousedown = function(){ execDelete(); }; var _onmousemove = doc.onmousemove; doc.onmousemove = function(e){ var mx = c_mouse.X(e) - c_Mem_dg_left; var my = c_mouse.Y(e) - c_Mem_dg_top; if(c_Mem_dg){ if(mx<0) mx = 0; if(my<0) my = 0; c_Mem_dg.moveTo(mx, my); } if(!!_onmousemove) return _onmousemove(e); }; var _onmouseup = doc.onmouseup; doc.onmouseup = function(e){ c_Mem_dg = null; if(!!_onmouseup) return _onmouseup(e); }; function changeStatus(m){ mem_status = m; switch (mem_status){ case 'disp': removeAllElem(mem_pTag); /*removeAllElem(cubicmemo_alpha_tag);*/ /*removeAllElem(mem_ptblTag);*/ mem_pTag.innerHTML = txtValidate(mem_txt_tag); /*cubicmemo_alpha_tag.innerHTML = txtValidate(mem_txt_tag);*/ removeAllElem(mem_pHonbun);/* 2009.04.10 Kanemitsu Comment Out mem_pHonbun.innerHTML = honbunValidate(mem_txt_honbn);*//*2009.04.10 Added by Kanemitsu Automatic Creation of Hyper Link*/ mem_pHonbun.innerHTML = honbunToLink(mem_txt_honbn);/* 2009.04.10 Kanemitsu END*/ removeAllElem(mem_pDate); mem_pDate.className='cubic_header_section'; mem_pDate.innerHTML = txtValidate(mem_udate); removeAllElem(mem_pUser); mem_pUser.innerHTML = txtValidate(mem_uname); mem_pUser.className='cubic_header_section'; removeAllElem(mem_pFid); mem_pFid.className='cubic_header_section'; if( mem_memid > 0 ){ mem_pFid.innerHTML = 'ID:'+mem_memid; } /*mem_ptblTag.bgColor = BorderClrCat[ctgry_now];*/ mem_ptblTag.bgColor = '';/* mem_imgBtnOk.style.display = "none"; *//* mem_imgBtnCancel.style.display = "none"; */ mem_divFtBtn.style.display = "none"; /*mem_footTD1.style.display = "";*/ /*mem_footTD2.style.display = "";*/ /*mem_footTD3.style.display = "";*/ /*mem_footTD4.style.display = "";*/ mem_tblFooter.style.width = ''; if(isNew == 1){ mem_imgBtnClose.style.display = "inline"; isNew = 0; } /*mem_divFootBtn.style.display = "none";*/ mem_tblHonbun.bgColor= ImgsHonbun[ctgry_now]; break; case 'edit': if(isNew == 1){ mem_imgBtnClose.style.display = "none"; } mem_editTag.value = mem_txt_tag; mem_pTag.innerHTML = ''; mem_pTag.appendChild(mem_editTag); var th = parseInt( mem_pHonbun.offsetHeight||mem_pHonbun.style.pixelHeight||0); if(th<100){th = 100} mem_editHonbun.style.height = th + 'px'; mem_editHonbun.value = mem_txt_honbn; mem_pHonbun.innerHTML = ''; mem_pHonbun.appendChild(mem_editHonbun); /*removeAllElem(mem_pDate); mem_pDate.innerHTML = ""; */ mem_pDate.innerHTML = txtValidate(mem_udate); if( mem_memid > 0 ){ mem_pFid.innerHTML = 'ID:'+mem_memid; } removeAllElem(mem_pUser); mem_pUser.innerHTML = txtValidate(mem_uname);/* mem_imgBtnOk.style.display = "inline"; *//* mem_imgBtnCancel.style.display = "inline"; */ mem_divFtBtn.style.display = ""; /*mem_ptblTag.bgColor = ImgsHonbun[ctgry_now]; */ /*mem_ptblTag.style.width = 100 + '%';*/ /*mem_ptblTag.style = 'white-space: nowrap';*/ /*mem_pTag.bgColor = ImgsHonbun[ctgry_now];*/ /*mem_footTD1.style.display = "none";*/ /*mem_footTD2.style.display = "none";*/ /*mem_footTD3.style.display = "none";*/ /*mem_footTD4.style.display = "none";*/ mem_tblFooter.style.width = 201 + 'px'; /* mem_ptblTag.bgColor = ImgsHonbun[ctgry_now]; */ mem_ptblTag.bgColor = '#ffffff'; /*mem_divFootBtn.style.display = "";*/ mem_tblHonbun.bgColor= '#ffffff'; break; } }; function mdCheck(){ return ( mem_status == 'edit' ); }; function setColor(){ /*mem_divMain.bgColor = BorderClrCat[ctgry_now];*/ mem_divMainA.bgColor = BorderClrCat[ctgry_now]; mem_divMainB.bgColor = BorderClrCat[ctgry_now]; mem_divMainC.bgColor = BorderClrCat[ctgry_now]; mem_divMainD.bgColor = BorderClrCat[ctgry_now]; mem_divMainE.bgColor = BorderClrCat[ctgry_now]; mem_divMainF.bgColor = BorderClrCat[ctgry_now]; husenmin.className = classPin[ctgry_now]; husenminimg.src = imgsPin[ctgry_now]; /* MIN Section*//* mem_divMainAMIN.className = classdivMainMIN[ctgry_now]; mem_divMainBMIN.className = classdivMainMIN[ctgry_now]; mem_divMainCMIN.className = classdivMainMIN[ctgry_now]; mem_divMainDMIN.className = classdivMainMIN[ctgry_now]; mem_divMainEMIN.className = classdivMainMIN[ctgry_now]; mem_divMainFMIN.className = classdivMainMIN[ctgry_now]; arrow_alpha_top.className = classArrowTopMIN[ctgry_now]; arrow_alpha_topimg.src = imgsArrowTopMIN[ctgry_now]; arrow_alpha_bottom.className = classArrowBottomMIN[ctgry_now]; arrow_alpha_bottomimg.src = imgsArrowBottomMIN[ctgry_now]; right_alpha_top.className = classRightTopMIN[ctgry_now]; bg_right_alpha_topimg.src = imgsRightTopMIN[ctgry_now]; alpha_left_bottom.className = classLeftBottomMIN[ctgry_now]; alpha_left_bottomimg.src = imgsLeftBottomMIN[ctgry_now]; alpha_right_bottom.className = classRightBottomMIN[ctgry_now]; bg_alpha_right_bottomimg.src = imgsRightBottomMIN[ctgry_now]; copybtnMIN.src = imgsCopy[ctgry_now];*/ /* MIN Section END*/ /* mem_tblHonbun.bgColor= ImgsHonbun[ctgry_now]; */ if(mdCheck()){ }else{ mem_tblHonbun.bgColor= ImgsHonbun[ctgry_now]; } mem_imgBtnClose.src = ImgsClose[ctgry_now]; /*left_topimg.src = imgsLeftTop[ctgry_now];*/ bg_right_topimg.src = imgsBgRightTop[ctgry_now]; left_bottomimg.src = imgsLeftBottom[ctgry_now]; /*right_bottomimg.src = imgsRightBottom[ctgry_now];*/ /*left_top.className = classLeftTop[ctgry_now];*/ right_top.className = classRightTop[ctgry_now]; left_bottom.className = classLeftBottom[ctgry_now]; right_bottom.className = classRightBottom[ctgry_now]; arrow_top.className = classArrowTop[ctgry_now]; arrow_bottom.className = classArrowBottom[ctgry_now]; arrow_topimg.src = imgsArrowTop[ctgry_now]; arrow_bottomimg.src = imgsArrowBottom[ctgry_now]; right_top.className = classRightTop[ctgry_now]; right_bottom.className = classRightBottom[ctgry_now]; bg_right_topimg.src = imgsBgRightTop[ctgry_now]; /*right_bottomimg.src = imgsRightBottom[ctgry_now];*/ bg_right_bottomimg.src = imgsBgRightBottom[ctgry_now]; /*mem_imgArrow.src = ImgsArrow[ctgry_now];*/ mem_List.src = ImgsList[ctgry_now]; setShareColor(); setFlagColor(); /*mem_ptblTag.bgColor = ImgsHonbun[ctgry_now];*/ }; function setShareColor(){ if(mem_public_no == 0){ mem_imgBtnShare.src = ImgsShareOff[ctgry_now]; }else{ mem_imgBtnShare.src = ImgsShare[ctgry_now]; } }; function setFlagColor(){ if(check_flag == 0){ mem_imgBtnStatusA.src = imgsStatusNO[ctgry_now]; /*cubicmemo_statusbtnAMIN.src = imgsStatusNO[ctgry_now];*/ }else{ mem_imgBtnStatusA.src = imgsStatusOK[ctgry_now]; /*cubicmemo_statusbtnAMIN.src = imgsStatusOK[ctgry_now];*/ } if(modify_flag == 0){ mem_imgBtnStatusB.src = imgsStatusNO[ctgry_now]; /*cubicmemo_statusbtnBMIN.src = imgsStatusNO[ctgry_now];*/ }else{ mem_imgBtnStatusB.src = imgsStatusOK[ctgry_now]; /*cubicmemo_statusbtnBMIN.src = imgsStatusOK[ctgry_now];*/ } if(complete_flag == 0){ mem_imgBtnStatusC.src = imgsStatusNO[ctgry_now]; /*cubicmemo_statusbtnCMIN.src = imgsStatusNO[ctgry_now];*/ }else{ mem_imgBtnStatusC.src = imgsStatusOK[ctgry_now]; /*cubicmemo_statusbtnCMIN.src = imgsStatusOK[ctgry_now];*/ } }; function cmSendRequest(d){ d['fid'] = mem_memid; sendRequest(d, 'http://cm-demo.gio-cubic.net/caj.php'); }; if(isCopy == 1){ mem_editTag.value = escapeSQL(mem_editTag.value); /*cubicmemo_alpha_tag.value = mem_editTag.value;*/ mem_editHonbun.value = escapeSQL(mem_editHonbun.value); var d = new Array(); d['mode'] = 'dec'; d['sub'] = mem_editTag.value; d['txt'] = mem_editHonbun.value; d['left'] = mem_divTop.X(); d['top'] = mem_divTop.Y(); d['width'] = mem_divTop.Wd(); d['category'] = ctgry_now; d['isdemo'] = 'on'; d['public'] = mem_public_no; d['chk_fg'] = check_flag; d['mod_fg'] = modify_flag; d['cmp_fg'] = complete_flag; cmSendRequest(d); this.gotoFront(); }; }/**** END OF HUSEN ***/ function Mouse(){ var canvas = doc[ 'CSS1Compat' == doc.compatMode ? 'documentElement' : 'body']; this.X = function(e){ if( c_brws.op6 || c_brws.ie4 ){ return canvas.scrollLeft+event.clientX; }else{ return e.pageX; } }; this.Y = function(e){ if( c_brws.op6 || c_brws.ie4 ){ return canvas.scrollTop+event.clientY; } else { return e.pageY; } }; }; function Browser(){ this.op6 = false; this.op7 = false; this.op8 = false; this.op9 = false; this.sf = false; this.ff = false; this.kon = false; this.ie4 = false; this.ie5 = false; this.ie55 = false; this.ie6 = false; this.ie7 = false; this.ns4 = false; this.ns6 = false; this.win = false; this.mac = false; this.lin = false; var ua = navigator.userAgent; if(window.opera){ this.op6 = true; } else if (ua.indexOf("Safari") > -1){ this.sf = true;; } else if (ua.indexOf("Firefox") > -1){ this.ff = true;; } else if ( (ua.indexOf("Konqueror") > -1) || (ua.indexOf("konqueror") > -1) ){ this.kon = true;; } else if(document.all){ this.ie4 = true; } else if(isns4_raw()){ this.ns4 = true; } else if(document.addEventListener){ this.ns6 = true; } this.op7 = ( this.op6 && getnum(ua,"Opera",0)>=7); this.op8 = ( this.op7 && getnum(ua,"Opera",0)>=8); this.op9 = ( this.op8 && getnum(ua,"Opera",0)>=9); this.ie5 = (this.ie4 && document.getElementById); this.ie55 = ( this.ie5 && getnum(ua,"MSIE",0)>=5.5); this.ie6 = ( this.ie5 && getnum(ua,"MSIE",0)>=6); this.ie7 = ( this.ie6 && getnum(ua,"MSIE",0)>=7); this.win = match(ua,"Windows"); this.mac = match(ua,"Mac"); this.lin = match(ua,"x11"); function isns4_raw(){ if(!navigator.appName || !navigator.appVersion) return 0; return (navigator.appName=="Netscape" && navigator.appVersion.indexOf("4.")==0); }; function getnum(s,h,defval){ var n=0; var t,c,kc,f; if(!kl2a(defval)&&!klwa(defval)) defval= -1; while(n0) n=s.indexOf(h,n); if(n<0) return defval; n+=h.length; t=""; f=0; while(n=0&&t.length<=0) continue; if(c=="-"&&t.length<=0){ t+=c; }else if(kc>=48&&kc<=57){ t+=c; }else if(kc==46&&f==0){ t+=c; f=1; }else break; } if(t.length<=0) continue; t=parseFloat(t); if(!isNaN(t)) return t; } return defval; }; function kl2a(v){return(typeof(v)==typeof(1));}; function klwa(v){return(typeof(v)==typeof("s"));}; function match(s,h){ return(s.indexOf(h)>=0); }; }; function escapeSQL(t){ t = t.replace(/\'/g, '’');/* t = t.replace(/\"/g, '”'); */ t = t.replace(/\"/g, '"'); t = t.replace(/\t/g, ' '); t = t.replace(/\\/g, '¥'); return t; }; function txtValidate(txt){ txt = txt.replace(/"/g,"\""); txt = txt.replace(/&/g, '&'); txt = txt.replace(//g, '>'); txt = txt.replace(/\"/g,"""); txt = txt.replace(/\'/g,"'"); return txt; }; function honbunValidate(txt){ txt = txtValidate(txt); txt = txt.replace(/\n/g, '
'); /* enable tag yyyy */ txt = txt.replace(/<a \s*(.*?)>/g, ''); txt = txt.replace(/<\/a>/g, ''); txt = txt.replace(/href="\s*(.*?)"/g, 'href=\"$1\"'); return txt; };/** 2009.04.10 Added by Kanemitsu START **//* Creating HyperLink after OK button has been pushed. *//* This function is also called when this js is initially accessed. */ function honbunToLink(txt) { txt = txtValidate(txt); txt = txt.replace(/\n/g, '
'); txt = txt.replace(/((http|https)\:\/\/[0-9a-zA-Z:\/[\-_.!~*';?:@&=+$,%#]+)/g, function(m0,m1) { return m1.link(m1); }); /* _blank is added for utilizing Husen continuously */ txt = txt.replace(/href=(\"|\')((http|https)\:\/\/[0-9a-zA-Z:\/[\-_.!~*';?:@&=+$,%#]+)(\"|\')/ig, 'href=\"$2\" target=\"_blank\"'); return txt; };/** 2009.04.10 Added by Kanemitsu END **/ function getTemplate(id){return '
';}; function removeAllElem(elm){ while( !!elm.firstChild ) elm.removeChild(elm.firstChild); }; function createElem(htm){ var elm = doc.createElement('span'); elm.innerHTML = htm; return elm.removeChild(elm.firstChild); }; function loadImage(src){ return((new Image()).src = src); }; function layerSize(a){ this.X = function(d){ d = (d||a); return doc.layers ? d.left : (d.offsetLeft||d.style.pixelLeft||0); }; this.Y = function(d){ d = (d||a); return doc.layers ? d.top : (d.offsetTop||d.style.pixelTop||0); }; this.Wd = function(d){ d = (d||a); return parseInt(d.offsetWidth||d.style.pixelWidth||0); }; this.Ht = function(d){ d = (d||a); return parseInt(d.offsetHeight||d.style.pixelHeight||0); }; }; function chkEdit(e){ var src; var tagname; if( c_brws.ie4 ){ src = window.event.srcElement; tagname = window.event.srcElement.tagName.toLowerCase(); }else{ if(doc.getElementById) src = (e.target||e.target.parentNode); tagname = (e.target||e.target.parentNode).nodeName.toLowerCase(); } if( '|input|textarea|'.indexOf('|'+tagname+'|') >= 0 ) return true; return chkParent( src ); function chkParent( s ){ if(!s){ return false; }else{ if(s.cmElem1 == 'noDrag'){ return true; }else{ return chkParent(s.parentNode); } } }; };/* 2009.08.05 Kanemitsu START */ function chkHusenDrag(e){ var src; var tagname; if( c_brws.ie4 ){ src = window.event.srcElement; tagname = window.event.srcElement.tagName.toLowerCase(); }else{ if(doc.getElementById) src = (e.target||e.target.parentNode); tagname = (e.target||e.target.parentNode).nodeName.toLowerCase(); } if(src.id.match(/cubicmemo_honbun/i)){ return false; }else{ return true; } };/* 2009.08.05 Kanemitsu END */ function chkToolbarDrag(e){ var tagname; if( c_brws.ie4 ){ tagname = window.event.srcElement.tagName.toLowerCase(); }else { tagname = (e.target||e.target.parentNode).nodeName.toLowerCase(); } if( '|img|a|'.indexOf('|'+tagname+'|') >= 0 ) return true; return false; }; function sendRequest(data,url){ url+="?"; data = urlEncode(data,url); url += data; var oJsr = new JSONscriptRequest(url); oJsr.buildScriptTag(); oJsr.addScriptTag(); function urlEncode(data,url){ var encdt = (url.indexOf('?')==-1)?'?':''; if(typeof data == 'object'){ for(var i in data){ /* for avoid prototype.js's array object extension */ switch(encodeURIComponent(i)){ case 'mode': case 'sub': case 'txt': case 'left': case 'top': case 'width': case 'category': case 'isdemo': case 'public': case 'chk_fg': case 'mod_fg': case 'cmp_fg':/*2009.05.31 Kanemitsu START*/ case 'align': case 'str_cinfo':/*2009.05.31 Kanemitsu END*/ /*2009.08.05 Kanemitsu START*/ case 'remain_fg': case 'cnt': case 'resend': case 'tmpnum': case 'uid':/*2009.08.05 Kanemitsu END*/ case 'fid': encdt+='&'+encodeURIComponent(i)+'='+encodeURIComponent(data[i]); break; } } } else if(typeof data == 'string'){ if(data=='')return ''; var encdt = ''; var datas = data.split('&'); for(var i=1;i