// for Home modules array
if (document.forms[0].PageType.value == "home"){
var hmModulesList = document.forms[0].Modules.value.split('; ');

// create two dimensional array
var mdModule = new Array(hmModulesList.length);

for (var i=0; i < mdModule.length; i++)
{
 mdModule[i] = new Array(2);
 var mainStr = hmModulesList[i];
 var searchStr = "=";
 mdModule[i][0] = getFront(mainStr,searchStr);
 mdModule[i][1] = getEnd(mainStr,searchStr);
}
}