//together4us js doc

function selectTab(id)
{
	var tab = document.getElementById(id);
	
	for (i = 1; i <= 2; i++)
	{
		if (i != parseInt(id))
		{
			notTab = document.getElementById(i);
			notTab.onmouseover = function(){ this.style.background='#ffffff';}
			notTab.onmouseout = function(){ this.style.background='#dddddd';}
			notTab.style.border = '1px dashed #999999';
			notTab.style.borderBottom = '1px solid #999999';
			notTab.style.cursor = 'pointer';
			notTab.style.background ="#dddddd";
			document.getElementById("active"+i).style.display = 'none';
		}
	}
	
	tab.onmouseover = '';
	tab.onmouseout = '';
	tab.style.border = '1px solid #999999';
	tab.style.borderBottom = 'none';
	tab.style.background = '#ffffff';
	document.getElementById("active"+id).style.display = '';
}

function hideResponse() {
	
	document.getElementById("overlay").style.display  = 'none';
}


function tryAgain() {
	document.getElementById("overlay").style.display  = 'none';
	Modalbox.show(document.getElementById("signatureForm"), {title: document.getElementById("sign-button").title, width: 340});
	return false;
}

function tryAgainThread() {
	document.getElementById("overlay").style.display  = 'none';
	Modalbox.show(document.getElementById("threadForm"), {title: document.getElementById("thread-button").title, width: 340});
	return false;
}


function tryAgainPost() {
	document.getElementById("overlay").style.display  = 'none';
	Modalbox.show(document.getElementById("postForm"), {title: document.getElementById("thread-button").title, width: 340});
	return false;
}
