Ok guys, i've been trying to develop a webpage that can grab the ID of a flashvar from an embed by using an alert & element ID code

HTML Code:
function input2() {
var iFr = document.frames("IDGET").document;
iFr.location.alert;
var idget4 = prompt("Id Get", "GroupName");
document.getElementById("IDGET").src="http://xat.com/"+ idget4 +"?admin";
var language = iFr.documentElement.getAttribute('value');
alert(language);
i've been struggling all day, im not very profound with javascript
btw, i'm using an Iframe for this which doesn't make it any easier


i was trying to grab the flashvars from here, specifcally the ID.

HTML Code:
<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0" width="728" height="486" id="chat" align="middle">
<param name="allowScriptAccess" value="sameDomain" />
<param name="movie" value="http://www.xatech.com/web_gear/chat/chat.swf" />

<param name="quality" value="high" /><param name="bgcolor" value="#000000" />
<param name="FlashVars" value="id=104580461&xc=2336&cn=1136551085&gn=Zietgeist" />
<embed src="http://www.xatech.com/web_gear/chat/chat.swf" quality="high" bgcolor="#000000" width="728" height="486" name="chat" FlashVars="id=104580461&xc=2336&cn=1136551085&gn=Zietgeist" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://xat.com/update_flash.shtml" />


full webpage code

HTML Code:
<html>
<head>
<script type="text/javascript">
function ehhem() {
document.getElementById("xat").src="http://www.xatech.com/web_gear/chat/chat.swf?&id=92787532&rf=1&xc=32";
}
function exploits() {
document.getElementById("xat").src="http://www.xatech.com/web_gear/chat/chat.swf?&id=33252997&rf=1&xc=32";
}
function tmb() {
document.getElementById("xat").src="http://www.xatech.com/web_gear/chat/chat.swf?&id=41017522&rf=1&xc=32";
}
function xatgraphics() {
document.getElementById("xat").src="http://www.xatech.com/web_gear/chat/chat.swf?&id=51811481&rf=1&xc=32";
}
function mpl() {
document.getElementById("xat").src="http://www.xatech.com/web_gear/chat/chat.swf?&id=97223115&rf=1&xc=32";
}
function input() {
var name = prompt("Custom Chat ID", "chat id here");
document.getElementById("xat").src="http://www.xatech.com/web_gear/chat/chat.swf?&id="+ name +"&rf=1&xc=32";
}
function input2() {
var iFr = document.frames("IDGET").document;
iFr.location.alert;
var idget4 = prompt("Id Get", "GroupName");
document.getElementById("IDGET").src="http://xat.com/"+ idget4 +"?admin";
var language = iFr.documentElement.getAttribute('value');
alert(language);
}
</script>


</head>

<body background="http://wallbase2.net/high-resolution/f566702031610e79d5f62f2194d4517b/wallpaper-528593.jpg">
</br>>
</br>
<form>
<input type="button" value="Ehhem" align="left" onclick="ehhem()" />
<input type="button" value="MPL" align="center" onclick="mpl()" />
<input type="button" value="exploits" align="right" onclick="exploits()" />
<input type="button" value="TMB" align="left" onclick="tmb()" />
<input type="button" value="xatgraphics" align="center" onclick="xatgraphics()" />
</br>
<input type="button" value="Custom Chat ID" align="center" onclick="input()" />
<input type="button" value="Get Chat ID" align="center" onclick="input2()" />
</form>

<div id"="box1" align="left">
<embed id="xat" src="http://www.xatech.com/web_gear/chat/chat.swf?&id=1&rf=1&xc=32" height="700" width="800" align="center" />
</div>
<div id="box" align="right">
<iframe id="IDGET" src="http://xat.com/web_gear/chat/inappropriate.php?GroupName=Zietgeist" height="2" width="2"/>
</div>

</body>
</center>
</html>