<input name="username" type="text" size="24" maxlength="20" height="20">
//此处为右侧的按钮
<input type="button" name="Submit4" value="检测用户名"
onClick="javascript:openScript('checkusername.asp?username='+document.form.username.value,280,100)">
//上面的form为表单的名字