Or you could give the username a default.
function MakeHeader($pagename, $uselogin = "null")
{
//code
}
This way, if the function is ever called with MakeHeader("bla!"), then it'll default the second variable to "null", but you can still overwrite the second variable with MakeHeader("bla!", "double bla!").
Methinks that should help, ja?