var TabsWhere, Tabs2Where, LoginForm, LoginWhere, ForgotForm, ForgotWhere, Button1;

$(function() {  
  LoginWhere = $("#tab-1");
  LoginForm = $("#LoginForm"); 
  TabsWhere = $("#tab-container > ul");
  Button1 = $("#tab-1 #Button1");
  text[0] = Button1.val(); 
    
  TabsWhere.tabs({selected: selected_TAB}); //disabled: [1, 2, 3, 4]  , disabled: [1]  
  
  //ForgotFormHandle();
  
  $("#ForgotLink", LoginForm).click(function(){ 
      TabsWhere.tabs('select', 1);
      return false;                
  });
});

function ForgotFormHandle() {
	var ErrorsWhere = $("#ForgotErrors");
    $("#ForgotForm").validate({
		rules: {				
			email: {
			    required: true,
				email: true
			}
		},
        messages: {
			email: {
                required: text[2],
				email: text[3]
			}
		},
		errorContainer: ErrorsWhere,
		errorLabelContainer: $("ul", ErrorsWhere),
		wrapper: 'li'
	});
}


function LoginFormHandling() { 
 
         
}


