function popUp(url){sealWin=window.open(url,"win",'toolbar=0,location=0,directories=0,status=1,menubar=0,resizable=1,scrollbars=1,width=600,height=450');self.name = "mainWin";}
var isNetscape = false;
if (parseInt(navigator.appVersion.charAt(0)) >= 4)
	isNetscape = (navigator.appName == "Netscape") ? true : false
var agt=navigator.userAgent.toLowerCase();
var is_major = parseInt(navigator.appVersion); 
var is_ie = (agt.indexOf("msie") != -1);
var isIE = (is_ie  && (is_major >= 4));
function DlxOnlyMsg(){window.alert ('Only the Deluxe Edition of TaxACT Online is available for review.');}
function StartReturn (sReturnType){if (sReturnType == 'Bundle' || sReturnType == 'Deluxe' || sReturnType == 'Free Federal Edition'){eval ("document.frmStart" + sReturnType + ".submit();");}}
function onHandleKeyPress(e){
	if (isNetscape)
		var keycode = e.which;
	else if (isIE)
		var keycode = e.keyCode;
	else
		var keycode = 0;
	if (keycode == 13){
		if (ValSignInfo(window.document.signin))
			;
		return false;
	}
}

if (Tabs == "True"){
	var viewportwidth,addPadding,addPadding2;
	//find the width of the browser viewport
	if (typeof window.innerWidth != 'undefined'){
		// the more standards compliant browsers (mozilla/netscape/opera/IE7) use window.innerWidth and window.innerHeight
		viewportwidth = window.innerWidth;
	}else if (typeof document.documentElement != 'undefined' && typeof document.documentElement.clientWidth != 'undefined' && document.documentElement.clientWidth != 0){
		// IE6 in standards compliant mode (i.e. with a valid doctype as the first line in the document)
		viewportwidth = document.documentElement.clientWidth;
	}else{
		// older versions of IE
		viewportwidth = document.getElementsByTagName('body')[0].clientWidth;
	}
	var viewportwidthtest = viewportwidth;
	var viewportwidthtest2 = viewportwidth;
	if (viewportwidthtest < 825){viewportwidthtest = 825;}
	if (viewportwidthtest2 < 617){viewportwidthtest2 = 617;}
	if (viewportwidth < 960){
		addPadding = 945 - viewportwidthtest;
		addPadding2 = 945 - viewportwidthtest2;
		document.getElementById('tabPad').width = addPadding2 / 2;
		document.getElementById('headerPad').width = addPadding;
	}
}