function genOnSubmit(){
	if (document.fr .genuid  .value== "")
		{alert("Please enter your user name.");document.fr .genuid  .focus();return false;}
	if (document.fr .genpwd .value == "")
		{alert("Please Enter your password.");document.fr.genpwd .focus();return false;}
	sel=document.fr .as .options [document.fr .as .selectedIndex ].value
	
	if(sel == "0")
	{alert("Please select log in as");
	document.fr .as.focus ();
	return false;
	}
	return true;	
}
document.write('<form  action=\'enter.asp\' method=\'post\' name=\'fr\' id="fr" onsubmit=\'return genOnSubmit()\'> ');
document.write('              <table width="200" border="0"> ');
document.write('                <tr> ');
document.write('                  <td>Login as</td> ');
document.write('                  <td><select name="as" id="as" style="font-family: verdana border-right: #CCCCFF 1px solid; border-top: #CCCCFF 1px solid; border-left: #CCCCFF 1px solid; border-bottom: #CCCCFF 1px solid; width: 147px;"> ');
document.write('                    <option value=\'0\'>Select</option> ');
document.write('                    <option value=\'1\'>Candidate</option> ');
document.write('                    <option value=\'2\'>Institute</option> ');
document.write('                    <option value=\'3\'>Corporate</option> ');
document.write('                    <option value=\'4\'>Associate</option> ');
document.write('                    <option value=\'5\'>Prometic Center</option> ');
document.write('                    <option value=\'6\'>Placement Update</option> ');
document.write('                  </select> ');
document.write('                  </td> ');
document.write('                  <td>&nbsp;</td> ');
document.write('                </tr> ');
document.write('                <tr> ');
document.write('                  <td>Name</td> ');
document.write('                  <td><input type="text" name="genuid" style="border-right: #CCCCFF 1px solid; border-top: #CCCCFF 1px solid; border-left: #CCCCFF 1px solid; border-bottom: #CCCCFF 1px solid"/></td> ');
document.write('                  <td>&nbsp;</td> ');
document.write('                </tr> ');
document.write('                <tr> ');
document.write('                  <td>Password</td> ');
document.write('                  <td><input name="genpwd" type="password" id="genpwd" style="border-right: #CCCCFF 1px solid; border-top: #CCCCFF 1px solid; border-left: #CCCCFF 1px solid; border-bottom: #CCCCFF 1px solid"/></td> ');
document.write('                  <td><input name="image" type="image" value="submit" src="images/go.gif" alt="Go" /></td> ');
document.write('                </tr> ');
document.write('              </table> ');
document.write('              </form> ');
