function MM_reloadPage(init){if(init==true){with(navigator){if((appName=="Netscape")&&(parseInt(appVersion)==4)){document.MM_pgW=innerWidth;document.MM_pgH=innerHeight;onresize=MM_reloadPage}}}else{if(innerWidth!=document.MM_pgW||innerHeight!=document.MM_pgH){location.reload()}}}MM_reloadPage(true);function MM_preloadImages(){var f=document;if(f.images){if(!f.MM_p){f.MM_p=new Array()}var e,c=f.MM_p.length,b=MM_preloadImages.arguments;for(e=0;e<b.length;e++){if(b[e].indexOf("#")!=0){f.MM_p[c]=new Image;f.MM_p[c++].src=b[e]}}}}function RollOverWhite(b,a){b.style.backgroundColor="#F7F7F7"}function RollOutGrey(b,a){b.style.backgroundColor="#F7F7F7"}function RollOver(b,a){b.style.backgroundColor="#F2F2F2"}function RollOut(b,a){b.style.backgroundColor="#FFFFFF"}function disableReturnKeyText(){if(document.all){if(event.keyCode==13){event.returnValue=false;event.cancel=true}}}function hitEnter(){if(document.all){if(event.keyCode==13){event.returnValue=false;event.cancel=true;return true}else{return false}}}function numbersOnly(b){var a=b.charCode?b.charCode:b.keyCode;if(a!=8){if(a<48||a>57){return false}}return true}function digitsOnly(b){var a=b.charCode?b.charCode:b.keyCode;if(a!=8&&a!=32){if(a<48||a>57){return false}}return true}function fnTrapKD(a){if(document.all){if(event.keyCode==13){event.returnValue=false;event.cancel=true;a.click()}}}function checkDatePartOfDate(b,a,c){var d="0123456789";for(i=0;i<b.value.length;i++){if(d.indexOf(b.value.substring(i,i+1))==-1){alert("Day part of date can only accepts numeric values.");b.value=b.value.substring(0,b.value.length-1);break}}if(!checkDate(b.value,a.options[a.selectedIndex].value,c.options[c.selectedIndex].value)){b.value="";b.focus()}}function getMonthNumber(a){switch(a.toLowerCase()){case"jan":return 0;case"feb":return 1;case"mar":return 2;case"apr":return 3;case"may":return 4;case"jun":return 5;case"jul":return 6;case"aug":return 7;case"sep":return 8;case"oct":return 9;case"nov":return 10;case"dec":return 11}}function checkDate(a,e,b){if(a!=""){var f=new Date();f.setFullYear(b,e-1,a);var c=!((a==f.getDate())&&((e-1)==f.getMonth())&&(b==f.getFullYear()));if(c||isNaN(f)){alert("Please supply a valid date.");return false}return true}}function viewC24Terms(c){var a=screen.availHeight-20;var b=window.open(c+"Info/Terms.aspx","","width=600,height="+a+",location=no,scrollbars=yes");b.moveTo(0,0)}function viewMallTerms(c){var a=screen.availHeight-20;var b=window.open(c+"Info/MallTerms.aspx","","width=600,height="+a+",location=no,scrollbars=yes");b.moveTo(0,0)}function viewOnlineHelp(d){var a=d;a+="\n</BODY>\n</HTML>";var c=new Object();c.PrintHTML=a;var b=window.showModalDialog("Help.htm",c,"dialogHeight: 480px; dialogWidth: 310px; edge: Raised; center: Yes; help: Yes; resizable: No; status: No;");b.moveTo(50,50)}function viewHelp(b){var a=window.open("Help.htm","","width=250,height=350,location=no,scrollbars=yes");a.moveTo(50,50)}function viewHelp(e,d){var a=d;a+="\n</BODY>\n</HTML>";var c=new Object();c.Title=e;c.PrintHTML=a;c.AutoPrint=gAutoPrint;var b=window.showModalDialog("Help.htm",c,"dialogHeight: 300px; dialogWidth: 310px; edge: Raised; center: Yes; help: Yes; resizable: No; status: No;");b.moveTo(50,50)}function formatAmt(a){var b=new String(a);var c="0";if(isNaN(parseInt(a))){c="0"}if(a>=1000){c=b.substring(0,b.length-3)+","+b.substring(b.length-3)}else{c=b}return c}function popInfoWin(f){var d=350;var e=300;var c=(window.screen.width-d)/2;var a=(window.screen.height-e)/2;var b=window.open("RequestInfo.aspx?package="+f,"","width=350,height=300,location=no,scrollbars=no");b.moveTo(c,a)}function stripHTML(a){var c="";var d=false;for(var b=0;b<a.length;b++){if(a.charAt(b)=="<"){d=true}if(a.charAt(b)==">"){if(a.charAt(b+1)!="<"){d=false;b++}}if(!d){c+=a.charAt(b)}}return c}var gAutoPrint=true;function printSpecial(b){if(document.getElementById!=null){var a="";var e=document.getElementById("printReady");if(e!=null){a+=e.innerHTML}else{alert("Could not find the printReady section in the HTML");return}a+="\n</BODY>\n</HTML>";var c=new Object();c.Title=b;c.PrintHTML=a;c.AutoPrint=gAutoPrint;var d=window.showModalDialog("Print.htm",c,"dialogHeight: 500px; dialogWidth: 700px; edge: Raised; center: Yes; help: Yes; resizable: No; status: No;")}else{alert("Sorry, the print ready feature is only available in modern browsers.")}};