// Traveltek
// Relating to Traveltek DP and Cruise systems
// Zebra striping for rows - e.g. results rows.
// Returns either row_1 or row_2 which can be used as alternate classes.

count = 1;
function resultrow(){
	var rowname;
	count++;
    if (count % 2 == 0){
        rowname = "row_1";
    }
    else {
        rowname = "row_2";
    }
	return rowname;
}

// Example call in the page would be:
// var rowname = resultrow();
// document.write("<div class=\"" + rowname + "\">");

// End striping.


// Interval Messages for loading pages.

var ttcount = 0;
function texttimer()
{
ttcount++;
    if (ttcount == 1)
    {
        document.getElementById('msg').innerHTML="THIS IS AFTER 10 SECONDS";
    }
    else if (ttcount == 2)
    {
        document.getElementById('msg').innerHTML="THIS IS AFTER 20 SECONDS";
    }
    else if (ttcount == 3)
    {
        document.getElementById('msg').innerHTML="THIS IS AFTER 30 SECONDS";
        window.clearInterval(loadmsg);
    }
}

// Example call in the page would be:
// var loadmsg = "";
// loadmsg = window.setInterval('texttimer()',10000);

// End Interval Messages
