function printWindow() {
bV = parseInt(navigator.appVersion);
if (bV >= 4) window.print();
}
function openInfo(infoUrl) {
window.open(infoUrl, "infoWindow", "toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=0,resizable=0,width=274,height=200")
}
function openInfo2(Info2Url) {
window.open(Info2Url, "Info2Window", "toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=0,resizable=0,width=396,height=216")
}


var navi_bott_abou_2 = new Image(); navi_bott_abou_2.src = "images/navi_bott_abou_2.gif";
var navi_bott_cont_2 = new Image(); navi_bott_cont_2.src = "images/navi_bott_cont_2.gif";
var navi_bott_home_2 = new Image(); navi_bott_home_2.src = "images/navi_bott_home_2.gif";
var navi_bott_list_2 = new Image(); navi_bott_list_2.src = "images/navi_bott_list_2.gif";
var navi_bott_abou_1 = new Image(); navi_bott_abou_1.src = "images/navi_bott_abou_1.gif";
var navi_bott_cont_1 = new Image(); navi_bott_cont_1.src = "images/navi_bott_cont_1.gif";
var navi_bott_home_1 = new Image(); navi_bott_home_1.src = "images/navi_bott_home_1.gif";
var navi_bott_list_1 = new Image(); navi_bott_list_1.src = "images/navi_bott_list_1.gif";
var navi_bott_abou_0 = new Image(); navi_bott_abou_0.src = "images/navi_bott_abou_0.gif";
var navi_bott_cont_0 = new Image(); navi_bott_cont_0.src = "images/navi_bott_cont_0.gif";
var navi_bott_home_0 = new Image(); navi_bott_home_0.src = "images/navi_bott_home_0.gif";
var navi_bott_list_0 = new Image(); navi_bott_list_0.src = "images/navi_bott_list_0.gif";
var navi_topp_abou_2 = new Image(); navi_topp_abou_2.src = "images/navi_topp_abou_2.gif";
var navi_topp_reso_2 = new Image(); navi_topp_reso_2.src = "images/navi_topp_reso_2.gif";
var navi_topp_inve_2 = new Image(); navi_topp_inve_2.src = "images/navi_topp_inve_2.gif";
var navi_topp_flyy_2 = new Image(); navi_topp_flyy_2.src = "images/navi_topp_flyy_2.gif";
var navi_topp_abou_1 = new Image(); navi_topp_abou_1.src = "images/navi_topp_abou_1.gif";
var navi_topp_reso_1 = new Image(); navi_topp_reso_1.src = "images/navi_topp_reso_1.gif";
var navi_topp_inve_1 = new Image(); navi_topp_inve_1.src = "images/navi_topp_inve_1.gif";
var navi_topp_flyy_1 = new Image(); navi_topp_flyy_1.src = "images/navi_topp_flyy_1.gif";
var navi_topp_abou_0 = new Image(); navi_topp_abou_0.src = "images/navi_topp_abou_0.gif";
var navi_topp_reso_0 = new Image(); navi_topp_reso_0.src = "images/navi_topp_reso_0.gif";
var navi_topp_inve_0 = new Image(); navi_topp_inve_0.src = "images/navi_topp_inve_0.gif";
var navi_topp_flyy_0 = new Image(); navi_topp_flyy_0.src = "images/navi_topp_flyy_0.gif";


function selectOnload() {
//Build the buy/rent pulldowns
buildSelect(document.form_buyy.sear_ptyp, categoryArray, 0); 
buildSelect(document.form_rent.sear_ptyp, categoryArray, 1); 
}


function unload_popup()
{
   //window.open('http://www.allthewebshopper.com/site/search/?sn=51&q=costa+rica+real+estate','xx','toolbars=off, scrollbars=1, width=900, height=570, left=100, top=25');
}

function show_meta_tag_editor(page)
{
	window.open('utils/meta_tag_editor.asp?page=' + page,'xx','toolbars=off, width=450, height=425, left=100, top=180');
}


function search_crres()
{
	var st = document.getElementById('searchterm');
	location.href="search/search_crres.asp?id=" + st.value
}



function show_newsletter_popup()
{
	//window.open('newsletter/index.asp','xx','toolbars=off, width=450, height=350, left=200, top=180');
	//window.open('http://www.allthewebshopper.com/site/search/?q=costa+rica+real+estate','xx','toolbars=off, scrollbars=1, width=900, height=570, left=100, top=25');
    //window.open('deals/distressed-seller.asp','xx','toolbars=off, scrollbars=1, width=900, height=570, left=100, top=25');
    window.open('topdeals/','xx','toolbars=off, scrollbars=1, width=900, height=570, left=100, top=25');
	
}


function show_newsletter_popup_once()
{
	if ( il != 1 )
	{
	 show_newsletter_popup();
    }
}

function internal_link()
{
	il = 1;
}
