var aTabDesc = new Array(7);

var httpsArray = new Array();
httpsArray[0] = "/password.asp";
httpsArray[1] = "/login";
httpsArray[2] = "/checkout";
httpsArray[3] = "/processorder.asp";
httpsArray[4] = "/confirm.asp";
httpsArray[5] = "/secure";
httpsArray[6] = "/services/secure";
var loc = window.location.href;
var desiredProtocol = "http:";
//for (var i in httpsArray) {
//	if (loc.indexOf(httpsArray[i]) > 0)
//		desiredProtocol = "https:";
//}
//if (window.location.protocol != desiredProtocol)
//	window.location.href = desiredProtocol + loc.substring(loc.indexOf(":")+1, loc.length);

function matchHeight(){
    var myWidth = 0, myHeight = 0, headerHeight = 170, footerHeight = 90;

    if( typeof( window.innerWidth ) == 'number' ) {
        //Non-IE
        myWidth = window.innerWidth;
        myHeight = window.innerHeight;
    } else if( document.documentElement && ( document.documentElement.clientWidth || document.documentElement.clientHeight ) ) {
        //IE 6+ in 'standards compliant mode'
        myWidth = document.documentElement.clientWidth;
        myHeight = document.documentElement.clientHeight;
    } else if( document.body && ( document.body.clientWidth || document.body.clientHeight ) ) {
        //IE 4 compatible
        myWidth = document.body.clientWidth;
        myHeight = document.body.clientHeight;
    }
    //document.getElementById("idPageTemplateMainContent").style.height = (myHeight - headerHeight - footerHeight);
    myHeight = (myHeight - headerHeight - footerHeight);
    if(myHeight > 0){
        if (!document.all) {
            document.getElementById("idEntireBody").setAttribute("height", myHeight); 
	    }
	    else{
	        document.getElementById("idEntireBody").style.height = myHeight;
	     }
    }
} 

function FormatPage(){
	var nCurrWindowHeight; nHeaderFooterHeight = 0;
	if (document.all) {nCurrWindowHeight = document.body.offsetHeight;}
  	else{nCurrWindowHeight = document.body.clientHeight;}
	if(nCurrWindowHeight > nHeaderFooterHeight){
	    var adjustHeight = nCurrWindowHeight - nHeaderFooterHeight;
	    if (!document.all) {
            document.getElementById("idEntireBody").setAttribute("height", adjustHeight); 
	    }
	    else{
	        document.getElementById("idEntireBody").style.height = adjustHeight;
        }
	}
}