	var DisplayWindow=null;

	function Display_NewWindows(page_url,page_name,w,h,getfocus)
	{

		LeftPosition=(screen.width)?(screen.width-w)/2:100;
		TopPosition=(screen.height)?(screen.height-h)/2:100;
		settings= 'width=' + w + ',height=' + h + ',top=' + TopPosition + ' left=' + LeftPosition + ',scrollbars=no,location=no,directories=no,status=no,menubar=no,toolbar=no,resizable=no';
		DisplayWindow=window.open('',page_name,settings);

		//when new window is in front most
		if(getfocus=='front')
		{
			DisplayWindow.focus();
			DisplayWindow.location=page_url;
		}
		//if new windo is behind another browser
		if(getfocus=='back')
		{
			DisplayWindow.blur();
			DisplayWindow.location=page_url;
			DisplayWindow.blur();
		}

	}


	var xmlHttp;

	function getHits(str)
	{
		xmlHttp = GetXmlHttpObject();
		if(xmlHttp == null)
		{
			alert("Your browser does not support AJAX!");
			return;
		}

		var url = "asp/getHits.asp";
		url = url + "?gh=" + str;
		url = url + "&sid=" + Math.random();
		xmlHttp.onreadystatechange = stateChanged;
		xmlHttp.open("GET", url, true);
		xmlHttp.send(null);
	}

	function stateChanged()
	{
		if(xmlHttp.readyState == 4)
		{
			document.getElementById("viewer").innerHTML = xmlHttp.responseText;
		}
	}

	function GetXmlHttpObject()
	{
		var xmlHttp = null;

		try {
			// Firefox, Opera 8.0+, Safari
			xmlHttp = new XMLHttpRequest();
		}
		catch(e)
		{
			// Internet Explorer
			try {
				xmlHttp = new ActiveXObject("Msxml2.XMLHTTP");
			}
			catch(e)
			{
				xmlHttp = new ActiveXObject("Microsoft.XMLHTTP");
			}
		}

		return xmlHttp;
	}
	
	function mailpage()
	{
		mail_str = "mailto:?subject=Check out the Avalanche Explains Transfer *for most majors* Math and Science Majors see counselor";
		mail_str += "&body=I found this video at " + document.title;
		mail_str += " website. You can watch the video by visiting at the link below " + location.href;
		location.href = mail_str;
	}
