function goto(partlink,aid)
{
	vaid = document.getElementById(aid).value;
	self.location=partlink+vaid;
}
function limitChar(textarea,limit,infodiv)
{
	var textv = textarea.value;
	var textvLength = textv.length;
	var displayTo = document.getElementById(infodiv);
	
	if(textvLength>limit)
	{
		displayTo.innerHTML = "0";
		textarea.value = textv.substr(0,limit);
	} else
		{
			displayTo.innerHTML = limit-textvLength;
		}	
}

function mod_comments(div_t,c_what,div_s,s_what)
{
	var toChangeDiv = document.getElementById(div_t);
	toChangeDiv.className = c_what;
	
	var toShowDiv = document.getElementById(div_s);
	toShowDiv.style.display = s_what;
	return true;
}

function assignBigger_height(id1,id2)
{
	var div_1 = document.getElementById(id1);
	var div_2 = document.getElementById(id2);
	
	if(div_1.offsetHeight>=div_2.offsetHeight)
	{
		div_2.style.height = div_1.offsetHeight + "px";
	} else
		{
			div_1.style.height = div_2.offsetHeight + "px";
		}	
}