Is there a way with javascript to parse the html of another page and using that validate a variable before inserting to an access database.
Basically I want to validate an xbox live gamertag before allowing the gamertag to be submitted to my DB. The field in my DB is "gamertag"

This is the code I wan to use to validate a gamertag a valid tag needs the
<h3 class="XbcGamertagSilver"> or the <h3 class="XbcGamertagGold">

an invalid tag has the <h3 class="XbcGamertagSilver"> and the image<img class="XbcgcGamertile" height="64" width="64" src="/xweb/lib/images/QuestionMark64x64.jpg" />


INVALID TAG
<h3 class="XbcGamertagSilver">
<a href="http://live.xbox.com/member/notagat747">
<img class="XbcgcGamertile" height="64" width="64" src="/xweb/lib/images/QuestionMark64x64.jpg" /></a>


VALID TAG SILVER
<h3 class="XbcGamertagSilver">
<a href="http://live.xbox.com/member/GOWTOURNEY%20REF">
<img class="XbcgcGamertile" height="64" width="64" src="http://tiles.xbox.com/tiles/mQ/yy/12dsb2JhbC9GCFZXVEoAGAFdL3RpbGUvMC8yMTAyMgAAAAAAAAD4nQy5.jpg" /></a>

VALID TAG GOLD
<h3 class="XbcGamertagGold">
<a href="http://live.xbox.com/member/Major%20Nelson">
<img class="XbcgcGamertile" height="64" width="64" src="http://tiles.xbox.com/tiles/v-/1z/1Gdsb2JhbC9ECFZXVEoAGAFdL3RpbGUvMC8yMTAyMAAAAAAAAAD7XP2f.jpg" /></a>

I don't need the code written for me just a good outline on how I could do this.

Thanks