function getElementsByClass( searchClass, domNode, tagName) {
	if (domNode == null) domNode = document;
	if (tagName == null) tagName = '*';
	var el = new Array();
	var tags = domNode.getElementsByTagName(tagName);
	var tcl = " "+searchClass+" ";
	for(i=0,j=0; i<tags.length; i++) {
		var test = " " + tags[i].className + " ";
		if (test.indexOf(tcl) != -1)
			el[j++] = tags[i];
	}
	return el;
}
function showtab()
{
	var tabs = getElementsByClass('sub');
	for(i=0; i<tabs.length; i++)
		tabs[i].style.display = 'block';
}
function hidetab()
{
	var tabs = getElementsByClass('sub');
	for(i=0; i<tabs.length; i++)
		tabs[i].style.display = 'none';
}
function hidediv(id) {
	if (document.getElementById) {
		document.getElementById(id).style.display = 'none';
	}
	else {
		if (document.layers) {
			document.id.display = 'none';
		}
		else {
			document.all.id.style.display = 'none';
		}
	}
}
function Show(id) {
	if (document.getElementById) {
		document.getElementById(id).style.display = 'block';
	}
	else {
		if (document.layers) {
			document.id.display = 'block';
		}
		else {
			document.all.id.style.display = 'block';
		}
	}
}
function Hide(id) {
	if (document.getElementById) {
		document.getElementById(id).style.display = 'none';
	}
	else {
		if (document.layers) {
			document.id.display = 'none';
		}
		else {
			document.all.id.style.display = 'none';
		}
	}
}
function ChangeSrc(id, Src)
{
    document.getElementById(id).src = Src;
}
function openWindow(url, title)
{
    var winl = (screen.width - 600) / 2;
    var wint = (screen.height - 400) / 2;
    var options = 'width=620px, height=470px, top='+wint+',left='+winl
    window.open(url, '', options);
}
