function get_host_name()
{
	var host_name=window.location.hostname;
	return "http://"+host_name;
}


function start_wait()
{
	myDivlight=document.getElementById('light');
	myDivlight.setAttribute("class","white_content");
	img = document.createElement("img");
	img.id="minutesTens";
	img.src = "lightbox/loading.gif";
	img.height="40";
	img.width="200"
	myDivlight.appendChild(img);
	myDivlight.style.display='block';
	myDivfade=document.getElementById('fade');
	myDivfade.setAttribute("class","black_overlay");
	myDivfade.style.display='block';
}


function stop_wait()
{
	myDivlight=document.getElementById('light');
	myDivlight.removeChild(img);
	myDivfade=document.getElementById('fade');
	myDivlight.style.display='none';
	myDivfade.style.display='none';
}


function trim(string)
{
	return string;
}

function ShowLayer(id) 
{
	var dis;
	if (document.all) { dis=document.all[id].style.display;} 
	if(document.layers) { dis=document.layers[id].display;} 
	if(document.getElementById) {dis=document.getElementById(id).style.display;} 
	
	if(dis=="none")
			{
		if (document.all) { document.all[id].style.display='block';} 
		if(document.layers) { document.layers[id].display='block' ;} 
		if(document.getElementById) {document.getElementById(id).style.display='block';} 
			}
	if(dis=="block")
			{
		if (document.all) { document.all[id].style.display='none'; } 
		if(document.layers){ document.layers[id].display='none';} 
		if(document.getElementById) {document.getElementById(id).style.display='none';} 
			}
			return false;

		
}

function ShowFullComment(comment_id)
{
	var full_content_div="full_comment_div_"+comment_id;
	var short_content_div="short_comment_div_"+comment_id;
	ShowLayer(full_content_div);
	ShowLayer(short_content_div);
}
