Hello craigr7,
So you're saying that you want to activate page lengthening if location.hash is equal to any one of those three values? That would suggest an OR expression:
Code:
if (location.hash === "#anchor1" ||
location.hash === "#anchor2" ||
location.hash === "#anchor3")
{
// then activate page lengthening...
}