if(typeof sk=="undefined"){sk={}}function toXml(A){if(A==null){return""}if(!A||typeof A!="string"){return A}return A.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/'/g,"&#x27;").replace(/"/g,"&quot;")}function unescapeXml(A){if(!A||typeof A!="string"){return A}return A.replace(/&amp;/g,"&").replace(/&lt;/g,"<").replace(/&gt;/g,">").replace(/&#x27;/g,"'").replace(/&quot;/g,'"')}function toJSStr(A){if(A==null){return""}if(!A||typeof A!="string"){return A}return A.replace(/\r/g,"").replace(/\n/g,"\\n").replace(/'/g,"\\u0027").replace(/"/g,"\\u0022")}function encodeURL(A){return encodeURIComponent(A)}function decodeURL(A){return decodeURIComponent(A.replace(/\+/g," "))}function location_href(){if(Prototype.Browser.WebKit){var B=location.href;var A=B.indexOf("?");if(A==-1){return encodeURI(B)}return encodeURI(B.substr(0,A))+B.substr(A)}return location.href}function trim(A){if(!A){return""}return A.replace(/^[ 　\t\r\n]+|[ 　\t\r\n]+$/g,"")}String.prototype.toXml=function(){return toXml(""+this)};String.prototype.toJSStr=function(){return toJSStr(""+this)};String.prototype.trim=function(){return trim(this)};String.prototype.startsWith=function(A){return this.indexOf(A)==0};String.prototype.endsWith=function(A){return this.lastIndexOf(A)==this.length-A.length};Array.prototype.contains=function(B){for(var A in this){if(this.hasOwnProperty(A)&&this[A]===B){return true}}return false};Array.prototype.add=function(A){this.push(A)};Array.prototype.remove=function(B){for(var A=0;A<this.length;A++){if(this[A]===B){this.splice(A,1);return true}}return false};function insertAfter(C,B){var A=B.parentNode;if(A.lastChild==B){return A.appendChild(C)}else{return A.insertBefore(C,B.nextSibling)}}function Viewport(){if(self.innerWidth){this.windowWidth=self.innerWidth;this.windowHeight=self.innerHeight}else{if(document.documentElement&&document.documentElement.clientWidth){this.windowWidth=document.documentElement.clientWidth;this.windowHeight=document.documentElement.clientHeight}else{this.windowWidth=window.innerWidth||document.body.clientWidth;this.windowHeight=window.innerHeight||document.body.clientHeight}}if(document.documentElement&&document.documentElement.clientWidth){this.clientWidth=document.documentElement.clientWidth;this.clientHeight=document.documentElement.clientHeight}else{if(self.innerWidth){this.clientWidth=self.innerWidth;this.clientHeight=self.innerHeight}else{this.clientWidth=window.innerWidth||document.body.clientWidth;this.clientHeight=window.innerHeight||document.body.clientHeight}}if(document.documentElement&&document.documentElement.scrollWidth){this.pageWidth=document.documentElement.scrollWidth;this.pageHeight=document.documentElement.scrollHeight}else{if(window.innerHeight&&window.scrollMaxY){this.pageWidth=document.body.scrollWidth;this.pageHeight=window.innerHeight+window.scrollMaxY}else{if(document.body.scrollHeight>document.body.offsetHeight){this.pageWidth=document.body.scrollWidth;this.pageHeight=document.body.scrollHeight}else{this.pageWidth=document.body.offsetWidth;this.pageHeight=document.body.offsetHeight}}}if(this.pageWidth<this.windowWidth){this.pageWidth=this.windowWidth}if(this.pageHeight<this.windowHeight){this.pageHeight=this.windowHeight}this.scrollX=(document.documentElement&&document.documentElement.scrollLeft)||window.pageXOffset||self.pageXOffset||document.body.scrollLeft;this.scrollY=(document.documentElement&&document.documentElement.scrollTop)||window.pageYOffset||self.pageYOffset||document.body.scrollTop}function selectOption(B,A){var C=_getOption(B,A);if(C){C.selected=true}}function checkRadio(C,A){C=$(C);for(var B=0;B<C.length;B++){if(C[B].value==A){C[B].checked=true;return }}}function _getOption(B,A){B=$(B);for(var C=0;C<B.options.length;C++){if(B.options[C].value==A){return B.options[C]}}return null}var disabled_item=null;function disabled_1sec(A){if(disabled_item){return }disabled_item=A;disabled_item.disabled=true;setTimeout("enableItem()",1000)}function enableItem(){if(disabled_item){disabled_item.disabled=false}disabled_item=null}function onSubmitDisabledSelection(B){var C=new Array();for(var A=0;A<B.elements.length;A++){if(B.elements[A].nodeName=="SELECT"&&B.elements[A].disabled){B.elements[A].disabled=false;C.push(B.elements[A])}}return C}function setEnabledForms(B){for(var A=0;A<B.length;A++){B[A].disabled=true}}function getCookie(B,A){B+="=";var D=document.cookie.split(/; */);for(var C=0;C<D.length;C++){if(D[C].indexOf(B)==0){return decodeURL(D[C].substring(B.length))}}return A?A:null}var cookieDomain=null;function setCookie(B,D,A){if(!A){A=-1}if(!B){return }deleteCookie(B);if(!D){return }var C="";if(cookieDomain){C=";Domain="+cookieDomain}if(A<0){document.cookie=B+"="+D+";Path=/"+C}else{var E=new Date();E.setTime(E.getTime()+A*1000);document.cookie=B+"="+D+";Expires="+E.toGMTString()+";Path=/"+C}}function deleteCookie(A){var C=new Date(0).toGMTString();var J=document.cookie.split(/; */);var B=location.pathname.split("/");var D=B.length;var I=document.domain.split(".");var G=I.length;var F=I[G-1];for(var H=0;H<G;H++){if(H>0){F=I[G-1-H]+"."+F}var M="";for(var E=1;E<D;E++){M=M+"/";for(var L=0;L<J.length;L++){var K=J[L].split("=")[0];if(A==K){document.cookie=K+"=;Domain="+F+";Port="+location.port+";Path="+M+";Expires="+C;document.cookie=K+"=;Path="+M+";Expires="+C}}M+=B[E]}}}function ellipsisLite(B,A){if(!A){A=20}if(B.length<A){return B}return B.substring(B,A-1)+"..."}var ellipsisQueue=[];var ellipsisProcessor;function ellipsisAll(D){if(navigator.appName!="Netscape"){return }var C=$(D);if(!C){return }var A=C.getElementsByClassName("ellipsis");for(var B=0;B<A.length;B++){ellipsisQueue.push(A[B])}if(!ellipsisProcessor){ellipsisProcessor=setInterval(function(){ellipsis(ellipsisQueue.shift());if(ellipsisQueue.length==0){clearInterval(ellipsisProcessor);ellipsisProcessor=null}},80)}}function ellipsis(H){if(navigator.appName!="Netscape"){return }var E=$(H);if(!E||!E.parentNode){return }var A=E;while(Element.getStyle(A,"overflow")!="hidden"&&Element.getStyle(A,"overflow-x")!="hidden"){A=A.parentNode}var C=A.offsetWidth;var D=E.cloneNode(true);D.style.visibility="hidden";D.style.position="absolute";D.style.width="auto";D.style.maxWidth="none";D.style.display="block";D.style.overflow="auto";D.style.whiteSpace="nowrap";E.parentNode.appendChild(D);var B=D.offsetWidth;if(C>=B){E.parentNode.removeChild(D);return }var F=E.innerHTML+"...";var G;while(true){G=F.substring(0,F.length/2)+"...";D.innerHTML=G;var B=D.offsetWidth;if(C>B){break}F=G}while(true){F=F.substring(0,F.length-4)+"...";D.innerHTML=F;var B=D.offsetWidth;if(C>=B){E.innerHTML=F;E.parentNode.removeChild(D);return }}}function toParamString(C){if(!C){return""}if(typeof (C)=="string"){return C}var B="";if(C){for(var A in C){B+=A+"="+C[A]+"&"}}if(B.length>0){B=B.substring(0,B.length-1)}return B}function reportError(A,B){if(B.status==403||B.status==503){location.reload();return }if(B.status==404||B.status==400){skdialog.alert(responseTextFilter(B));return }alert("Error communicating with server("+B.status+"). Please try again.")}function responseTextFilter(B){if(B.transport){B=B.transport.responseText}if(B.responseText){B=B.responseText}if(Prototype.Browser.WebKit){var A=escape(B);if(A.indexOf("%u")<0&&A.indexOf("%")>=0){B=decodeURIComponent(A)}}return B}function ajaxGetJson(url,options){var text=responseTextFilter(ajaxGet(url,options));try{return eval(text)}catch(e){alert(e+"\n"+text);return null}}function ajaxGet(B,A){A=Object.extend({asynchronous:false,method:"get",onFailure:function(D){reportError(B,D)}},A||{});var C=new Ajax.Request(B,A);if(C.transport.status!=200&&A.onFailure){A.onFailure(C.transport,B)}return C.transport}function ajaxCall(B,C,A){A=Object.extend({asynchronous:true,method:"get",onSuccess:C,onFailure:function(D){reportError(B,D)}},A||{});new Ajax.Request(B,A);return false}function ajaxPost(C,A,D,B){B=Object.extend({asynchronous:true,method:"post",postBody:A,onSuccess:D,onFailure:function(E){reportError(C,E)}},B||{});new Ajax.Request(C,B);return false}function ajaxPostForm(B,C,A){A=Object.extend({asynchronous:true,method:"post",parameters:Form.serialize(B),onSuccess:C,onFailure:function(D){reportError(B.action,D)}},A||{});new Ajax.Request(B.action,A);return false}function ajaxUpdate(A,C,D,B){B=Object.extend({asynchronous:true,method:"post",evalScripts:true,parameters:toParamString(D),onFailure:function(E){reportError(C,E)}},B||{});new Ajax.Updater(A,C,B)}function preload(C){var B=C.shift();var A=new Image();A.src=B;if(C.length>0){setTimeout(function(){preload(C)},30)}}function img_change(A,B){if(!A.oSrc){A.oSrc=A.src}A.src=B}function img_restore(A){A.src=A.oSrc}function backOrClose(){if(history.length){history.back()}else{window.close()}}function createElement(B,E,C,A){var D=document.createElement(B);if(E){D.id=E}if(C){Element.addClassName(D,C)}if(A){if(typeof A=="string"){D.innerHTML=A}else{D.appendChild(A)}}return D}function createDiv(B,C,A){return createElement("div",C,B,A)}function enterDiv(A){if(!Element.hasClassName(A,"selected")){Element.addClassName(A,"hover")}}function leaveDiv(A){Element.removeClassName(A,"hover")}function selectDiv(A){leaveDiv(A);Element.addClassName(A,"selected")}function deselectDiv(A){Element.removeClassName(A,"selected")}function firstChildElement(B,A){if(!B){return null}B=B.firstChild;while(B&&B.nodeType!=1&&(B=B.nextSibling)){if(!A&&B.nodeName.toLowerCase()==A){break}}return B}function nextElement(B,A){if(!B){return null}B=B.nextSibling;while(B&&B.nodeType!=1&&(B=B.nextSibling)){if(!A&&B.nodeName.toLowerCase()==A){break}}return B}function currentForm(A){return parentElement(A,"form")}function parentElement(C,A,B){while((C=C.parentNode)){if(C.nodeName.toLowerCase()==A&&(!B||Element.hasClassName(C,B))){break}}return C}function currentFormOnLoading(){var A=document.documentElement;while(A.nodeName.toLowerCase()!="form"){A=A.lastChild}return A}function prevNodeOnLoading(){var A=document.documentElement;while(A.nodeName.toLowerCase()!="script"){A=A.lastChild}while((A=A.previousSibling)){if(A.nodeType==1){return A}}return null}function emailValidation(A,D,C){var B=/[!#-9A-~]+@+[a-z0-9]+.+[^.]$/i;if(C&&(A==null||A=="")){return D+"が入力されていません"}if(!A.match(B)){return D+"の形式は不正です"}return null}function strRequiredLengthValidation(F,D,C,A,E){if(C&&(F==null||F=="")){return D+"が入力されていません"}var B="文字の長さの有効範囲は ";if(A>0){B=B+A+" 文字以上 "}if(E>0){B=B+E+" 文字以下 "}if(A*E>0&&F.length<A||F.length>E){return B}if(A>0){if(F.length<A){return B}}if(E>0){if(F.length>E){return B}}return null}function getIEVersion(){var uName=navigator.userAgent;if(uName.indexOf("MSIE")==-1){return""}str=uName.match(/\ [0-9]\.[0-9]+/);return eval(str[0])}function checkInputWord(B,A){if(!B||B==""||B.match(new RegExp("^[ 　\t\n\r]+$"))){if(A){A()}return false}else{return true}}function visibleIncludeParent(A){if(!A){return false}var B=true;do{if(!Element.visible(A)){B=false;break}A=A.parentNode}while(A&&A!=document);return B}function getSelectionRange(F){var B={start:0,end:0};var E=F.ownerDocument||F.document;if(F.createTextRange){var A=E.selection.createRange();var D=E.body.createTextRange();D.moveToElementText(F);var C=D.duplicate();C.setEndPoint("EndToStart",A);B.start=C.text.length;C=D.duplicate();C.setEndPoint("EndToEnd",A);B.end=C.text.length}else{if(F.setSelectionRange){B.start=F.selectionStart;B.end=F.selectionEnd}}return B}function setSelectionRange(C,D,A){C.focus();if(C.createTextRange){var B=C.createTextRange();B.move("character",D);B.select()}else{if(C.setSelectionRange){C.setSelectionRange(D,A)}}}sk.format={formatNumber:function(D){if(!D){return D}D=""+D;var C="";var A=0;for(var B=D.length;B>-1;B--){C=D.charAt(B)+C;if(A%3==0&&B<D.length&&B!=0){C=","+C}A++}return C},formatFloat:function(E,D){if(typeof (E)=="string"&&E.length==0){return""}var H=parseFloat(E);E=H.toFixed(D);var A=E.indexOf(".");if(A==-1){A=E.length}var B=E.substring(A);var F=B.length==0?0:B.length-1;if(F>D){B=B.substr(1,D)}else{if(F<D){if(B.length==0){B="."}for(;F<D;F++){B+="0"}}}for(var C=0;C<A;C++){var G=E.substr(A-1-C,1);if(G=="-"){return"-"+B}if(G<"0"||G>"9"){return null}if(C>0&&C%3==0){B=","+B}B=G+B}if(B.indexOf(".")==0){B="0"+B}return B},parseFloat:function(A){if(A.length==0){return 0}return parseFloat(A.replace(/,/g,""))},toPlainNumericForm:function(A){A.value=A.value.replace(/,/g,"");A.select()},toCanonicalNumericForm:function(C,B){var A=toCanonicalNumeric(C.value,B);if(A==""){return true}if(!A){alert("数値として不正な文字が含まれています。");C.focus();C.select();return false}C.value=A;return true},a:0};sk.effect={blindToggle:function(A){if(Element.visible(A)){Effect.BlindUp(A)}else{Effect.BlindDown(A)}return A}};function stackTrace(){return Error().stack}function log(C){if(!getCookie("debug")){return }if(!log.window_||log.window_.closed){log.window_=window.open("",null,"width=600,height=600,scrollbars=yes,resizable=yes,status=no,location=no,menubar=no,toolbar=no");var A=log.window_.document;A.write('<html><head><title>Debug Log</title></head><body><button onclick="document.getElementById(\'field\').value=\'\'">clear</button><br /><textarea id="field" style="width: 560px; height: 560px" wrap="off"></textarea></body></html>');A.close()}var B;if(typeof C=="string"){B=C.replace(/\r?\n/g,"\r\n")+"\r\n"}else{if(typeof C=="number"){B=C+"\r\n"}else{B=propertiesTEXT(C)}}log.window_.document.getElementById("field").value+=B}function propertiesHTML(C){var A="<ul>";for(property in C){if(property.indexOf("on")==0){continue}if(property.indexOf("outer")==0){continue}if(typeof (C[property])=="function"){continue}A+="<li>";A+=property+"=";try{if(typeof (C[property])=="function"){A+="function"}else{if(C[property]&&C[property].nodeName){A+=C[property].nodeName}else{A+=C[property]}}}catch(B){A+=B}A+="</li>"}A+="</ul>";return A}function propertiesTEXT(C){var A="";for(property in C){if(property.indexOf("on")==0){continue}if(property.indexOf("outer")==0){continue}if(typeof (C[property])=="function"){continue}A+=" * ";A+=property;A+=" = ";try{if(typeof (C[property])=="function"){A+="function"}else{if(C[property]&&C[property].nodeName){A+=C[property].nodeName}else{A+=C[property]}}}catch(B){A+=B}A+="\r\n"}return A};
