// COPYRIGHT DENNY WONG PUI CHUNG 2009

// This document requies the use of jsXML_Connect.js, XMLDOM.NodeList.(General).js and String.replaceAllByArray.js. Would refuse to do anything unless the files are loaded.
if (typeof ajax_XML_Connect == "function" && typeof xml_DOM_NodeList_tag_manager == "function" && typeof String.prototype.replaceAllByArray == "function")
{
	
// -------------------------------------------------------------------------------------------------------------------------
// START OF FUNCTION SET
// -------------------------------------------------------------------------------------------------------------------------
	
	ajax_PageValue = function (Nodes)
						{
							this.NodesManager = new xml_DOM_NodeList_tag_manager(Nodes);
							
							this.current_member = function () { return this.NodesManager.pointer; }
							this.prev_member = function () { return this.NodesManager.prev_member(); }
							this.next_member = function () { return this.NodesManager.next_member(); }
							this.first_member = function () { return this.NodesManager.first_member(); }
							this.member_shift = function () { return this.NodesManager.member_shift(); }
							this.end_of_members = function () { return this.NodesManager.end_of_members(); }
							this.is_last_member = function () { return this.NodesManager.is_last_member(); }
							
							this.replaceAllByPageValue = function (haystack, regexpression)
															{
																var return_value = haystack.replaceAllByArray(regexpression, this.NodesManager.get_value, this.NodesManager);
																return return_value;
															}
						}
	
	
// -------------------------------------------------------------------------------------------------------------------------
// END OF FUNCTION SET
// -------------------------------------------------------------------------------------------------------------------------
} else { alert("FATAL ERROR: AJAX_XML_CONNECT or XML_DOM_NodeList_tag_manager or String.replaceAllByArray not loaded."); }// Ends the IF condition for the inclusion of jsXML_Connect.js and XMLDOM.NodeList.(General).js
