} else if (status == Strophe.Status.CONNECTED) {
log('Strophe is connected.');
queryJID = connection.domain;
} else if (status == Strophe.Status.CONNECTED) {
log('Strophe is connected.');
queryJID = connection.domain;
var type = $(this).attr("type");
if($(this).attr("label")) {
$("<label/>").text($(this).attr("label")).attr("for", $(this).attr("var")).appendTo(fieldset);
var type = $(this).attr("type");
if($(this).attr("label")) {
$("<label/>").text($(this).attr("label")).attr("for", $(this).attr("var")).appendTo(fieldset);