        function open_map_window(str_property_id) {
        	//str_property_url = "http://display.availabilityonline.com/display_ao4.php?property_id=" + str_property_id;
        	str_property_url = "http://ao4.availabilityonline.com/api/maps/?property_id=" + str_property_id;
        	newwindow = window.open(str_property_url,'map','width=525,height=525,directories=no,location=no,menubar=no,scrollbars=no,status=no,toolbar=no,resizable=no');
        	if (window.focus) {newwindow.focus();}
        }
        
        function open_website_window(str_property_url_input) {
        	var str_property_url = "";
            var pos1 = str_property_url_input.search(/http:\/\//i);
            var pos2 = str_property_url_input.search(/https:\/\//i);
            if ( pos1 != 0 && pos2 != 0 ) {
            	//str_property_url = ( ("https:" == document.location.protocol) ? "https://" : "http://" ); // Do not use... there is no easy way to know if the given domain has a secure cert
            	str_property_url += "http://";
            }
        	str_property_url += str_property_url_input;
        	newwindow = window.open(str_property_url,'website','width=820,height=720,directories=yes,location=yes,menubar=yes,scrollbars=yes,status=yes,toolbar=yes,resizable=yes');
        	if (window.focus) {
        		newwindow.focus();
        	}
        }
        
        function open_resform_window(str_property_un) {
        	str_resform_url = "https://ao4.availabilityonline.com/reservation_form.php?un=" + str_property_un;
        	newwindow = window.open(str_resform_url,'website','width=820,height=720,directories=yes,location=yes,menubar=yes,scrollbars=yes,status=yes,toolbar=yes,resizable=yes');
        	if (window.focus) {newwindow.focus();}
        }
        
        function open_details_window(str_property_un_with_params) {
        	str_details_url = "http://ao4.availabilityonline.com/availtable.php?un=" + str_property_un_with_params;
        	newwindow = window.open(str_details_url,'website','width=820,height=720,directories=yes,location=yes,menubar=yes,scrollbars=yes,status=yes,toolbar=yes,resizable=yes');
        	if (window.focus) {newwindow.focus();}
        }
