//
function showTs(q,w,h)
{
	document.getElementById('base').setAttribute('src',q,'width',w ,'height',h);
	ddrivetip('', '',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"];
//alert("strS="+strS);
		if (strS && strS.search(regExpS) != -1)
			return null;
		return row;
	};
	dsImageData.filter(filterFuncS);
}
//
function switchVisible(id,viz) 
{
	var ie4up = (document.all)? true : false;
 	var ns4   = (document.layers)? true : false;
	var ns6up = (document.getElementById)? true : false;
   if (ns4 && getLayer(id))
   	{
       		getLayer(id).visibility = (viz) ? 'show' : 'hide';
     }
    if ((ie4up || ns6up) && getLayer(id))
   	{
        	getLayer(id).style.visibility = (viz) ? 'visible' : 'hidden';
     }
//	  	alert("id= " + id + "   viz= " + viz + "  Browsers = " + ie4up + " " + ns4 + " "  + ns6up + "  getLayer(id)= " + getLayer(id));
}        
/////////////
// Utilities
/////////////
function getLayer(id) 
{	
// 	var x = eval('document.getElementById("'+id+'")')
// 	alert("getlayer= " + id + "  " + x);
	var ie4up = (document.all)? true : false;
 	var ns4   = (document.layers)? true : false;
	var ns6up = (document.getElementById)? true : false;
//	alert("ie4up=" + ie4up + " eval= " + eval('document.all["'+id+'"]') + " ns6up=" + ns6up);
    if (ns4) return eval('document.layers["'+id+'"]');
    if (ns6up) return eval('document.getElementById("'+id+'")');
    if (ie4up) return eval('document.all["'+id+'"]');
    return null;
}
//
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);
}
