I'm trying to do something lik dis.
the xhtml page from which this javascript is called is in a frame.

Code:
var e_id=document.getElementById("abcd");
if(e_id.value=="")
{
	alert("Please enter your username/email address");		
	e_id.focus();
	ghi.signinform.abcd.focus();
}
the .focus() function doesnt seem to work.. I'm new at this.. any help is appreciated.