Very simply I want to use the following code several times on my page for a number of 'boxes', so how can I pass an argument when it's called ie calling conceal(box1ID) would conceal box1ID and so on.....
function conceal() {
if(document.getElementById('box1ID').style.display=='block') {
document.getElementById('box1ID').style.display='none';
}
return false;
}
function show() {
if(document.getElementById('box1ID').style.display=='none') {
document.getElementById('box1ID').style.display='block';
}
return false;
}