	 /* Fucntion DoCallback
		* Author: Robbie Smith
		* Date: 2/2/2009 5:23 PM
		* input: data object
		* output: sends request to ajax processing page
		* purpose: login callback 
		**/
	
	function DoCallback(data) {
			// branch for native XMLHttpRequest object
			if (window.XMLHttpRequest) {
					req = new XMLHttpRequest();
					req.onreadystatechange = processReqChange;
					req.open('POST', loginurl, true);
					req.setRequestHeader('Content-Type', 'application/x-www-form-urlencoded');
					req.send(data);
			// branch for IE/Windows ActiveX version
			} else if (window.ActiveXObject) {
					req = new ActiveXObject('Microsoft.XMLHTTP')
					if (req) {
							req.onreadystatechange = processReqChange;
							req.open('POST', loginurl, true);
							req.setRequestHeader('Content-Type', 'application/x-www-form-urlencoded');
							req.send(data);
					}
			}
	}
	
	 /* Fucntion processReqChange
		* Author: Robbie Smith
		* Date: 2/2/2009 5:24 PM
		* input: NULL
		* output: evalulates the loginwhat variable
		* purpose: ajax call to login 
		**/
	
	function processReqChange() {
			// only if req shows 'loaded'
			if (req.readyState == 4) {
					// only if 'OK'
					if (req.status == 200) {
							eval(loginwhat);
					} else {
							alert('There was a problem retrieving the XML data: ' +
									req.responseText);
					}
			}
	}
	
	 /* Fucntion DoCallEmailback
		* Author: Robbie Smith
		* Date: 2/2/2009 5:25 PM
		* input: data object
		* output: sends request to ajax processing page
		* purpose: email callback 
		**/	

	function DoCallEmailback(data) {
			// branch for native XMLHttpRequest object
			if (window.XMLHttpRequest) {
					req = new XMLHttpRequest();
					req.onreadystatechange = processEmailReq;
					req.open('POST', emailurl, true);
					req.setRequestHeader('Content-Type', 'application/x-www-form-urlencoded');
					req.send(data);
			// branch for IE/Windows ActiveX version
			} else if (window.ActiveXObject) {
					req = new ActiveXObject('Microsoft.XMLHTTP')
					if (req) {
							req.onreadystatechange = processEmailReq;
							req.open('POST', emailurl, true);
							req.setRequestHeader('Content-Type', 'application/x-www-form-urlencoded');
							req.send(data);
					}
			}
	}
	
	 /* Fucntion processEmailReq
		* Author: Robbie Smith
		* Date: 2/2/2009 5:25 PM
		* input: NULL
		* output: evalulates the emailwhat variable
		* purpose: ajax call to email password reminder the end user would still have to know their SR number to login
		*          so by itself this email isn't terribly useful.
		**/	

	function processEmailReq() {
			// only if req shows 'loaded'
			if (req.readyState == 4) {
					// only if 'OK'
					if (req.status == 200) {
							eval(emailwhat);
					} else {
							alert('There was a problem retrieving the XML data: ' +
									req.responseText);
					}
			}
	}


	 /* Fucntion DoTerritoryCallback
		* Author: Robbie Smith
		* Date: 2/2/2009 5:25 PM
		* input: data object
		* output: sends request to ajax processing page
		* purpose: email callback 
		**/	

	function DoTerritoryCallback(data) {
			// branch for native XMLHttpRequest object
			if (window.XMLHttpRequest) {
					req = new XMLHttpRequest();
					req.onreadystatechange = processTerritoryReq;
					req.open('POST', terrurl, true);
					req.setRequestHeader('Content-Type', 'application/x-www-form-urlencoded');
					req.send(data);
			// branch for IE/Windows ActiveX version
			} else if (window.ActiveXObject) {
					req = new ActiveXObject('Microsoft.XMLHTTP')
					if (req) {
							req.onreadystatechange = processTerritoryReq;
							req.open('POST', terrurl, true);
							req.setRequestHeader('Content-Type', 'application/x-www-form-urlencoded');
							req.send(data);
					}
			}
	}
	
	 /* Fucntion processTerritoryReq
		* Author: Robbie Smith
		* Date: 2/2/2009 5:25 PM
		* input: NULL
		* output: evalulates the emailwhat variable
		* purpose: ajax call to email password reminder the end user would still have to know their SR number to login
		*          so by itself this email isn't terribly useful.
		**/	

	function processTerritoryReq() {
			// only if req shows 'loaded'
			if (req.readyState == 4) {
					// only if 'OK'
					if (req.status == 200) {
							eval(terrwhat);
					} else {
							alert('There was a problem retrieving the XML data: ' +
									req.responseText);
					}
			}
	}
	
	 /* Fucntion DoTerritoryCallback
		* Author: Robbie Smith
		* Date: 2/2/2009 5:25 PM
		* input: data object
		* output: sends request to ajax processing page
		* purpose: email callback 
		**/	

	function DoUserTerritoryCallback(data) {
			// branch for native XMLHttpRequest object
			if (window.XMLHttpRequest) {
					req = new XMLHttpRequest();
					req.onreadystatechange = processUserTerritoryReq;
					req.open('POST', userurl, true);
					req.setRequestHeader('Content-Type', 'application/x-www-form-urlencoded');
					req.send(data);
			// branch for IE/Windows ActiveX version
			} else if (window.ActiveXObject) {
					req = new ActiveXObject('Microsoft.XMLHTTP')
					if (req) {
							req.onreadystatechange = processUserTerritoryReq;
							req.open('POST', userurl, true);
							req.setRequestHeader('Content-Type', 'application/x-www-form-urlencoded');
							req.send(data);
					}
			}
	}
	
	 /* Fucntion processTerritoryReq
		* Author: Robbie Smith
		* Date: 2/2/2009 5:25 PM
		* input: NULL
		* output: evalulates the emailwhat variable
		* purpose: ajax call to email password reminder the end user would still have to know their SR number to login
		*          so by itself this email isn't terribly useful.
		**/	

	function processUserTerritoryReq() {
			// only if req shows 'loaded'
			if (req.readyState == 4) {
					// only if 'OK'
					if (req.status == 200) {
							eval(userwhat);
					} else {
							alert('There was a problem retrieving the XML data: ' +
									req.responseText);
					}
			}
	}


	 /* Fucntion DoTerritoryCallback
		* Author: Robbie Smith
		* Date: 2/2/2009 5:25 PM
		* input: data object
		* output: sends request to ajax processing page
		* purpose: email callback 
		**/	

	function DoBranchCallback(data) {
			// branch for native XMLHttpRequest object
			if (window.XMLHttpRequest) {
					req = new XMLHttpRequest();
					req.onreadystatechange = processBranchReq;
					req.open('POST', branurl, true);
					req.setRequestHeader('Content-Type', 'application/x-www-form-urlencoded');
					req.send(data);
			// branch for IE/Windows ActiveX version
			} else if (window.ActiveXObject) {
					req = new ActiveXObject('Microsoft.XMLHTTP')
					if (req) {
							req.onreadystatechange = processBranchReq;
							req.open('POST', branurl, true);
							req.setRequestHeader('Content-Type', 'application/x-www-form-urlencoded');
							req.send(data);
					}
			}
	}
	
	 /* Fucntion processTerritoryReq
		* Author: Robbie Smith
		* Date: 2/2/2009 5:25 PM
		* input: NULL
		* output: evalulates the emailwhat variable
		* purpose: ajax call to email password reminder the end user would still have to know their SR number to login
		*          so by itself this email isn't terribly useful.
		**/	

	function processBranchReq() {
			// only if req shows 'loaded'
			if (req.readyState == 4) {
					// only if 'OK'
					if (req.status == 200) {
							eval(branwhat);
					} else {
							alert('There was a problem retrieving the XML data: ' +
									req.responseText);
					}
			}
	}


	 /* Fucntion DoTerritoryCallback
		* Author: Robbie Smith
		* Date: 2/2/2009 5:25 PM
		* input: data object
		* output: sends request to ajax processing page
		* purpose: email callback 
		**/	

	function DoFilterTerritoryCallback(data) {
			// branch for native XMLHttpRequest object
			if (window.XMLHttpRequest) {
					req = new XMLHttpRequest();
					req.onreadystatechange = processFilterTerritoryReq;
					req.open('POST', filtterrurl, true);
					req.setRequestHeader('Content-Type', 'application/x-www-form-urlencoded');
					req.send(data);
			// branch for IE/Windows ActiveX version
			} else if (window.ActiveXObject) {
					req = new ActiveXObject('Microsoft.XMLHTTP')
					if (req) {
							req.onreadystatechange = processFilterTerritoryReq;
							req.open('POST', filtterrurl, true);
							req.setRequestHeader('Content-Type', 'application/x-www-form-urlencoded');
							req.send(data);
					}
			}
	}
	
	 /* Fucntion processTerritoryReq
		* Author: Robbie Smith
		* Date: 2/2/2009 5:25 PM
		* input: NULL
		* output: evalulates the emailwhat variable
		* purpose: ajax call to email password reminder the end user would still have to know their SR number to login
		*          so by itself this email isn't terribly useful.
		**/	

	function processFilterTerritoryReq() {
			// only if req shows 'loaded'
			if (req.readyState == 4) {
					// only if 'OK'
					if (req.status == 200) {
							eval(filtterrwhat);
					} else {
							alert('There was a problem retrieving the XML data: ' +
									req.responseText);
					}
			}
	}


	 /* Fucntion DoTerritoryCallback
		* Author: Robbie Smith
		* Date: 2/2/2009 5:25 PM
		* input: data object
		* output: sends request to ajax processing page
		* purpose: email callback 
		**/	

	function DoFilterBranchCallback(data) {
			// branch for native XMLHttpRequest object
			if (window.XMLHttpRequest) {
					req = new XMLHttpRequest();
					req.onreadystatechange = processFilterBranchReq;
					req.open('POST', filtbranurl, true);
					req.setRequestHeader('Content-Type', 'application/x-www-form-urlencoded');
					req.send(data);
			// branch for IE/Windows ActiveX version
			} else if (window.ActiveXObject) {
					req = new ActiveXObject('Microsoft.XMLHTTP')
					if (req) {
							req.onreadystatechange = processFilterBranchReq;
							req.open('POST', filtbranurl, true);
							req.setRequestHeader('Content-Type', 'application/x-www-form-urlencoded');
							req.send(data);
					}
			}
	}
	
	 /* Fucntion processTerritoryReq
		* Author: Robbie Smith
		* Date: 2/2/2009 5:25 PM
		* input: NULL
		* output: evalulates the emailwhat variable
		* purpose: ajax call to email password reminder the end user would still have to know their SR number to login
		*          so by itself this email isn't terribly useful.
		**/	

	function processFilterBranchReq() {
			// only if req shows 'loaded'
			if (req.readyState == 4) {
					// only if 'OK'
					if (req.status == 200) {
							eval(filtbranwhat);
					} else {
							alert('There was a problem retrieving the XML data: ' +
									req.responseText);
					}
			}
	}
