[CODE]<HTML>
<HEAD>
</HEAD>
<script type=”text/javascript”>
document.onmouseover = doDocumentOnMouseOver;
document.onmouseout = doDocumentOnMouseOut;
var watson_window;
function openWatson() {
var url = ‘https://watson3.t-mobile.com/watson.html’;
// alert(“URL= ” + url);
//alert(“watson_window =” + watson_window);
if(watson_window != null && !watson_window.closed)
{
try
{
var fConfirm = window.confirm( “The currently open Watson window will be closed, and anyractivation data there will be lost. Are you sure?” );
if ( fConfirm )
{
watson_window.close();
}
else
{
watson_window.focus();
return;
}
}
catch (error)
{
return;
}
}
// if(watson_window != null) watson_window.close();
watson_window = window.open(url,”WATSON”,”toolbar=1,location=1,directories=0,status=1,resizable=no,menubar=1,width=775,height=550,screenX=5,screenY=5,scrollbars=yes”);
watson_window.focus();
}
[COLOR=”DarkOrange”]function autofill() {
watson_window.top.middle.document.getElementByName(“username”).value = “userID”;
}[/COLOR]
</script>
<body leftmargin=”10″>
<A ID=Anything1 HREF=”JavaScript:openWatson()” class=Outline2 border=”0″ > Logon</A><br>
<a href=”JavaScript:autofill()”>autofill</a><br>
</body>
</HTML>
This code pops up new window named “WATSON” and the new window opens “