//This code is optimized by the w3compiler from Port80 Software:  BUY w3compiler to remove this comment from your optimized files at www.w3compiler.com!
function Trim(sString){return(sString.replace(/^[\n\r\t ]*|[\n\r\t ]*$/g,""));}function ValidateUserName(sString){var oUN=new RegExp("^[a-zA-Z0-9-_]+$");return oUN.test(sString);}function ValidateEmail(sString){var oUN=new RegExp("^([a-zA-Z0-9_\.\-])+\@(([a-zA-Z0-9_\.\-])+\.)+([a-zA-Z0-9]{2,4})$");return oUN.test(sString);}function GetOffsetTop(oElement){var iTop=oElement.offsetTop;while((oElement=oElement.offsetParent)!=null){iTop+=oElement.offsetTop}return iTop}function GetOffsetLeft(oElement){var iLeft=oElement.offsetLeft;while((oElement=oElement.offsetParent)!=null){iLeft+=oElement.offsetLeft}return iLeft}function GetKeyCode(oEventObject){try{if(GetBrowserInfo()=="IE"){return oEventObject.keyCode}else{return oEventObject.which}}catch(oException){}}function DisplayInCenter(ElementId,hidElementId){HideControl('dvPopupAPBN');var hDiv=document.getElementById(hidElementId);if(hDiv!=null&&hDiv!='undefined'){document.getElementById(hidElementId).style.display='none'}var oDiv=document.getElementById(ElementId);if(oDiv!=null&&oDiv!='undefined'){var oBody=(document.compatMode&&document.compatMode!="BackCompat")?document.documentElement:document.body;document.getElementById(ElementId).style.display="block";var DivWidth=parseInt(document.getElementById(ElementId).offsetWidth,10);var DivHeight=parseInt(document.getElementById(ElementId).offsetHeight,10);document.getElementById(ElementId).style.left=((oBody.clientWidth/2)-(DivWidth/2))+"px";document.getElementById(ElementId).style.top=((getScrollTop()+(document.documentElement.clientHeight/2))-(DivHeight/2))+"px"}}function getScrollTop(){return this.pageYOffset||document.documentElement.scrollTop}function apGetBodyScrollTop(){if(window.pageYOffset)return window.pageYOffset;var oBody=(document.compatMode&&document.compatMode!="BackCompat")?document.documentElement:document.body;return oBody.scrollTop}function apGetBodyScrollLeft(){if(window.pageXOffset)return window.pageXOffset;var oBody=(document.compatMode&&document.compatMode!="BackCompat")?document.documentElement:document.body;return oBody.scrollLeft}function DisplayPopUpInCenter(ElementId){var oDiv=document.getElementById(ElementId);if(oDiv!=null&&oDiv!='undefined'){var width=oDiv.style.width;var height=oDiv.style.height;oDiv.style.display="block";oDiv.style.position="absolute";if(width.indexOf('px')!=-1)width=width.replace('px','');if(height.indexOf('px')!=-1)height=height.replace('px','');oDiv.style.top=(screen.width-width)/2+'px';oDiv.style.left=(screen.height-height)/2+'px'}}var slider1;curIndex=0;function setImageIndex(index){curIndex=index-1}function setRequestedImage(index){slider1=$find("slideShowBehavior1");slider1._currentIndex=index;slider1.setCurrentImage();}function ShowControl(cnt){tCnt=document.getElementById(cnt);if(tCnt.style.display=='none')tCnt.style.display='';return true}function HideControl(cnt){var tCnt=document.getElementById(cnt);if(tCnt!=null&&tCnt!="undefined"){if(tCnt.style.display=='block')tCnt.style.display='none';else if(tCnt.style.display=='')tCnt.style.display='none';return true}}function donothing(){return false}function showMessage(container,title,message,buttonCaption){var str="<div id='dvPopupCommon' style='display:block; position: absolute; text-align: left;' class='Popup-Outer-Bg'>";str+="<table cellspacing='0' cellpadding='0' border='0'>";str+="<tbody>";str+="<tr>";str+="<td class='Popup-Header-Bg'>";str+=title;str=str+"</td>";str=str+"</tr>";str+="<tr>";str+="<td class='Popup-inner-Pad'>";str+="<span class='Msg-Error'>"+message+"</span>";str=str+"</td>";str=str+"</tr>";str+="<tr>";str+="<td align='center' class='PadT-10 PadB-20'>";str+="<input type='button' onclick=\"ClearControl('"+container+"');\" class='Orange-Btn-3' value='"+buttonCaption+"'/>";str=str+"</td>";str=str+"</tr>";str=str+"</tbody>";str=str+"</table>";str=str+"</div>";document.getElementById(container).innerHTML=str;var oDiv=document.getElementById('dvPopupCommon');var ElementId='dvPopupCommon';if(oDiv!=null&&oDiv!='undefined'){var oBody=(document.compatMode&&document.compatMode!="BackCompat")?document.documentElement:document.body;document.getElementById(ElementId).style.display="block";var DivWidth=parseInt(document.getElementById(ElementId).offsetWidth,10);var DivHeight=parseInt(document.getElementById(ElementId).offsetHeight,10);document.getElementById(ElementId).style.left=((oBody.clientWidth/2)-(DivWidth/2))+"px";document.getElementById(ElementId).style.top=((getScrollTop()+(document.documentElement.clientHeight/2))-(DivHeight/2))+"px"}}function ClearControl(cnt){tCnt=document.getElementById(cnt);tCnt.innerHTML='';tCnt.style.display='none';return true}function fnddlOnClick(ddlLanguage){window.location.href=ddlLanguage.value;}function RemoveTitleText_onfocus(txt){if(txt.value.trim()=="Search"){txt.value=""}}function RemoveTitleText_onblur(txt){if(txt.value.trim()==""){txt.value="Search"}}function showWait(fuImgClientId,vsClientId,contentDivClientId){if(document.getElementById(fuImgClientId).value.length>0){setTimeout("ShowDiv('"+vsClientId+"','"+contentDivClientId+"')",100);}}function ShowDiv(vsClientId,contentDivClientId){if(Trim(document.getElementById(vsClientId).innerHTML).length==0){window.scrollTo(0,0);document.getElementById(contentDivClientId).style.display='block'}}function IsDate(stringFormat){var str=stringFormat.split("/");if(str.length==0){return false}else{if(str.length!=3){return false}else{try{if(isNaN(str[0])||isNaN(str[1])||isNaN(str[2])){return false}m=parseInt(str[0],10);d=parseInt(str[1],10);y=parseInt(str[2],10);if(String(y).length!=4){return false}monthValid=false;if(m>=1&&m<=12){monthValid=true}dayValid=false;if((m==1||m==3||m==5||m==7||m==8||m==10||m==12)&&(d>=1&&d<=31)){dayValid=true}else if((m==4||m==6||m==9||m==11)&&(d>=1&&d<=30)){dayValid=true}else if(m==2&&(d>=1&&d<=29)){if(d==29){if(y%4==0&&y%100!=0){dayValid=true}else{if(y%400==0){dayValid=true}}}else{if(m==2&&(d>=1&&d<=28)){dayValid=true}}}if(monthValid==false||dayValid==false){return false}return true}catch(ex){return false}}}}function Querystring(qs){this.params={};if(qs==null)qs=location.search.substring(1,location.search.length);if(qs.length==0)return;qs=qs.replace(/\+/g,' ');var args=qs.split('&');for(var i=0;i<args.length;i++){var pair=args[i].split('=');var name=decodeURIComponent(pair[0]);var value=(pair.length==2)?decodeURIComponent(pair[1]):name;this.params[name]=value}}Querystring.prototype.get=function(key,default_){var value=this.params[key];return(value!=null)?value:default_};Querystring.prototype.contains=function(key){var value=this.params[key];return(value!=null);};