var student_list_modal = null;

function close_popup()
{
    student_list_modal.hide();
    student_list_modal = null;
}

function get_Add_Register_Student_Popup(strURL)
{
    student_list_modal = student_list_modal || null;
    if(student_list_modal !== null)
    {
        close_popup();
    }
    student_list_modal = new UI.Window({ theme:"lightbox", width:400, height:350});
    student_list_modal.setContent("<div style='padding:10px'>Loading...Please Wait.</div>").show(true).focus().center();
    student_list_modal.setHeader("Register and Add New Student");
    var clazz_id = $("portal_clazz_id").value;
    var options = {
        method: 'post',
        onSuccess: function(transport) {
            var text = transport.responseText;
            text = "<div id='oErrMsgDiv' style='color:Red;font-weight:bold'></div>"+ text;
            student_list_modal.setContent("<div style='padding:10px'>" + text + "</div>");
        }
    };
    var target_url = "/portal/classes/"+clazz_id+"/add_new_student_popup";
    new Ajax.Request(target_url, options);
}

function add_New_Student_To_Class()
{
    $('oErrMsgDiv').innerHTML = "";
    var oForm = $('new_portal_student');
    var options = {
        method: 'post',
        onSuccess: function(transport) {
            var text = transport.responseText;			
            var response = text.evalJSON(true);
            if (!response.success)
            {
                var error_msg = response.error_msg;
                if (typeof(response.error_msg) == "object")
                {
                    error_msg = "";
                    for (var strKey in response.error_msg)
                    {
                        if (response.error_msg.hasOwnProperty(strKey))
                        {
                            if (error_msg !== '')
                            {
                                error_msg += "<br />";
                            }
                            error_msg += strKey.replace(/_/g, " ").capitalize() + " " + response.error_msg[strKey];
                        }
                    }
                }
                
                $('oErrMsgDiv').innerHTML = error_msg;
            }
        }
    };
    
    oForm.request(options);
}


@@ -813,16 +813,34 @@
 ght:bold
+;margin-left: 7px;
 '%3E%3C/div%3E

Fix "Register and Add new student" alignment issue