///////////////////////////////////////////////////////////////
//The following will act as the image rollover for the nav menu
///////////////////////////////////////////////////////////////
CursorOverProducts = new Image();
CursorOverProducts.src = "images/buttons/onproducts.gif";
CursorOffProducts = new Image();
CursorOffProducts.src = "images/buttons/offproducts.gif";

CursorOverSupport = new Image();
CursorOverSupport.src = "images/buttons/onsupport.gif";
CursorOffSupport = new Image();
CursorOffSupport.src = "images/buttons/offsupport.gif";

CursorOverWebmail = new Image();
CursorOverWebmail.src = "images/buttons/onwebmail.gif";
CursorOffWebmail = new Image();
CursorOffWebmail.src = "images/buttons/offwebmail.gif";

CursorOverBlog = new Image();
CursorOverBlog.src = "images/buttons/onblog.gif";
CursorOffBlog = new Image();
CursorOffBlog.src = "images/buttons/offblog.gif";

CursorOverContact = new Image();
CursorOverContact.src = "images/buttons/oncontactus.gif";
CursorOffContact = new Image();
CursorOffContact.src = "images/buttons/offcontactus.gif";

///////////////////////////////////////////////////////////////
//THIS IS FOR THE ACTUAL AJAX.
///////////////////////////////////////////////////////////////
function createRequestObject()
{
	var ro;
	var browser = navigator.appName;
	if(browser == "Microsoft Internet Explorer")
	{
		ro = new ActiveXObject("Microsoft.XMLHTTP");
	}
	else
	{
		ro = new XMLHttpRequest();
	}
	return ro;
}

var http = createRequestObject();

function sndReq(page)
{
	http.open('get', page + '&rnd=' + Math.random()*4 + '&notnew=1');
	//alert(page + '&notnew=1');
	http.onreadystatechange = handleResponse;
	http.send(null);
}

function handleResponse()
{
	if(http.readyState == 4)
	{
		var response = http.responseText;
		document.getElementById('thecontent').innerHTML = response;
	}
}

function postlogin()  {

var email = document.atmail.email.value.split('@');

// email[0] contains user
// email[1] contain domain

document.atmail.username.value = email[0];
document.atmail.pop3host.value = email[1];

document.atmail.submit();

}
