// useful functions

// Create a link 
function makelink( url, text)
{
document.write( '<a href="', url, '">', text, '</a>');
}

// Create a URL based on machine, course
function makeurl( machine, file)
{
return 'http://' + machine + '.boisestate.edu/~tcole/cs' + 
    coursenum + '/' + semester + '/' + file;
}

// Create a link that shows the URL
function showlink( machine, file)
{
url = makeurl( machine, file);
makelink( url, url);
}

// showcommand
function showcommand( cmd)
{
document.write( "<blockquote><command>", cmd, "</command></blockquote>");
}

// Display a submit command
function showsubmit( grader, assignnum)
{
document.write( "<blockquote><command>submit ", 
    grader, " cs", coursenum, " ", assignnum, 
    "</command></blockquote>");
}

