
	function view_products_image_popup(map, str_url_image, i_id, i_width, i_height, str_name) {
		var image = new Image(), image_size;

		if (str_url_image.indexOf("http:")>=0) {
		} else {
			str_url_image = map + str_url_image;
		}
		if (document.getElementById('products_name_' +  i_id) != null) {
			str_name = document.getElementById('products_name_' +  i_id).innerHTML;
		}
		
		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;	
	}
	 
	function view_products_text_popup(i_id) {
		document.getElementById('products_text_id_' + i_id).innerHTML = '<div style="background-color:white; padding:0px;"><fieldset style="padding:10px;"><div class="' + document.getElementById('products_class_id_hidden_' + i_id).value + 'popup_text" style="width:250px; height:22px; text-align:center;">' + document.getElementById('products_text_id_hidden_' + i_id).innerHTML + '</div></fieldset></div>';
	}
	function close_products_text_popup(i_id) {
		document.getElementById('products_text_id_' + i_id).innerHTML = '';
	}

