
function NotesPopUpWindow()
{
}

NotesPopUpWindow.prototype =
{
	show : function()
	{
		// global rowID
		// global rowOrderID
		if (rowID !== null && rowOrderID !== null)
		{
			if (bPriceListDivVisible()	) showPrice		(false);
			if (bPreferenceVisible()	) showPreference(false);
			if (bDetailDivVisible()		) showDetail	(false);
			if (bLabelTypeVisible()		) showLabelType	(false);
			
			itemRow				= window.document.getElementById("row_"				+ rowID);
			itemOrderRow		= window.document.getElementById("orderrow_"		+ rowOrderID);
			itemOrderNotesRow	= window.document.getElementById("orderrow_notes_"	+ rowOrderID);
			
			if (itemRow != null)
			{
				var itemCode = itemRow.getAttribute("name");
				sendGetNotesAJAX(itemCode);
			}
			else if (itemOrderRow != null && itemOrderNotesRow != null)
			{
				var itemCode = itemOrderRow.getAttribute("name");
				var type = itemOrderNotesRow.getAttribute("name");
				sendGetNotesAJAX(itemCode, type);
			}
		}
	}
}
