	<!--
	$(function() {
		$("#login_email").focus();
		//if($("#change_password")) $("#change_password").hide();
		$("#login_panel").hide();
		$("#change_password").hide();
		//Temporarily hide Login Panel
		//$("#login_section").hide();
	});
	
	function submit_form(login_type){
		//alert(login_type);
		var isOK;
		
		isOK=true;
		
		$("#login_type").attr("value", login_type);
		if(login_type=="login"){
			if($("#login_email").attr("value")=="" || $("#login_pass").attr("value")==""){
				alert("Please Enter email Address and Password!");
				isOK=false;
			}
		}else if(login_type=="retrieve"){
			//confirm before sending
			
			if($("#login_email").attr("value")==""){
				alert("Please Enter Registered email Address!");
				isOK=false;
			}else{
				if(!confirm("Retrieve Your Password!\n\n Are You Sure?")){	
					isOK=false;
				}
			}
		}
		
		if(isOK){$("#flogin").submit();}
	}
	
	function hide_show_login(){
		if($("#toggle_login_panel").text()=="[+]"){
			$("#toggle_login_panel").text("[-]");
			$("#login_panel").show();
		}
		else{
			$("#toggle_login_panel").text("[+]");
			$("#login_panel").hide();
		}
	}
	
	function hide_show_change_password(){
		if($("#toggle_change_password").text()=="[+]"){
			$("#toggle_change_password").text("[-]");
			$("#change_password").show();
		}
		else{
			$("#toggle_change_password").text("[+]");
			$("#change_password").hide();
		}
	}
	
	function submit_change_password(){
		//check fields
		if($("#pass_old").attr("value")==""){
			alert("Please Enter Old Password!");
			return false;
		}
		
		if($("#pass_new1").attr("value")=="" || $("#pass_new1").attr("value")!=$("#pass_new2").attr("value")){
			alert("Please Check New Passwords!");
			return false;
		}
		
		$("#fchangepassword").submit();
		
	}
	
	function open_member_manager(){
		//open window
		//window.moveTo(0,0);
		//window.resizeTo(screen.width,screen.height);
		var screen_width=screen.width - 10;
		var screen_height=screen.height - 50;
		
		admin_window=window.open("admin.asp","admin_window","scrollbars=yes, left=0, top=0,width=" + screen_width + ", height=" + screen_height);
		
	}
	
	//-->

