function login(){

	var id = document.getElementById('username').value;
	var password = document.getElementById('userpass').value;
	
	var iframe = Ext.DomHelper.append(Ext.getBody(),{
		tag:'iframe',
		src:'',
		width:0,
		height:0,
		visibility:'hidden',
		border:0,
		style:'border:none;',
		name:Ext.id()
	},true);
	
	var html = '<html><head></head><body>';
	html += '<form method="POST" action="http://ami-hq-ct.alaskanet.com/eworx/remote/LoginService.cfc?method=login&returnFormat=json">';
	html += '<input type="text" name="id" value="' + id + '"/>';
	html += '<input type="password" name="password" value="' + password + '"/>';
	html += '</form></body></html>';

	var doc = iframe.dom.contentDocument || iframe.dom.contentWindow.document;
	doc.open();
	doc.write(html);
	doc.close();
	doc.forms[0].submit();

	iframe.on('load',function(){
		alert('wtf?');
		document.location = 'http://ami-hq-ct.alaskanet.com/eworx';
		iframe.remove();
	},this);

}