//function sendRequest(url, queryString, block, noParent) 
		window.addEvent('domready', function(){
			var Tips1 = new Tips($$('.Tips'), {
				fixed: true,
				initialize:function(){
					this.fx = new Fx.Style(this.toolTip, 'opacity', {duration: 200, wait: false}).set(0);
				},
				onShow: function(toolTip) {
					this.fx.start(1);
				},
				onHide: function(toolTip) {
					this.fx.start(0);
				}
			});
		});

function changeParent(url)
{
	parent.location.href=url;
}

function sendRequest(url, block, noParent, qString, myMethod)
{
	if(myMethod != 'undefined')
	{
		myMethod = 'get';
	}

	var myXHR = new XHR({
		method: myMethod,
		onSuccess: function(transport)
		{
			if(this.transport.responseText == '[ajax:error]=logout\n')
			{
				changeParent('index.php');
				this.transport.responseText = "";
			} else {
				if(block != 'undefined')
				{
					
					if(noParent == true)
					{
						document.getElementById(block).innerHTML = this.transport.responseText;
	
					} else {
						parent.document.getElementById(block).innerHTML = this.transport.responseText;
					}
					
				}
			}
		}
	}).send(url, qString);
}

function getArrayKey(arrayToSearch, valueToSearch)
{ 
for (i=0; i < arrayToSearch.length; i++)
{
  if (arrayToSearch[i] == valueToSearch)
  {
 	return i;
  }
}
}