function checkUsername(){
    if(document.getElementById('txtusername').value == "") {
        document.getElementById('txtusername').style.backgroundColor = 'yellow';
        document.getElementById('txtusername').focus();
    } else {
        document.getElementById('txtusername').style.backgroundColor = 'white';
    }
}
function checkPassword(){
    if(document.getElementById('txtpassword').value == "") {
        document.getElementById('txtpassword').style.backgroundColor = 'yellow';
        document.getElementById('txtpassword').focus();
    } else {
        document.getElementById('txtpassword').style.backgroundColor = 'white';
    }
}

function checkForm(form) {
    if((document.getElementById('txtusername').value == '') || (document.getElementById('txtpassword').value == ''))  {
        checkPassword();
        checkUsername();
        return false;
    }
    return true;
}

var y       = 0;
var spd     = 2;
var show    = 0;

function changeheight(){
    
    e  = document.getElementById("login-container");
    f  = document.getElementById("login-form");
    
    if(y > 49 && show == 0){
        show = 1;
        return;
    }
    if(y <= 3 && show == 1){
        show = 0;
        e.style.display = 'none';
    return;
    }
    
    
    if(show){
        spd = -2;
    }
    if(!show){
        spd = 2;
    }
    y = y + spd;
    e.style.display     = 'block';
    e.style.height      = y + 1 + 'px';

    t=setTimeout("changeheight();",0);
    
    if(y >= 48) {
        f.style.display = 'block';
    } else {
        f.style.display = 'none';
    } 
    
}

function simplePreload() {
  var args = simplePreload.arguments;
  document.imageArray = new Array(args.length);
  for(var i=0; i<args.length; i++)
  {
    document.imageArray[i] = new Image;
    document.imageArray[i].src = args[i];
  }
}

simplePreload('/images/tc_nav_green.jpg','/images/tc_nav_static.jpg');


var queue_t2= "";
var queue_arrow= "";


function Showtips()
{
    myWindow = window.open("/taxtips/hrblock_tips.html", "tinyWindow2", 'scrollbars,toolbar,width=700,height=500')
}

function Showsurvey()
{
   myWindow = window.open("http://www.surveymonkey.com/s.asp?u=521351519156", "Window2", 'scrollbars,width=700,height=550')
}


function setMenu()
{
    if (t1_default != "")
    {
        document.getElementById(t1_default).style.display  = "block";

    }
}
