
	function view_products_image_popup(map, str_url_image, i_id, i_width, i_height, str_name) {
		if (str_url_image.indexOf("http:")>=0) {
		} else {
			str_url_image = map + str_url_image;
		}
		
		var image = new Image(), image_size;
		image.src = str_url_image;
		image_size = set_size_products_image_popup(i_width, i_height)
		
		document.getElementById('products_image_id_' + i_id).innerHTML = '<div style="background-color:white; padding:0px;" onMouseout=close_products_image_popup("' +  str_url_image + '","' + i_id + '"); onMousedown=close_products_image_popup("' +  str_url_image + '","' + i_id + '");><fieldset style="padding:10px;"><div class="productlist_heading" style="width:100%; height:22px; text-align:center; background-color:white;">' + str_name + '</div><div><img src="' + image.src + '" ' + image_size + '></div></fieldset></div>';
	}
	
	function close_products_image_popup(str_url_image, i_id) {
		document.getElementById('products_image_id_' + i_id).innerHTML = '';
	}
	
	function set_size_products_image_popup(i_width, i_height) {
		if (i_width>i_height) {
			size = 'width=' + i_width;
		} else if (i_height>i_width) {
			size = 'height=' + i_height;
		} else { 
			size = '';
		}
		return size;	
	}
