function reg(){
	win_reg = new Ext.Window({
		id:'win_reg',
		width:550,//'auto',
		height:'auto',
		maximizable:false,
		pageY:50,
		resizable:true,
		title:"HMFA.ca User Registration",
		items:[
			new Ext.FormPanel({
				//title:'Registration Form',
				frame:true,
				margin: '10 10 10 10',
				//layout:'fit',
				items:[
					{
						html:'You are about to register an account with HMFA.ca. In order to have your registration processed, you must fill out the following form completely. An email will then be sent to your team\'s head coach so that he can review your application and grant your account access to your selected team\'s protected content. Failure to fill out part of the form will result in access not being granted. Your user details will never be shared with any third party and is collected solely for use by the website to identify you as a qualified viewer, and ensure the protection of team information from casual browsers.<div class="sp5"></div>',
					},
					new Ext.form.FieldSet({
						title: 'User Information',
						autoHeight: true,
						//defaultType: 'textfield',
						defaults: {
							labelStyle:'width:120px; font-weight:normal; font-size:12px;',
							allowBlank: false,
						},
						items: [
							{
								xtype: 'textfield',
								fieldLabel: 'Your Full Name',
								name: 'username',
								width:250
							},
							{
								allowblank:false,
								fieldLabel: 'Date of Birth',
								name:'dob'
							},
							new Ext.form.ComboBox({
								typeAhead: true,
								fieldLabel:'My Team',
								triggerAction: 'all',
								lazyRender:false,
								mode: 'local',
								store: new Ext.data.ArrayStore({
									id: 0,
									fields: ['teamID','teamSched','divID','divName','teamLoc','teamName','teamFull','teamPark'],//g_teamSet
									data: g_hmfaTeams
								}),//"'teamID','teamSched','divID','divName','teamLoc','teamName','teamPark'";
								valueField:'teamID',
		                        displayField:'teamFull',
		                        typeAhead: true,
		                        mode: 'local',
		                        triggerAction: 'all',
		                        emptyText:'Select a team...',
		                        selectOnFocus:true,
		                        width:190,
								name:'selteam'
							}),
							new Ext.form.ComboBox({
								typeAhead: true,
								fieldLabel:'Account Type',
								triggerAction: 'all',
								lazyRender:false,
								mode: 'local',
								store: new Ext.data.ArrayStore({
									id: 0,
									fields: ['level','levelName'],
									data: g_userLevels
								}),
								valueField:'level',
		                        displayField:'levelName',
		                        typeAhead: true,
		                        mode: 'local',
		                        triggerAction: 'all',
		                        emptyText:'I am a...',
		                        selectOnFocus:true,
		                        width:190,
								name:'accttype',
								id:'accttype'
							}),
							{
								html:'If you are registering an account as a parent please input your son/daughter(s) name(s) below for verification purposes',
								padding:'5'
							},
							{
								xtype: 'textfield',
								fieldLabel: 'Player',
								emptyText:'Your son/daughter\'s name',
								name: 'playername',
								//hidden: true,
								id:'playername',
								width:250
							}
						]
					}),
					new Ext.form.FieldSet({
						title: 'Account Details',
						autoHeight: true,
						defaultType: 'textfield',
						defaults: {
							labelStyle:'width:120px; font-weight:normal; font-size:12px;',
							allowBlank: false,
							width:180
						},
						items: [
							{
								fieldLabel: 'Email Address',
								name: 'email',
								width:180
							},
							{
								fieldLabel: 'Desired Password',
								name:'password',
								width:180
							}
						]
					})
				],
				buttons: [
					{
						text: 'Register'
					},{
						text: 'Cancel'
					}
				]
			})
		]
	});
	win_reg.show();
	//Ext.QuickTips.init();
    // turn on validation errors beside the field globally
    //Ext.form.Field.prototype.msgTarget = 'side';


}