var container = new Element('div'); container.addClass('groupsInfoList');  for (var i = 0; i < groupsInfo.length; i++) { var group = new Element('div'); group.addClass('groupInfoEntryContainerStyleClass');   if (properties.showName) { getGroupInfoEntryPO(properties.localizedText[0], groupsInfo[i].name, properties.showEmptyFields, properties.showLabels, 'groupInfoNameContainerStyleClass').injectInside(group); }  if (properties.showShortName) { getGroupInfoEntryPO(properties.localizedText[1], groupsInfo[i].showShortName, properties.showEmptyFields, properties.showLabels, 'groupInfoShortNameContainerStyleClass').injectInside(group); }  if (properties.showAddress) { getAddressContainer(groupsInfo[i].address, 'groupAddressContainer', properties.showEmptyFields, properties.showLabels, properties.localizedText[2]).injectInside(group); }  if (properties.showPhone) { getGroupInfoEntryPO(properties.localizedText[3], groupsInfo[i].phoneNumber, properties.showEmptyFields, true, 'groupInfoPhoneContainerStyleClass').injectInside(group); }  if (properties.showPhone) { getGroupInfoEntryPO(properties.localizedText[4], groupsInfo[i].faxNumber, properties.showEmptyFields, true, 'groupInfoFaxContainerStyleClass').injectInside(group); }  if (properties.showHomePage) { var homePage = getEmptyValueIfNull(groupsInfo[i].homePageUrl); if (properties.showEmptyFields || homePage.length > 0) { var homePageContainer = new Element('div'); homePageContainer.addClass('groupInfoHomepageContainerStyleClass'); if (properties.showLabels) { homePageContainer.appendText(properties.localizedText[5]); } var link = new Element('a'); link.appendText(homePage); link.setProperty('href', 'http: link.setProperty('target', 'newWindow'); link.injectInside(homePageContainer); homePageContainer.injectInside(group); } }  if (properties.showEmails) { var text = null; if (properties.showLabels) { text = properties.localizedText[6]; } var emailsContainer = getEmailsContainer(text, groupsInfo[i].emailsAddresses, 'groupInfoEmailsContainerStyleClass'); emailsContainer.injectInside(group); }  if (properties.showDescription) { getGroupInfoEntryPO(properties.localizedText[7], groupsInfo[i].description, properties.showEmptyFields, properties.showLabels, 'groupInfoDescriptionContainerStyleClass').injectInside(group); }  if (properties.showExtraInfo) { getGroupInfoEntryPO(properties.localizedText[8], groupsInfo[i].extraInfo, properties.showEmptyFields, properties.showLabels, 'groupInfoExtrainfoContainerStyleClass').injectInside(group); }  getDivsSpacer().injectInside(group); group.injectInside(container); }  getDivsSpacer().injectInside(container); container.injectInside(main); closeAllLoadingMessages(); 
GroupService.getLocalizationForGroupInfo({ callback: function(localizedText) { renderGroupsInfoViewerWithAllData(groupsInfo, properties, containerId, localizedText); }, rpcType:dwr.engine.XMLHttpRequest }); 
function getGroupsInfoCallback(groupsInfo, properties, containerId) {	prepareDwr(GroupService, getDefaultDwrPath());	//	Restoring DWR	if (groupsInfo == null || containerId == null) {		closeAllLoadingMessages();		return false;	}	var main = $(containerId);	if (main == null) {		closeAllLoadingMessages();		return false;	}	main.empty();		var container = new Element('div');	container.addClass('groupsInfoList');		for (var i = 0; i < groupsInfo.length; i++) {		var group = new Element('div');		group.addClass('groupInfoEntryContainerStyleClass');				//	Name		if (properties.showName) {			getGroupInfoEntryPO(properties.localizedText[0], groupsInfo[i].name, properties.showEmptyFields, properties.showLabels, 'groupInfoNameContainerStyleClass').injectInside(group);		}		//	Short name		if (properties.showShortName) {			getGroupInfoEntryPO(properties.localizedText[1], groupsInfo[i].showShortName, properties.showEmptyFields, properties.showLabels, 'groupInfoShortNameContainerStyleClass').injectInside(group);		}		//	Address		if (properties.showAddress) {			getAddressContainer(groupsInfo[i].address, 'groupAddressContainer', properties.showEmptyFields, properties.showLabels, properties.localizedText[2]).injectInside(group);		}		//	Phone		if (properties.showPhone) {			getGroupInfoEntryPO(properties.localizedText[3], groupsInfo[i].phoneNumber, properties.showEmptyFields, true, 'groupInfoPhoneContainerStyleClass').injectInside(group);		}		//	Fax		if (properties.showPhone) {			getGroupInfoEntryPO(properties.localizedText[4], groupsInfo[i].faxNumber, properties.showEmptyFields, true, 'groupInfoFaxContainerStyleClass').injectInside(group);		}		//	HomePage		if (properties.showHomePage) {			var homePage = getEmptyValueIfNull(groupsInfo[i].homePageUrl);			if (properties.showEmptyFields || homePage.length > 0) {				var homePageContainer = new Element('div');				homePageContainer.addClass('groupInfoHomepageContainerStyleClass');				if (properties.showLabels) {					homePageContainer.appendText(properties.localizedText[5]);				}				var link = new Element('a');				link.appendText(homePage);				link.setProperty('href', 'http://' + homePage);				link.setProperty('target', 'newWindow');				link.injectInside(homePageContainer);				homePageContainer.injectInside(group);			}		}		//	Emails		if (properties.showEmails) {			var text = null;			if (properties.showLabels) {				text = properties.localizedText[6];			}			var emailsContainer = getEmailsContainer(text, groupsInfo[i].emailsAddresses, 'groupInfoEmailsContainerStyleClass');			emailsContainer.injectInside(group);		}		//	Description		if (properties.showDescription) {			getGroupInfoEntryPO(properties.localizedText[7], groupsInfo[i].description, properties.showEmptyFields, properties.showLabels, 'groupInfoDescriptionContainerStyleClass').injectInside(group);		}		//	Extra info		if (properties.showExtraInfo) {			getGroupInfoEntryPO(properties.localizedText[8], groupsInfo[i].extraInfo, properties.showEmptyFields, properties.showLabels, 'groupInfoExtrainfoContainerStyleClass').injectInside(group);		}				getDivsSpacer().injectInside(group);		group.injectInside(container);	}		getDivsSpacer().injectInside(container);	container.injectInside(main);	closeAllLoadingMessages();}
6849	/local1/tlutelli/issta_data/temp/all_js/javascript/2007_temp/2007/6849/f3a5cd8bcb8f556375ab8bfbf7d28f52a4e772ba/GroupInfoViewerHelper.js/clean/resources/javascript/GroupInfoViewerHelper.js