window.iFactor=new Object();__common=function(){this.config=new Object();this.config.cookie_prefix="";this.fullDayNames=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"];this.fullMonthNames=["January","February","March","April","May","June","July","August","September","October","November","December"]};_mSvgEnabled=true;_mSvgForced=true;if(window.console==null){window.console=new Object();window.console.info=function(){}}__common.prototype.getXMLNodeValue=function(A){var B=null;if(A!=null){var E=A.childNodes;var D=0;B=A.nodeValue;var C=null;if(B==null){for(D=0;D<E.length;D++){C=E.item(D);if(C.nodeName=="#text"){B=C.nodeValue}}}}return B};__common.prototype.getXMLChildNamed=function(A,F){var D=A.childNodes;var C=0;var B=null;var E=null;for(C=0;C<D.length;C++){E=D.item(C);if(E.nodeName==F){B=E;break}}return B};__common.prototype.getXMLChildrenNamed=function(B,F){var D=B.childNodes;var C=0;var A=new Array();var E=null;for(C=0;C<D.length;C++){E=D.item(C);if(E.nodeName==F){A.push(E)}}return A};__common.prototype.createXMLRequest=function(){var A=false;if(window.XMLHttpRequest){try{A=new XMLHttpRequest()}catch(B){A=false}}else{if(window.ActiveXObject){try{A=new ActiveXObject("Msxml2.XMLHTTP")}catch(B){try{A=new ActiveXObject("Microsoft.XMLHTTP")}catch(B){A=false}}}}return A};__common.prototype.uniqueRequestTag=function(B){var A=new Date();var C=null;if(B){C="?timestamp="+A.getTime()}else{C="&timestamp="+A.getTime()}return C};__common.prototype.createCookie=function(C,D,E){var A="";C=this.config.cookie_prefix+C;if(E!=null){var B=new Date();B.setTime(B.getTime()+(E*24*60*60*1000));A="; expires="+B.toGMTString()}document.cookie=C+"="+D+A+"; path=/"};__common.prototype.readCookie=function(C){C=this.config.cookie_prefix+C;var E=C+"=";var A=document.cookie.split(";");var D=0;var F=null;var B=null;for(D=0;D<A.length;D++){F=A[D];while(F.charAt(0)==" "){F=F.substring(1,F.length)}if(F.indexOf(E)==0){B=F.substring(E.length,F.length);break}}return B};__common.prototype.eraseCookie=function(A){A=this.config.cookie_prefix+A;this.createCookie(A,"",-1)};__common.prototype.cookiesEnabled=function(){var A=new Date();chkcookie=(A.getTime()+"");document.cookie="chkcookie="+chkcookie+"; path=/";return(!(document.cookie.indexOf(chkcookie,0)<0))};__common.prototype.debugShow=function(B){var E="";var C=0;var A=null;for(C in B){A=typeof B[C];A=A+"";E=E+C+" = "+B[C]+"\n"}var D=window.open("");D.document.open();D.document.write(E)};__common.prototype.getBrowserType=function(){var C="Other";if(document.getElementById){if(!((window.opera)&&(window.print))){if(document.all){if((document.documentElement)&&(document.documentElement.clientWidth||document.documentElement.clientHeight)){C="IE6"}else{C="IE4"}}else{C="Firefox14";var B="Firefox/";var A=navigator.userAgent.indexOf(B);ffv=parseFloat(navigator.userAgent.substring(A+B.length));if(ffv>=1.5){C="Firefox15"}}}}return C};__common.prototype.getArguments=function(){var C=new Object();var B=window.location.search;var D=0;var A=null;if((B!=null)&&(B!="")){B=B.substr(1,B.length);B=B.split("&");for(D=0;D<B.length;D++){anArg=B[D];A=anArg.split("=");C[A[0]]=A[1]}}return C};__common.prototype.convertHex2DecRGB=function(C){var A=new Array();var D=new Array();for(var B=0;B<3;B++){A[B]=C.substr((B*2),2);D[B]=this.convertHex2DecChannel(A[B])}return D};__common.prototype.convertHex2DecChannel=function(A){var B;B=parseInt(A,16);return B.toString()};__common.prototype.shortDateAndTime=function(D){var C=this.shortDay(D.getDay())+", ";C=C+this.shortMonth(D.getMonth())+" ";C=C+D.getDate()+", ";var B="AM";var A=D.getHours();if(A>12){B="PM";A=A-12}if(A==0){A=12}C=C+A+":";A=D.getMinutes()+"";if(A.length==1){A="0"+A}C=C+A+B;return C};__common.prototype.shortDay=function(A){var B=this.fullDayNames[A];return B.substring(0,3)};__common.prototype.shortMonth=function(A){var B=this.fullMonthNames[A];return B.substring(0,3)};__common.prototype.getToggleValue=function(A){return window.document.getElementById(A).checked};__common.prototype.isRadioButtonSelected=function(B,A){return(this.getRadioValue(A)==B)};__common.prototype.getRadioValue=function(C){var A=window.document.getElementById(C);var B=A[C];var E=null;var D=0;for(D=0;D<B.length;D++){if(B[D].checked){E=B[D].value;break}}return E};__common.prototype.setRadioValue=function(F,C){var A=window.document.getElementById(C);var B=A[C];var E=null;var D=0;for(D=0;D<B.length;D++){E=B[D].value;B[D].checked=(E==F)}};__common.prototype.getInnerWindowDimensions=function(){var A=this.getBrowserType();var B=new Array();if(A=="IE6"){B[0]=document.documentElement.clientWidth;B[1]=document.documentElement.clientHeight}else{if(A=="IE4"){B[0]=document.body.clientWidth;B[1]=document.body.clientHeight}else{B[0]=window.innerWidth;B[1]=window.innerHeight}}return B};__common.prototype.clearTable=function(A){while(A.rows.length>0){A.deleteRow(A.rows.length-1)}};__common.prototype.getHostRoot=function(){var E=window.location.href;var C=0;var D="";var B=0;var A=null;for(B=0;B<E.length;B++){A=E.charAt(B);if(A=="/"){C=C+1}if(C==3){break}D=D+A}return D};String.prototype.validForFloat=function(){var B="1234567890";var C=false;var D=0;var A=null;var E=true;for(D=0;D<this.length;D++){A=this.charAt(D)+"";if(B.indexOf(A)==-1){if(A=="."){if(C){E=false;break}else{C=true}}else{if((A=="-")&&(D!=0)){E=false;break}else{if((A!="-")&&(A!=".")){E=false;break}}}}}if((E)&&(this.length==0)){E=false}return E};String.prototype.fixUrlSeparator=function(){var D="\\";var C="/";var A=this;var B=0;while(B!=-1){A=A.replace(D,C);B=A.indexOf(D)}return encodeURI(A)};Array.prototype.reverse=function(){var C=new Array();var B=0;var A=0;for(B=(this.length-1);B>-1;B--){C[A]=this[B];A++}for(B=0;B<this.length;B++){this[B]=C[B]}};Array.prototype.insertNth=function(B,A){var D=0;var C=new Array();for(D=0;D<this.length;D++){if(D<A){C[D]=this[D]}else{if(D==A){C[D]=B;C[D+1]=this[D]}else{if(D>A){C[D+1]=this[D]}}}}for(D=0;D<C.length;D++){this[D]=C[D]}};iFactor.common=new __common();