<!--

function openwindow(url,h,w)
{
	theHeight = h;
	XPosition = screen.availWidth/2 - w/2;
	YPosition = (screen.availHeight/2 - theHeight/2) - (screen.availHeight * 0.2);
	window.open(url, "newwindow", "toolbar=yes,menubar=no,scrollbars=yes,resizable=yes,location=top,status=no,width="+w+",height="+theHeight+",ScreenX=0,ScreenY=0,Top="+YPosition+",Left="+XPosition);
}

//Display Record Page
function gp(v) 
  {
	var frm=document.frmListAds;	
	frm.MTP.value = v;
	frm.submit();

  }


// Display a message on the status bar.
function ShowStatus(Message) {window.status = Message; return(true);}

// Clear messages on the status bar.
function ClearStatus() {window.status = ""; return(true);}


function fncRefine()
{
if (document.frmListAds)
{
var frm=document.frmListAds;
frm.action = "advancedSearch.asp?site=<%=strSite%>&by=asearch";
frm.submit();
}

}


function fncFilter(tab)
{
if (document.frmListAds)
{
var frm=document.frmListAds;
frm.tab.value = tab.toString();
frm.action = "advancedSearchResult.asp?site=<%=strSite%>&by=asearch";
frm.submit();
}

}
//-->

