function addremainder(emaily)
{
document.getElementById('formheader').innerHTML='Please wait...';
if (window.XMLHttpRequest)
	{// code for IE7+, Firefox, Chrome, Opera, Safari
		xmlhttp=new XMLHttpRequest();
	}
else
	{// code for IE6, IE5
		xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");
	}
xmlhttp.open("GET",'http://www.victoryrecords.com/mailinglist/aiden_remainder.php?emailAdd='+email,false);
xmlhttp.send(null);
if (xmlhttp.responseText == 'Success!')
	{
		document.getElementById('formheader').innerHTML='E-MAIL SUBMISSION SUCCESSFUL!';
	}
else
	{
		document.getElementById('formheader').innerHTML='VERIFICATION FAILED';
		alert(xmlhttp.responseText);
	}
}

function setVisibility(id, visibility) {
	document.getElementById(id).style.display = visibility;
}

function validate(object, type)
{
document.getElementById(type+'error').innerHTML='Please wait...';
if (window.XMLHttpRequest)
	{// code for IE7+, Firefox, Chrome, Opera, Safari
		xmlhttp=new XMLHttpRequest();
	}
else
	{// code for IE6, IE5
		xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");
	}
xmlhttp.open("GET",'validations.php?t='+type+'&o=' + object,false);
xmlhttp.send(null);
if (xmlhttp.responseText == 'Success!')
	{
		showstream();
	}
else
	{
		document.getElementById(type+'error').innerHTML=xmlhttp.responseText;
	}
}

function showstream()
{
	if (window.XMLHttpRequest)
	{// code for IE7+, Firefox, Chrome, Opera, Safari
		xmlhttp=new XMLHttpRequest();
	}
else
	{// code for IE6, IE5
		xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");
	}
	xmlhttp.open("GET",'indexpart.php',false);
	//xmlhttp.open("GET",'indexpart.php',false);
	xmlhttp.send(null);
	document.getElementById('tbr').innerHTML=xmlhttp.responseText
}
