Hello the Script will be as follows
function toggle(tabId) {
var tab= document.getElementById(tabId);
if (tab) {
switch (div.style.display) {
case '':
div.style.display = 'none'
break;
case 'none':
div.style.display = '';
break;
}
}
}
will need a bit of tweak in this ..
hope this helps