//
function showTs(q,w,h)
{
	document.getElementById('base').setAttribute('src',q,'width',w ,'height',h);
	ddrivetip(' ', '#000000',w,h);
	//alert(q + "  w="  + w +"  h=" + h);
}
//
function showT(q,w,h)
{ 
//	alert(q + "  w="  + w +"  h=" + h);
	document.getElementById('base').setAttribute('src',q,'width',w ,'height',h);
}
//
function removeSold()
{
	// Filter out all rows that don't have a price that begins with the letter 'S' aka SOLD.
	// Set a filter on the data set that matches any row
	// that begins with the string in the text field.
//
	var regExpStrS = 'SOLD';
	var regExpS = new RegExp(regExpStrS, "i");
	var filterFuncS = function(ds, row, rowNumber)
//
	{
		var strS = row["price"];
		if (strS && strS.search(regExpS) != -1)
			return null;
		return row;
	};
	dsImageData.filter(filterFuncS);
}
//        
/////////////
// Utilities
/////////////
//
function switchVisible(id,viz) 
{
		if(viz==0){document.getElementById(id).style.visibility="hidden";}
	else if(viz==1){document.getElementById(id).style.visibility="visible";}
}

//
function getLayer(id) {return (document.getElementById(id));}
//
function help(id,msg)
{
	if(msg==1)switchVisible('help_message1',id);
	else if(msg==2)switchVisible('help_message2',id);
	else if(msg==3)switchVisible('help_message3',id);
	else if(msg==3)switchVisible('help_message4',id);
}
