function FixStyles(){}
function WindowOnLoad(){}
window.onload=function(){WindowOnLoad();}
function GetQueryStringValue(strId,strQuerystring){if(!strQuerystring){strQuerystring=location.search;}
strFindId=strId+"=";intStart=strQuerystring.indexOf(strFindId)+strFindId.length;if(intStart>strFindId.length){strRestOfQS=strQuerystring.substring(intStart,strQuerystring.length);intEnd=strRestOfQS.indexOf('&');if(intEnd==-1){intEnd=strQuerystring.length;}
else{intEnd=intStart+intEnd;}
strValue=strQuerystring.substring(intStart,intEnd);}
else{strValue="";}
return strValue;}
function GetTopDomain(strThisDomain){strTopDomains=".co,.com,.net,.org,.edu,.biz,.info";arrTopDomains=strTopDomains.split(",");strThisTopDomain="";strLocalDomainPrefix="";strLocalDomain="";if(!strThisDomain||strThisDomain==""){strThisDomain=location.hostname;}
for(i=0;i<arrTopDomains.length;i++){intIndexOfTopDomain=strThisDomain.indexOf(arrTopDomains[i]);if(intIndexOfTopDomain>0){if((strThisDomain.substring(intIndexOfTopDomain,strThisDomain.length)!=arrTopDomains[i])||(strThisDomain.indexOf(arrTopDomains[i]+".")>0)){strLocalDomainPrefix=strThisDomain.substring(0,intIndexOfTopDomain);strThisTopDomain=strThisDomain.substring(intIndexOfTopDomain,strThisDomain.length);}else{intIndexOfTopDomain=-1;}}}
if(strLocalDomainPrefix!=""&&strThisTopDomain!=""){if(strLocalDomainPrefix.indexOf(".")>0){strLocalDomain=strLocalDomainPrefix.substring(strLocalDomainPrefix.lastIndexOf(".")+1,strLocalDomainPrefix.length)+strThisTopDomain;}else{strLocalDomain=strLocalDomainPrefix+strThisTopDomain;}}
if(strLocalDomain!=""){return strLocalDomain;}else{return strThisDomain;}}
function setCookie(strCookieName,strCookieValue,intDaysToExpire,strPath,strDomain){var exdate=new Date();exdate.setDate(exdate.getDate()+intDaysToExpire);strCookie=strCookieName+"="+escape(strCookieValue);strCookie+=((intDaysToExpire==null)?"":";expires="+exdate.toGMTString());strCookie+=((strPath==null)?"":";path="+strPath);strCookie+=((strDomain==null)?"":";domain="+strDomain);document.cookie=strCookie;}
function getCookie(strCookieName){if(document.cookie.length>0){intCookieValueStart=document.cookie.indexOf(strCookieName+"=");if(intCookieValueStart!=-1){intCookieValueStart=intCookieValueStart+strCookieName.length+1;intCookieValueEnd=document.cookie.indexOf(";",intCookieValueStart);if(intCookieValueEnd==-1){intCookieValueEnd=document.cookie.length;}
return unescape(document.cookie.substring(intCookieValueStart,intCookieValueEnd));}}
return"";}
function NavFormSelect(strFormName,strFieldName){intSelected=document[strFormName].elements[strFieldName].options.selectedIndex;strURL=document[strFormName].elements[strFieldName].options[intSelected].value;document[strFormName].elements[strFieldName].options.selectedIndex=0;if(strURL!=""){location.href=strURL;}}
function Popup(strPage,intWidth,intHeight,strID,strScrollbars,strLocation,strToolbar,strStatus,strResizable){if(!strPage){strPage="/";}
if(!intWidth){intWidth=600;}
if(!intHeight){intHeight=400;}
if(!strID){strID="PopupWindow";}
if(!strScrollbars){strScrollbars="yes";}
if(!strLocation){strLocation="no";}
if(!strToolbar){strToolbar="no";}
if(!strStatus){strStatus="no";}
if(!strResizable){strResizable="yes";}
idPopup=window.open(strPage,strID,"width="+intWidth+",height="+intHeight+",scrollbars="+strScrollbars+",location="+strLocation+",toolbar="+strToolbar+",status="+strStatus+",resizable="+strResizable);if(window.focus){idPopup.focus();}
return false;}
function PopdownLink(strURL,strWindowID){if(!strWindowID){top.opener.location.href=strURL;}else{if(strWindowID.location){strWindowID.location.href=strURL;}else{window.open(strURL,strWindowID);}}
top.close();}
function CS(){alert("That function is coming soon.");}
function RequireKeywords(strFormID,strFieldName){if(document.forms[strFormID].elements[strFieldName].value.length<=3){alert("Please alter your requested keyword(s) in the search form.\nThe search phrase must be 3 characters or more in length.")
return false;}}
function SearchKeywordsFieldOnClick(objField){if(objField.value=='Enter keywords...'){objField.value='';}}
function SearchKeywordsFieldOnBlur(objField){if(objField.value==''){objField.value='Enter keywords...';}}
function SearchKeywordsFieldOnLoad(objField){objField.value='Enter keywords...';}
function ImageSwap(strImageID,strNewImageSrc){if(document.images){document.images[strImageID].src=eval(strNewImageSrc+".src");}}
function ImageSwapFX(strImageID,strNewImageSrc,blnDisableTrans){if(blnDisableTrans||!document.images[strImageID].filters||gblnIE50){if(document.images){document.images[strImageID].src=eval(strNewImageSrc+".src");}}else{document.images[strImageID].filters[0].Apply();if(gblnToggleTrans){gblnToggleTrans=0;document.images[strImageID].src=eval(strNewImageSrc+".src");}else{gblnToggleTrans=1;document.images[strImageID].src=eval(strNewImageSrc+".src");}
document.images[strImageID].filters[0].Play();}}
function OtherOptionSwitch(strOtherOptionTagId,objTag){objOtherOptionTag=document.getElementById(strOtherOptionTagId);strOtherOptionClassName=objOtherOptionTag.className;strSelectControlTagId=strOtherOptionTagId+"Enable";objSelectControlTag=document.getElementById(strSelectControlTagId);if(objSelectControlTag){if(objSelectControlTag.tagName=="OPTION"){if(objTag[objTag.selectedIndex].id==objSelectControlTag.id){OtherOptionShowText(strOtherOptionTagId);}else{OtherOptionDeselect(strOtherOptionTagId,objOtherOptionTag);}}else{if(objSelectControlTag.checked){OtherOptionShowText(strOtherOptionTagId);}else{OtherOptionDeselect(strOtherOptionTagId,objOtherOptionTag);}}}}
function OtherOptionDeselect(strOtherOptionTagId,objTag){objOtherOptionTag=document.getElementById(strOtherOptionTagId);strOtherOptionClassName=objOtherOptionTag.className;strSelectControlTagId=strOtherOptionTagId+"Enable";objSelectControlTag=document.getElementById(strSelectControlTagId);if(strOtherOptionClassName.indexOf("otherOptionSelectTextHidden")!=-1){if(objSelectControlTag.tagName=="OPTION"){}
OtherOptionHideText(strOtherOptionTagId);}else if(strOtherOptionClassName.indexOf("otherOptionSelectTextVisible")!=-1){if(objSelectControlTag.tagName=="OPTION"){}
OtherOptionBlankText(objOtherOptionTag);}}
function OtherOptionLoad(strOtherOptionTagId){strFieldTagId=strOtherOptionTagId.substring(0,strOtherOptionTagId.indexOf("Other"));OtherOptionSwitch(strOtherOptionTagId,document.getElementById(strFieldTagId));}
function OtherOptionHideText(strOtherOptionTagId){objOtherOptionTag=document.getElementById(strOtherOptionTagId);strOtherOptionClassName=objOtherOptionTag.className;arrOptionTextContainers=getElementsByClassName("otherOptionText","div",objOtherOptionTag);for(i=0;i<arrOptionTextContainers.length;i++){arrOptionTextContainers[i].className="otherOptionText otherOptionHideText";OtherOptionBlankText(arrOptionTextContainers[i]);}}
function OtherOptionShowText(strOtherOptionTagId){objOtherOptionTag=document.getElementById(strOtherOptionTagId);strOtherOptionClassName=objOtherOptionTag.className;arrOptionTextContainers=getElementsByClassName("otherOptionText otherOptionHideText","div",objOtherOptionTag);for(i=0;i<arrOptionTextContainers.length;i++){arrOptionTextContainers[i].className="otherOptionText";}}
function OtherOptionBlankText(objOtherOptionTextContainer){arrOptionTextControls=objOtherOptionTextContainer.getElementsByTagName("INPUT");if(arrOptionTextControls){for(j=0;j<arrOptionTextControls.length;j++){if(arrOptionTextControls[j].type=="text"){arrOptionTextControls[j].value="";}}}}
function SetDefaultFieldValue(strForm,strElement,strValue,blnFocus){var strInitialValue=document.forms[strForm].elements[strElement].value;if(blnFocus){if(strInitialValue==strValue){document.forms[strForm].elements[strElement].value="";}}else{if(strInitialValue==""){document.forms[strForm].elements[strElement].value=strValue;}}}
function TextHTMLHelp(){var strHelpMessage=""
strHelpMessage+="HTML\n\
Select HTML if your email package supports pictures and rich text layouts.\n\
\n\
Text\n\
Select text if you are using an older email package, or you prefer plain text emails.\n"
alert(strHelpMessage);}
function GetObj(name){if(document.getElementById){this.obj=document.getElementById(name);this.style=document.getElementById(name).style;}else if(document.all){this.obj=document.all[name];this.style=document.all[name].style;}else if(document.layers){this.obj=document.layers[name];this.style=document.layers[name];}}
function GetObjectHeight(objectRef){var intHeight=-1;if(document.getElementById){if(document.getElementById(objectRef)){intHeight=eval(document.getElementById(objectRef).offsetHeight);}}else if(document.all){if(document.all[objectRef]){intHeight=document.all[objectRef].scrollHeight;}}else if(document.layers){if(document[objectRef]){intHeight=document[objectRef].clip.bottom;}}
return intHeight;}
function GetObjectWidth(objectRef){var intHeight=-1;if(document.getElementById){if(document.getElementById(objectRef)){intHeight=eval(document.getElementById(objectRef).offsetWidth);}}else if(document.all){if(document.all[objectRef]){intHeight=document.all[objectRef].scrollWidth;}}else if(document.layers){if(document[objectRef]){intHeight=document[objectRef].clip.right;}}
return intHeight;}
function SetUniformHeight(strPageObjects){intMaxHeight=0;if(strPageObjects){arrPageObjects=strPageObjects.split(",");}
if(arrPageObjects){for(i=0;i<arrPageObjects.length;i++){intThisHeight=GetObjectHeight(arrPageObjects[i]);if(intThisHeight>intMaxHeight){intMaxHeight=intThisHeight;}}
if(intMaxHeight>0){for(i=0;i<arrPageObjects.length;i++){strMaxHeight=intMaxHeight+'px';if(document.getElementById(arrPageObjects[i])){document.getElementById(arrPageObjects[i]).style.height=strMaxHeight;}}}}}
function FixActivexClick(){objectTags=document.getElementsByTagName("object");for(var i=0;i<objectTags.length;i++){objectTags[i].outerHTML=objectTags[i].outerHTML;}}
function GetCSSProperty(objElement,strCSSProperty,strCSSPropertyNS){if(objElement.currentStyle){return objElement.currentStyle[strCSSProperty];}else if(window.getComputedStyle){var objElementStyle=window.getComputedStyle(objElement,"");return objElementStyle.getPropertyValue(strCSSPropertyNS);}}
function addEvent(obj,evType,fn){if(obj.addEventListener){obj.addEventListener(evType,fn,false);return true;}else if(obj.attachEvent){var r=obj.attachEvent("on"+evType,fn);return r;}else{return false;}}
function removeEvent(obj,evType,fn,useCapture){if(obj.removeEventListener){obj.removeEventListener(evType,fn,useCapture);return true;}else if(obj.detachEvent){var r=obj.detachEvent("on"+evType,fn);return r;}else{alert("Handler could not be removed");}}
function FloatDiv(id,sx,sy){var ns=(navigator.appName.indexOf("Netscape")!=-1);var d=document;var el=d.getElementById?d.getElementById(id):d.all?d.all[id]:d.layers[id];var px=document.layers?"":"px";window[id+"_obj"]=el;if(d.layers)el.style=el;el.cx=el.sx=sx;el.cy=el.sy=sy;el.sP=function(x,y){this.style.left=x+px;this.style.top=y+px;};el.floatIt=function(){var pX,pY;pX=(this.sx>=0)?0:ns?innerWidth:document.documentElement&&document.documentElement.clientWidth?document.documentElement.clientWidth:document.body.clientWidth;pY=ns?pageYOffset:document.documentElement&&document.documentElement.scrollTop?document.documentElement.scrollTop:document.body.scrollTop;if(this.sy<0)
pY+=ns?innerHeight:document.documentElement&&document.documentElement.clientHeight?document.documentElement.clientHeight:document.body.clientHeight;this.cx+=(pX+this.sx-this.cx)/8;this.cy+=(pY+this.sy-this.cy)/8;this.sP(this.cx,this.cy);setTimeout(this.id+"_obj.floatIt()",40);}
return el;}
function getWindowDimension(strPlane){var dimension=0;switch(strPlane.toLowerCase()){case"width":if(typeof(window.innerWidth)=='number'){dimension=window.innerWidth;}else if(document.documentElement&&(document.documentElement.clientWidth)){dimension=document.documentElement.clientWidth;}else if(document.body&&(document.body.clientWidth)){dimension=document.body.clientWidth;}
break;case"height":if(typeof(window.innerHeight)=='number'){dimension=window.innerHeight;}else if(document.documentElement&&(document.documentElement.clientHeight)){dimension=document.documentElement.clientHeight;}else if(document.body&&(document.body.clientHeight)){dimension=document.body.clientHeight;}
break;}
return dimension;}
var getElementsByClassName=function(className,tag,elm){if(document.getElementsByClassName){getElementsByClassName=function(className,tag,elm){elm=elm||document;var elements=elm.getElementsByClassName(className),nodeName=(tag)?new RegExp("\\b"+tag+"\\b","i"):null,returnElements=[],current;for(var i=0,il=elements.length;i<il;i+=1){current=elements[i];if(!nodeName||nodeName.test(current.nodeName)){returnElements.push(current);}}
return returnElements;};}
else if(document.evaluate){getElementsByClassName=function(className,tag,elm){tag=tag||"*";elm=elm||document;var classes=className.split(" "),classesToCheck="",xhtmlNamespace="http://www.w3.org/1999/xhtml",namespaceResolver=(document.documentElement.namespaceURI===xhtmlNamespace)?xhtmlNamespace:null,returnElements=[],elements,node;for(var j=0,jl=classes.length;j<jl;j+=1){classesToCheck+="[contains(concat(' ', @class, ' '), ' "+classes[j]+" ')]";}
try{elements=document.evaluate(".//"+tag+classesToCheck,elm,namespaceResolver,0,null);}
catch(e){elements=document.evaluate(".//"+tag+classesToCheck,elm,null,0,null);}
while((node=elements.iterateNext())){returnElements.push(node);}
return returnElements;};}
else{getElementsByClassName=function(className,tag,elm){tag=tag||"*";elm=elm||document;var classes=className.split(" "),classesToCheck=[],elements=(tag==="*"&&elm.all)?elm.all:elm.getElementsByTagName(tag),current,returnElements=[],match;for(var k=0,kl=classes.length;k<kl;k+=1){classesToCheck.push(new RegExp("(^|\\s)"+classes[k]+"(\\s|$)"));}
for(var l=0,ll=elements.length;l<ll;l+=1){current=elements[l];match=false;for(var m=0,ml=classesToCheck.length;m<ml;m+=1){match=classesToCheck[m].test(current.className);if(!match){break;}}
if(match){returnElements.push(current);}}
return returnElements;};}
return getElementsByClassName(className,tag,elm);};function LoadVBPrinter(){if(gblnIE&&!gblnCanPrint&&!gblnMac)with(document){writeln('<OBJECT ID="WB" WIDTH="0" HEIGHT="0" CLASSID="clsid:8856F961-340A-11D0-A96B-00C04FD705A2"></OBJECT>');writeln('<'+'SCRIPT LANGUAGE="VBScript">');writeln('Sub window_onunload');writeln('    On Error Resume Next');writeln('    Set WB = nothing');writeln('End Sub');writeln('Sub vbPrintPage');writeln('    OLECMDID_PRINT = 6');writeln('    OLECMDEXECOPT_DONTPROMPTUSER = 2');writeln('    OLECMDEXECOPT_PROMPTUSER = 1');writeln('    On Error Resume Next');writeln('    WB.ExecWB OLECMDID_PRINT, OLECMDEXECOPT_DONTPROMPTUSER');writeln('End Sub');writeln('<'+'/SCRIPT>');}}
function PrintPage(){if(gblnCanPrint){window.print();}else if(gblnIE&&!gblnMac){vbPrintPage();}else{alert("Your web browser does not appear to support the automatic\nPrint function. To print this page, please select the \"Print\"\noption from the \"File\" menu of your web browser.");}}
function TextSize(strIncrement){strTextSize=GetCSSProperty(document.body,"fontSize","font-size");if(strTextSize.indexOf("em")>0){strTextSizeUnit="em";intTextSize=strTextSize.substring(0,strTextSize.length-2);}else if(strTextSize.indexOf("px")>0){strTextSizeUnit="px";intTextSize=strTextSize.substring(0,strTextSize.length-2);}else if(strTextSize.indexOf("%")>0){strTextSizeUnit="%";intTextSize=strTextSize.substring(0,strTextSize.length-1);}else{strTextSizeUnit="%";intTextSize="100";}
if(strIncrement=='-'){intTextSize=intTextSize/1.2;}else if(strIncrement=='+'){intTextSize=intTextSize*1.2;}
document.body.style.fontSize=intTextSize+strTextSizeUnit;}
var gstrImagesStatus="";var garrCSSBackgroundImages=new Array();function ToggleImages(){arrImageTags=document.getElementsByTagName('img');if(gstrImagesStatus=="off"){for(i=0;i<arrImageTags.length;i++){arrImageTags[i].parentNode.parentNode.className="DisplayImages";}
if(ResetCSSBackgroundImages){ResetCSSBackgroundImages();}
gstrImagesStatus="on";}else{for(i=0;i<arrImageTags.length;i++){if(gstrImagesStatus==""){strAltText=arrImageTags[i].alt;if(!strAltText){strAltText='Unknown image.';}
strImageHTML=arrImageTags[i].parentNode.innerHTML;strAltTextHTML="<span class=\"AltText\">"+strAltText+"</span>";oNewElement=document.createDocumentFragment();oImageContainer=document.createElement("span");oImageContainer.className="DisplayAltText";oImageContainer.innerHTML=strImageHTML+strAltTextHTML;oNewElement.appendChild(oImageContainer);arrImageTags[i].parentNode.replaceChild(oNewElement,arrImageTags[i]);}else{arrImageTags[i].parentNode.parentNode.className="DisplayAltText";}}
if(RemoveCSSBackgroundImages){RemoveCSSBackgroundImages();}
gstrImagesStatus="off";}}
function RemoveCSSBackgroundImages(){arrAllElements=document.getElementsByTagName('*');for(var i=0;i<arrAllElements.length;i++){if(garrCSSBackgroundImages){garrCSSBackgroundImages[i]=arrAllElements[i].style.backgroundImage;}
arrAllElements[i].style.backgroundImage='none';}}
function ResetCSSBackgroundImages(){if(garrCSSBackgroundImages&&garrCSSBackgroundImages.length>0){arrAllElements=document.getElementsByTagName('*');for(var i=0;i<arrAllElements.length;i++){arrAllElements[i].style.backgroundImage=garrCSSBackgroundImages[i];}}}
function WebForm_FireDefaultButton(event,target){}
function Body_OnLoad(){if(window.on_load&&(typeof window.on_load=="function"))window.on_load();}
