function login() {
   var action_type = document.getElementById("action_type");
   action_type.value = "login";
}


function register(the_form){
    
    var confirm_password = document.getElementById("confirm_password");
    alert(confirm_password.style.visibility);
    if(confirm_password.style.visibility == "hidden"){
    	confirm_password.style.visibility = "visible";
    }else{
    	alert("here we go1");
	var action_type = document.getElementById("action_type");
	alert("here we go2 "+action_type);
	action_type.value = "register";
	alert("here we go3");
    	document.regform.submit();
    }
    

}