function Rcertify(){popupWin=window.open("http://www.bbbonline.org/cks.asp?id=10211051319427423","Participant","location=yes,scrollbars=yes,width=450,height=370")}function Pcertify(){popupWin=window.open("http://www.bbbonline.org/cks.asp?id=108010318817 ","Participant","location=yes,scrollbars=yes,width=797,height=470")}function popUp(a){sealWin=window.open(a,"win","toolbar=0,location=1,directories=0,status=1,menubar=0,scrollbars=1,resizable=1,width=715,height=450")}function go_app_window(a){var b=null;var c,d;if(document.layers){c=screen.availWidth-12;d=screen.availHeight-33}else{if(is_aol){c=screen.availWidth-50}else{c=screen.availWidth-10}d=screen.availHeight-49;if(is_WinXP){d=screen.availHeight-62}}if(is_gecko){c=c+3}b=window.open(a,"OnlineTax","width="+c+",height="+d+",top=0,left=0,scrollbars=1,status=1");if(b==null||b.closed){alert("There was an error opening the program window.  A pop-up blocker may be in use. Change the settings on your pop-up blocker and try again.")}else{b.focus()}}function go_taxes02(a,b,c){var d;var e=document.location.host;var f;f="http://165.181.100.130/tnct2011_ct_release";if(closed_condition()){if(document.location.host.toLowerCase()=="localhost"||document.location.host.toLowerCase()=="165.181.99.78")e=document.location.host+"/tnct2011";d="http://"+e+"/"+plprefix+"unavailable.asp";document.location=d;return}if(NoCookie()){top.window.location=plprefix+"nocookies.asp"}if(document.location.host.toLowerCase()=="localhost"||document.location.host.toLowerCase()=="165.181.99.78"||document.location.host.toLowerCase()=="165.181.100.130"||document.location.host.toLowerCase()=="165.181.100.130")d=f+"/CT/Login/CTBegin.aspx";else d="https://"+document.location.host+"/CT/Login/CTBegin.aspx";if(isFFA){d=d+"?el=P"}else{switch(a){case 0:d=d+"?el=L";break;case 1:d=d+"?el=B";break;case 2:d=d+"?el=B";break;case 3:d=d+"?el=D";break;case 4:d=d+"?el=P";break;case 5:d=d+"?el=P";break;default:d=d+"?el=L";break}}if(cookie_rrid!="")d=d+"&RRID="+cookie_rrid;switch(c){case 1:d=d+"&offer=U";break;case 2:d=d+"&offer=I";break;case 3:d=d+"&offer=O";break;default:d=d+"&offer=";break}if(NoCookie()){top.window.location=plprefix+"nocookies.asp"}else{if(b){go_app_window(d)}else{if(is_ie){if(top.location)top.location.replace(d);else top.document.location.replace(d)}else top.location=d}}}function go_taxes(a){go_taxes02(a,0)}function go_taxes_UID(a){go_taxes02(0,0)}function go_tvcalc(a){var b;switch(a){case 1:b="http://www.tcalc.com/tvwww.dll?user?tmplt=usertool.htm&cstm=completetax2";break;case 2:b="http://www.tcalc.com/tvwww.dll?user?tmplt=homesuite.htm&cstm=completetax2";break;case 3:b="http://www.tcalc.com/tvwww.dll?user?tmplt=persfin.htm&cstm=completetax2";break;case 4:b="http://www.tcalc.com/tvwww.dll?user?tmplt=investsuite.htm&cstm=completetax2";break;case 5:b="http://www.tcalc.com/tvwww.dll?user?tmplt=retsuite.htm&cstm=completetax2";break;case 6:b="http://www.tcalc.com/tvwww.dll?user?tmplt=leasesuite.htm&cstm=completetax2";break;default:b="http://www.tcalc.com/tvwww.dll?user?tmplt=usertool.htm&cstm=completetax2";break}window.open(b,"tvcalc","top=0,left=0,toolbar=0,location=0,directories=0,status=1,menubar=0,scrollbars=1,resizable=1,width=580,height=520")}function WeightWords(a){var b=new Array;var c=new String;a=cleanString(a);b=RemoveCommonWords(a.split(" "));c=b.toString();c=c.replace(/[,]/g," ");while(c.lastIndexOf(" ")!=-1&&c.lastIndexOf(" ")==c.length-1){c=c.slice(0,-1)}return c}function DeleteElement(a,b){var c=new Array;if(b==0)return a.slice(1);else if(a.length==b+1)return a.slice(0,b);else{c=a.slice(b+1);a=a.slice(0,b);a=a.concat(c);return a}}function RemoveCommonWords(a){var b;for(b=0;b<a.length;){if(a[b].toUpperCase()=="THIS"||a[b].toUpperCase()=="THAT"||a[b].toUpperCase()=="DOES"||a[b].toUpperCase()=="YOUR"||a[b].toUpperCase()=="BOTH"||a[b].toUpperCase()=="HAVE"||a[b].toUpperCase()=="COMPLETETAX"||a[b].toUpperCase()=="HELP"||a[b].toUpperCase()=="WHEN"||a[b].toUpperCase()=="WHERE"||a[b].toUpperCase()=="WHAT"||a[b].toUpperCase()=="ISN'T"||a[b].toUpperCase()=="THANKS"||a[b].toUpperCase()=="THANK"||a[b].toUpperCase()=="PROBLEM"||a[b].toUpperCase()=="PROGRAM"||a[b].toUpperCase()=="SUPPORT"||a[b].length<4&&a[b].toUpperCase()!="IRS"&&a[b].toUpperCase()!="ID"&&a[b].toUpperCase()!="W2"&&a[b].toUpperCase()!="800"&&a[b].toUpperCase()!="600"&&a[b].toUpperCase()!="AGI")a=DeleteElement(a,b);else b++}return a}function cleanString(a){var b=new String;var c;for(c=0;c<a.length;c++){if(a.charAt(c)!="?"&&a.charAt(c)!='"'&&a.charAt(c)!=";"&&a.charAt(c)!="!"&&a.charAt(c)!=","&&a.charAt(c)!="."&&a.charAt(c)!="%"&&a.charAt(c)!="*"&&a.charAt(c)!="<"&&a.charAt(c)!=">"&&a.charAt(c)!="&"&&a.charAt(c)!="#"&&a.charAt(c)!="("&&a.charAt(c)!=")"&&a.charAt(c)!="]"&&a.charAt(c)!="["&&a.charAt(c)!="\\"&&a.charAt(c)!="+"&&a.charAt(c)!="^"&&a.charAt(c)!='"'){if(c==0||!(a.charAt(c)==" "&&b.charAt(b.length-1)==" ")||!(a.charAt(c)==" "&&c==a.length-1))b=b+a.charAt(c)}}return b}function noquotes(a){var b=new String;var c;for(c=0;c<a.length;c++){if(a.charAt(c)!='"'){b=b+a.charAt(c)}else b=b+"'"}return b}function killclicks(){document.onmousedown=right;document.onmouseup=right;if(document.layers)window.captureEvents(Event.MOUSEDOWN);if(document.layers)window.captureEvents(Event.MOUSEUP);window.onmousedown=right;window.onmouseup=right}function right(a){if(navigator.appName=="Netscape"&&(a.which==3||a.which==2||a.modifiers&Event.SHIFT_MASK)){status="Special clicks disabled.";status="";return false}else if(navigator.appName=="Microsoft Internet Explorer"&&(event.button==2||event.button==3||event.button==1&&event.shiftKey)){status="Special clicks disabled.";alert("Special clicks disabled.");status="";return false}return true}function openAWindow(a,b,c,d,e){xposition=0;yposition=0;if(parseInt(navigator.appVersion)>=4&&e){xposition=(screen.width-c)/2;yposition=(screen.height-d)/2}if(e==2){xposition=0;yposition=0}args="width="+c+","+"height="+d+","+"location=0,"+"menubar=0,"+"resizable=0,"+"scrollbars=1,"+"status=0,"+"titlebar=0,"+"toolbar=0,"+"hotkeys=0,"+"screenx="+xposition+","+"screeny="+yposition+","+"left="+xposition+","+"top="+yposition;return window.open(a,b,args)}function equiz_next(a){if(q1&&q2&&q3&&q4){window.document.location=a}else{alert('Please answer Yes or No to all questions before pressing "Next."')}}function get_parameter(a){var b=new String(top.location.search);var c=b.indexOf(a);var d,e;if(c!=-1){e=c+a.length+1;if(d==-1){d=b.length}if(e==d)var f="";else var f=b.substring(e,d)}return f}function get_cookie(a){var b=document.cookie;pos=b.indexOf(a);var c;var d="";if(pos!=-1){var e=pos+a.length+1;var f=b.indexOf(";",e);var g=b.indexOf("&",e);f<g||g==-1?c=f:c=g;if(c==-1){if(is_chrome){g<b.length?c=g:c=b.length}else{c=b.length}}if(e==c)d="";else d=b.substring(e,c)}return d}function pldosearch(){var a=new String;var b=new String(window.location.href.toUpperCase());var c=new String(cleanString(document.plsearch.plsearchfor.value));if(!(document.plsearch.plsearchfor.value=="")&&!(document.plsearch.plsearchfor.value=="?")){c=c.replace(/ /g,"%20");a="tax-guide/faq/plsearch.asp?browsestring=&category=All&searchstring="+c;if(b.indexOf("tnct2011_ct")!=-1)a="/tnct2011_ct/"+a;else if(b.indexOf("tnct2011")!=-1)a="/tnct2011/"+a;else a="/"+a;if(document.location==top.location)document.location=a;else top.main.location=a}}function dosearch(){var a=new String;var b=new String;var b=new String(window.location.href.toLowerCase());var c=new String(cleanString(document.search.searchfor.value));if(!(document.search.searchfor.value=="")&&!(document.search.searchfor.value=="?")){c=c.replace(/ /g,"%20");a="tax-guide/faq/search.asp?browsestring=&category=All&searchstring="+c;if(b.indexOf("tnct2011_ct")!=-1)a="/tnct2011_ct/"+a;else if(b.indexOf("tnct2011")!=-1)a="/tnct2011/"+a;else a="/"+a;a="http://"+document.location.host+a;if(document.location==top.location)document.location=a;else top.main.location=a}}function restore_frames(){var a="";var b="";var c="";var d,e;var f=new String(window.location.href.toLowerCase());if(f.indexOf("tnct")!=-1){if(f.indexOf("tnct2011_ct_Release")!=-1)a="/tnct2011_ct_Release";else a="/tnct2011"}if(f.indexOf("internet-taxprep")!=-1||get_cookie("branded")!="0"){b="pl"}else{c="CT"}d=window.location.pathname.lastIndexOf("/",window.location.pathname.length-2);if(d==-1||f.indexOf("pl")!=-1||f.indexOf("faq_files")!=-1||f.indexOf("taxguide")!=-1)e=window.location.pathname;else e=window.location.pathname.substring(0,d+1)+b+window.location.pathname.substring(d+1,window.location.pathname.length)}function NoCookie(){var a=document.cookie;var b=a.indexOf("ASPSESSION")==-1;var c=a.indexOf("accdata")==-1;if(a.length==0||b||c)return true;return false}function closed_condition(){var a=here.indexOf("test1")!=-1||here.indexOf("stage")!=-1||here.indexOf("test2")!=-1;var b=here.indexOf("165.181")!=-1||here.indexOf("172.19")!=-1||here.indexOf("10.204")!=-1||here.indexOf("10.200")!=-1;if(closed_flag&&!b){return true}return false}function verify(){var a=0;var b=new String("Please ");if(document.subscribe.email.value==null||document.subscribe.email.value==""||isblank(document.subscribe.email.value)){a=1;b+="enter your e-mail address.\n"}else{if(badmail(document.subscribe.email.value.toLowerCase())){a=1;b+="correct your e-mail address.\n"}}if(a==0){document.subscribe.success.value="1";alert("Thank you.  You will receive the newsletter at "+document.subscribe.email.value+".");return true}else{document.subscribe.success.value="0";alert(b);return false}}function badmail(a){var b=/^(\w+([-+.]\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*)?$/;if(b.test(a))return false;else return true}function isblank(a){for(var b=0;b<a.length;b++){var c=a.charAt(b);if(c!=" "&&c!="\n"&&c!="\t")return false}return true}window.onerror=function(){return true};var closed_flag=false;var agt=navigator.userAgent.toLowerCase();var is_ie=agt.indexOf("msie")!=-1;var is_ie4=agt.indexOf("msie 4.")!=-1;var is_ie6=agt.indexOf("msie 6.")!=-1;var is_opera=agt.indexOf("opera")!=-1;var is_nets=document.layers?true:false;var is_nets7=agt.indexOf("netscape/7")!=-1;var is_gecko=agt.indexOf("gecko")!=-1;var is_chrome=agt.indexOf("chrome")!=-1;var is_firefox=agt.indexOf("firefox")!=-1;var is_firefox15=agt.indexOf("firefox/1.5")!=-1;var is_firefox3=agt.indexOf("firefox/3")!=-1;var is_firefox20=agt.indexOf("firefox/2.0")!=-1;var is_firefox10=agt.indexOf("firefox/1.0")!=-1;var is_mac=navigator.appVersion.indexOf("Mac")!=-1;var is_WinXP=navigator.appVersion.indexOf("NT 5.1")!=-1;var is_Win2k=navigator.appVersion.indexOf("NT 5.0")!=-1;var is_aol=agt.indexOf("aol")!=-1;var openwidth;var openheight;var here=new String(window.location.href.toLowerCase());var cookie_acc=new String(get_cookie("&acc"));var cookie_sub=new String(get_cookie("sub"));var cookie_rrid=new String(get_cookie("RRID"));var cookie_branded=new String(get_cookie("branded"));var cookie_AMSflag=new String(get_cookie("AMSflag"));var querystring=top.location.search;var queryacc=new String;var querysub=new String;var plprefix=new String;var expDate=new Date;if(expDate.getMonth()>8){expDate.setFullYear(expDate.getFullYear()+1);expDate.setMonth(expDate.getMonth()-9)}else{expDate.setMonth(expDate.getMonth()+1)}var isFFA;if(cookie_acc=="131808"||cookie_acc=="133670"||cookie_acc=="143025")isFFA=true;else isFFA=false;plprefix="";if(here.indexOf("internet-taxprep")!=-1||get_cookie("branded")!="0")plprefix="pl";
