function tabsClick(obj, evt, type, tab) {
var lis = document.getElementById('tabs_' + type).getElementsByTagName('li');
for(i = 0; i < lis.length; i++) {
lis[i].className = '';
}
obj.parentNode.className = 'selected';
var tables = document.getElementById(type + 'Tables').getElementsByTagName('table');
for(i = 0; i < tables.length; i++) {
//alert(tables[i].id);
if(tables[i].id == type + '_' + tab) {
tables[i].style.display='block';
}
else {
tables[i].style.display='none';
}
}
}
function emailToFriend(article_id) {
var newwin = window.open('/email-to-friend.php?article_id=' + article_id, 'Email', 'width=240,height=560');
}