function neps_PageQuery(q) {
	if(q.length > 1) this.q = q.substring(1, q.length);
	else this.q = null;
	this.keyValuePairs = new Array();
	if(q) {
		for(var i=0; i < this.q.split("&").length; i++) {
			this.keyValuePairs[i] = this.q.split("&")[i];
		}
	}
	this.getKeyValuePairs = function() { return this.keyValuePairs; }
	this.getValue = function(s) {
		for(var j=0; j < this.keyValuePairs.length; j++) {
			if(this.keyValuePairs[j].split("=")[0] == s)
				return this.keyValuePairs[j].split("=")[1];
		}
		return false;
	}
	this.getParameters = function() {
		var a = new Array(this.getLength());
		for(var j=0; j < this.keyValuePairs.length; j++) {
			a[j] = this.keyValuePairs[j].split("=")[0];
		}
		return a;
	}
	this.getLength = function() { return this.keyValuePairs.length; }	
}
function neps_queryURL(key){
var page = new neps_PageQuery(window.location.search); 
return unescape(page.getValue(key)); 
}
function getCookieSubkey (cookieName,subkey)
{
	var cookieInfo, counter, counter2,nstring1,nstring2,temp;
	cookieInfo = document.cookie.split("; ");
	for (counter=0; counter<cookieInfo.length; counter++)
	{
		if (cookieInfo[counter].split("=")[0] == cookieName)
		{
			nstring1 = cookieInfo[counter];
			nstring2 = nstring1.substring(cookieName.length+1,cookieInfo[counter].length);
			temp =nstring2.split("&");
			for (counter2=0; counter2<temp.length; counter2++)
			{
				if (temp[counter2].split("=")[0]==subkey)
					return temp[counter2].split("=")[1];
			}
		}
	}
	return "not found";
}



function neps_deleteallcookies()
{
var i,cookies;

document.cookie="nepslog=in=neps00";
document.cookie="nepsname=exist=no";

return "done";
}

function neps_showallcookies ()
{
var cookies,i,cname,cvalue,t1;
	if (document.cookie == "")
	{
		document.write("a_No cookies_z");
	}
	else
	{
document.write("<BR>");
		cookies=document.cookie.split("; ");
		for (i=0;i<cookies.length;i++)
		{
			
			cname=cookies[i].split("=")[0];
			cvalue=cookies[i].split("=")[1];
			document.write("a_Cookie name:"+cname+"_z");
			document.write("a_value:"+cvalue+"_z");
if(cname="nepslog")
{
	t1=cookies[i].split("=")[2];
	document.write("a_"+t1+"_z");
}
else if(cname="nepsname")
{
	t1=cookies[i].split("=")[2];
	document.write("a_"+t1+"_z");
}
document.write("<BR>");
		}
	}
return "done";
}