if(typeof btDomLoaded!='function'){if(typeof DOMAssistant==='undefined'){DOMAssistant={};} DOMAssistant.DOMLoad=function(){var DOMLoaded=false,DOMLoadTimer=null,functionsToCall=[],addedStrings={},errorHandling=null,execFunctions=function(){for(var i=0,il=functionsToCall.length;i<\/script>"); document.getElementById("ieScriptLoad").onreadystatechange = function() { if (this.readyState === "complete") { DOMHasLoaded(); } }; @end @*/if(document.addEventListener){document.addEventListener("DOMContentLoaded",DOMHasLoaded,false);} if(/KHTML|WebKit|iCab/i.test(navigator.userAgent)){DOMLoadTimer=setInterval(function(){if(/loaded|complete/i.test(document.readyState)){DOMHasLoaded();clearInterval(DOMLoadTimer);}},10);} if(!window.onload){window.onload=DOMHasLoaded;} return{DOMReady:function(){for(var i=0,il=arguments.length,funcRef;i';document.body.insertAdjacentHTML('beforeEnd',WebBrowser);WebBrowser1.ExecWB(6,2);}} function trim(s) {if(typeof s!="string"){return s;} else {while((s.substring(0,1)==' ')||(s.substring(0,1)=='\n')||(s.substring(0,1)=='\r')){s=s.substring(1,s.length);} while((s.substring(s.length-1,s.length)==' ')||(s.substring(s.length-1,s.length)=='\n')||(s.substring(s.length-1,s.length)=='\r')){s=s.substring(0,s.length-1);} return s;}} function addslashes(str){str=str.replace(/\'/g,'\\\'');str=str.replace(/\"/g,'\\"');str=str.replace(/\\/g,'\\\\');str=str.replace(/\0/g,'\\0');return str;} closetime=0;function Start(url,width,height){windowprops="left=50,top=50,width="+width+",height="+height;preview=window.open(url,"preview",windowprops);if(closetime)setTimeout("preview.close();",closetime*1000);} function doPopup(url,width,height,delay){url1=url;width1=width;height1=height;timer=setTimeout("Start(url1, width1, height1)",delay*1000);} function getDaysExpiry(noDays){var today=new Date();var expr=new Date(today.getTime()+noDays*24*60*60*1000);return expr.toGMTString();} function getHoursExpiry(noHours){var today=new Date();var expr=new Date(today.getTime()+noHours*60*60*1000);return expr.toGMTString();} function wwwPathToDomainName(www_path){var pattern1=/\bhttp:\/\//ig;var pattern2=/\bwww\./ig;var pattern3=/\bmembers\./ig;siteDomainA=www_path.replace(pattern1,"");siteDomainB=siteDomainA.replace(pattern2,"");siteDomain=siteDomainB.replace(pattern2,"");return siteDomain;} function readPopupCookie(siteID,url,width,height,delay,num_hours,www_path){var siteDomain=wwwPathToDomainName(www_path);var smShownPop='smShownPop'+siteID;var smSubscribed='smSubscribed'+siteID;var smShownPopC=document.cookie.indexOf(smShownPop);var smSubscribedC=document.cookie.indexOf(smSubscribed);if(smShownPopC==-1&&smSubscribedC==-1){doPopup(url,width,height,delay);document.cookie=smShownPop+"=shown; path=/; domain="+siteDomain+"; expires="+getHoursExpiry(num_hours);}} function subscribed(siteID,num_days,www_path){var siteDomain=wwwPathToDomainName(www_path);var smSubscribed='smSubscribed'+siteID;document.cookie=smSubscribed+"=subscribed; path=/; domain="+siteDomain+"; expires="+getDaysExpiry(num_days);} function MM_preloadImages(){var d=document;if(d.images){if(!d.MM_p)d.MM_p=new Array();var i,j=d.MM_p.length,a=MM_preloadImages.arguments;for(i=0;i0&&parent.frames.length){d=parent.frames[n.substring(p+1)].document;n=n.substring(0,p);} if(!(x=d[n])&&d.all)x=d.all[n];for(i=0;!x&&i=0){url=url.replace(/\/.*/,'');} if(url.indexOf("?")>=0){url=url.replace(/\?.*/,'');} if(url.indexOf("#")>=0){url=url.replace(/#.*/,'');} return url;} function URLDecode(psEncodeString){var lsRegExp=/\+/g;return unescape(String(psEncodeString).replace(lsRegExp," "));} function getQueryVariable(variable){var query=window.location.search.substring(1);var vars=query.split("&");for(var i=0;i=0)} function is_object(v){return(typeof(v)=="object");} function urlencode(str){str=escape(str);str=str.replace('+','%2B');str=str.replace('%20','+');str=str.replace('*','%2A');str=str.replace('index.html','%2F');str=str.replace('@','%40');str=str.replace('&','%26');str=str.replace('=','%3D');return str;} function urldecode(str){str=str.replace('+',' ');str=unescape(str);return str;} function http_build_query(formdata,numeric_prefix,key){var numeric_prefix=(typeof(numeric_prefix)=="undefined")?null:numeric_prefix;var key=(typeof(key)=="undefined")?null:key;var res=new Array();for(var k in formdata){var v=formdata[k];if(typeof(v)=='function')continue;var tmp_key=encodeURI(is_int(k)?new Number(numeric_prefix)+new Number(k):k);if(key)tmp_key=key+'['+tmp_key+']';add_to_res=((is_array(v)||is_object(v))?http_build_query(v,key,tmp_key):tmp_key+"="+escape(v));res.push(add_to_res);} separator='&';return res.join(separator);} function get_checked_radioObj_value(radioObj){if(!radioObj) return"";var radioLength=radioObj.length;if(radioLength==undefined) if(radioObj.checked) return radioObj.value;else return"";for(var i=0;i0)?toFixedFix(n,prec):toFixedFix(Math.round(n),prec);var abs=toFixedFix(Math.abs(n),prec);var _,i;if(abs>=1000){_=abs.split(/\D/);i=_[0].length%3||3;_[0]=s.slice(0,i+(n<0))+ _[0].slice(i).replace(/(\d{3})/g,sep+'$1');s=_.join(dec);}else{s=s.replace('.',dec);} var decPos=s.indexOf(dec);if(prec>=1&&decPos!==-1&&(s.length-decPos-1)=1&&decPos===-1){s+=dec+new Array(prec).join(0)+'0';} return s;};TOOLBOX=(typeof TOOLBOX!=='undefined')?TOOLBOX:{};TOOLBOX.use=function() {var args=Array.prototype.slice.call(arguments);var resources=args.slice(0,args.length-1) var callback=args[args.length-1];var loaded=0;var TOLOAD=resources.length;var ERROR={callback:'The last argument must be a callabck function to be invoked once the resources listed have been loaded',unavailableName:'The resource name has not been registered with this function',noNameOrSource:'Please include either a name or a source property with your resource object',noNamewithVersion:'Please include a name of the resource with your version number',dependenciesNotArray:'The dependencies property must be an array of source strings',includesNotArray:'The includes property must be an array of source strings'};var MAP={'jquery':{defaultVersion:'1.9.1',version:{'1.6.2':{src:['/baseapp/scripts/jquery/1.6.2/jquery.min.js'],dependencies:[],includes:[]},'1.9.1':{src:['/baseapp/scripts/libs/jquery/1.9.1/jquery.min.js'],dependencies:[],includes:[]}},},'bootstrap':{defaultVersion:'3.3.5',version:{'3.3.5':{src:['baseapp/scripts/libs/bootstrap/js/bootstrap.js'],dependencies:['/baseapp/scripts/libs/jquery/1.9.1/jquery.min.js'],includes:['/baseapp/scripts/libs/bootstrap/css/bootstrap.css']}}}} for(var i=0,l=resources.length;i=internalResources[type]['toLoad']){switch(type){case'dependencies':loadType('src');break;case'src':loadType('includes');break;case'includes':updateResourceLoaded();break;}}} function getExtension(src){return src.match(/js$/)?'js':'css';}} function updateResourceLoaded(){loaded+=1;if(loaded===TOLOAD){if(typeof callback!=='function'){throw new Error(ERROR.callback);} else{callback();}}} function typeOf(value){var s=typeof value;if(s==='object'){if(value){if(value instanceof Array){s='array';}}else{s='null';}} return s;}};