function show_tab(p,q,h,x) {

for(i=1;i<=h;i++) {
	if(i==q) {
		document.getElementById('tdC_' + p + '_' + i).className = 'TabClass1';
		document.getElementById('aC_' + p + '_' + i).className = 'TabLink_a';
		document.getElementById('tab_' + p + '_' + i).style.display = 'block';
		document.getElementById('ul_' + p + '_' + i).style.display = 'block';
	  if(x==1) {
		  document.getElementById('td_' + p + '_' + i).className = 'TabClass1';
		  document.getElementById('a_' + p + '_' + i).className = 'TabLink_a';
		 	if(p==1) {
			   document.getElementById('AtabCenter_' + p + '_' + i).style.display = 'block';
			   document.getElementById('BtabCenter_' + p + '_' + i).style.display = 'block';
		  }
		}
	}
	else {
		document.getElementById('tdC_' + p + '_' + i).className = 'TabClass2';
		document.getElementById('aC_' + p + '_' + i).className = 'TabLink';
		document.getElementById('tab_' + p + '_' + i).style.display = 'none';
		document.getElementById('ul_' + p + '_' + i).style.display = 'none';
	  if(x==1) {
		  document.getElementById('td_' + p + '_' + i).className = 'TabClass2';
		  document.getElementById('a_' + p + '_' + i).className = 'TabLink';
		  if(p==1) {
        document.getElementById('AtabCenter_' + p + '_' + i).style.display = 'none';
        document.getElementById('BtabCenter_' + p + '_' + i).style.display = 'none';
      }
		}
	}
}

}

function addbookmark(){
if (document.all) {
	var bookmarkurl=document.location
	var bookmarktitle=document.title
	window.external.AddFavorite(bookmarkurl,bookmarktitle)
}
}

function selecturl(s) {
	var gourl = s.options[s.selectedIndex].value;	window.top.location.href = gourl;
}
