
function detectUser() {
    if (window.XMLHttpRequest) {
        if (screen.height >= 900) {
            window.location = "http://tex-solutions.com/about.php";
        }
        else {
            window.location = "http://tex-solutions.com/alt_pages/about.php";
        }
    }
    else {
        window.location = "http://tex-solutions.com/alt_pages/about.php";
    }
}


function detectBrowser() {
    if (window.XMLHttpRequest) {

    }
    else {
        alert("You are using an older browser version. Some items may not display correctly. To correct this problem please upgrade to a browser version 7.0 or later. Alternatively this page can be viewed in Firefox or Chrome.");
    }
}

function showDiv(id1,id2) {
    if (document.getElementById(id1).style.display = "none") {
        document.getElementById(id1).style.display = "block";
        document.getElementById(id2).style.display = "none";
    }
}

function hideDiv(id1,id2) {
    if (document.getElementById(id1).style.display = "block") {
        document.getElementById(id1).style.display = "none";
        document.getElementById(id2).style.display = "block";
    }
}

/*
var wHeight;


// mozilla/netscape/opera/IE7)

if (typeof window.innerHeight != 'undefined') {
    wHeight = window.innerHeight
}

// IE6 in standards compliant mode

else if (typeof document.documentElement != 'undefined'
		 && typeof document.documentElement.clientHeight !=
		 'undefined' && document.documentElement.clientHeight != 0) {
    wHeight = document.documentElement.clientHeight
}

var adjHeight = wHeight - 340;

function changeHeight() {

    if (window.XMLHttpRequest) {
        document.getElementById("text-box").style.height = (100 + "%");
    }
    else {
        if (document.getElementById("text-box").style.height <= [wHeight]) {
            document.getElementById("text-box").style.height = ([wHeight] + "px");
        }
        else {
            document.getElementById("text-box").style.height = (100 + "%");
        }
    }
}

*/



         

