function login(){
	var txt = '<h3 style="text-align:center;">Login to PECI</h3><form name="loginForm"><ol><li><label for="netid">Netid:</label><input type="text" id="netid" name="netid" /></li><li class="last"><label for="password">Password:</label><input type="password" id="password" name="password" /></li></ol></form>';
	
	$.promptExt(txt,{ 
		buttons:{'Login':'loginForm', 'Cancel':false},
		persistent: false,
		classes: 'narrow login',
		loaded: function() {
			$("#netid").focus();
		},
		submit: function(v,m,f){
			if(v == 'loginForm'){
				$.post('/include/login.php', {netid:f.netid,password:f.password,prompt:"yes"}, function(data){
					if(data == 'true'){
						jQuery.prompt.close();
						location.reload(true);// = '/admin/';
					} else {
						$.prompt(data);
					}							
				});
			}
			else{}
		}
	});
}
