function resizeme(){
/* disabled it
    var browserHeight = document.body.clientHeight;
    browserHeight = browserHeight - 130 - 35 + (document.all?0:-20); 
    var contentblock = document.getElementById("contentblock");
    if(contentblock.offsetHeight<browserHeight)
        contentblock.style.height = browserHeight + "px";
		*/
}
		
function buttonHomeOver(id, color){
	if (color)
		color = "_"+color;
	else
		color = "";
	var element = document.getElementById(id);
	element.style.backgroundImage = "url('/designimages/buttonbackhover"+color+".png')";
}
function buttonHomeOut(id, color){
	if (color)
		color = "_"+color;
	else
		color = "";
	var element = document.getElementById(id);
	element.style.backgroundImage = "url('/designimages/buttonback"+color+".png')";
}

function fillStreet(callback)
{
    // Perform an ajax request for the valid streets in this city
    $.post(
        "/AjaxCall.aspx", 
        $("#searchBoxForm").serialize(), 
        function(json)
        {
            // Get the first option
            var defOption = $("#StreetSearch").children().first();
            // Clear listbox
            $("#StreetSearch").empty();
            // Add the default option
            $("#StreetSearch").append(defOption);
    
            if(json && json.results)
            {
                // Loop through results
                for(var i = 0; i < json.results.length; i++)
                {
                    // Append option
                    $("#StreetSearch").append("<option value=\"" + json.results[i] + "\">" + json.results[i] + "</option>");
                }
            }
            
            var thisBrowserLength = 0;
			if (navigator.appName == "Microsoft Internet Explorer")
			    thisBrowserLength = 4;
			else
			    thisBrowserLength = 2;
            
            $("#StreetSearch").width($("#CitySearch").width()+thisBrowserLength);
            
            if(typeof callback == 'function')
                callback();
        },
        "json"
    );
    
}
