function openNewWindow(i,e,c,a,g,h){var d=(screen.height-a)/2;var f=(screen.width-c)/2;var j="toolbar=no";j+=",width="+c;j+=",height="+a;j+=",resizable="+(g?"yes":"no");j+=",scrollbars="+(h?"yes":"no");j+=",left="+f;j+=",top="+d;var b=window.open(i,e,j);b.focus();return b}function popUpPrintWindow(b){var a=openNewWindow(b,"PrintWindow","1000","700","yes","yes")}function SendMailWin(d,a,b){var c=openNewWindow(d,"SendMailWin",a,b)}function findPosX(a){var b=0;if(a.offsetParent){while(a.offsetParent){b+=a.offsetLeft;a=a.offsetParent}}else{if(a.x){b+=a.x}}return b}function findPosY(b){var a=0;if(b.offsetParent){while(b.offsetParent){a+=b.offsetTop;b=b.offsetParent}}else{if(b.y){a+=b.y}}return a}function stop_event(a){a=fix_E(a);a.cancelBubble=true;if(a.stopPropagation){a.stopPropagation()}}function fix_mouseevent(a){if(a.x){a.pageX=a.x}if(a.y){a.pageY=a.y}return a}function fix_E(a){if(!a){a=window.e}return a}function viewpoint_size(a){if(a.innerWidth){return[a.innerWidth,a.innerHeight]}else{if(a.document.body){return[a.document.body.clientWidth,a.document.body.clientHeight]}else{return[a.document.documentElement.clientWidht,a.document.documentElement.clientHeight]}}}function viewpoint_scroll(a){if(typeof(a.pageYOffset)=="number"){return[a.pageXOffset,a.pageYOffset]}else{if(a.body){return[a.body.scrollLeft,a.body.scrollTop]}else{return[a.documentElement.scrollLeft,a.documentElement.scrollTop]}}}function element_size(a){return[a.offsetWidth,a.offsetHeight]}function image_flip(b){var a;if((a=b.getAttribute("src").indexOf("-on"))==-1){a=b.getAttribute("src").lastIndexOf(".");b.setAttribute("src",b.getAttribute("src").substring(0,a)+"-on."+b.getAttribute("src").substring(a+1))}else{b.setAttribute("src",b.getAttribute("src").substring(0,a)+b.getAttribute("src").substring(a+3))}};
