instead of this:
HTML Code:
document.getElementById('arrayID').className='noborder';
Do this:
HTML Code:
applyClass('slogan,companyName','noborder');
Put as many elements in a comma delimited string as needed
Now we need to create our function - this goes in your javascript section
HTML Code:
function applyClass(csvIDs,classtoApply){
// convert the string to an array
arr=csvIDs.split(',');
// loop through each id in the array and apply the specified class
for (i = 0; i < arr.length; i++){
document.getElementById(arr[i]).className=classtoApply;
}
}