function showBlockedHome()
{
	hideAllHome();
	window.document.getElementById("ihfeat1").style.display = "block";
}

function showLimitsHome()
{
	hideAllHome();
	window.document.getElementById("ihfeat2").style.display = "block";
}

function showChatHome()
{
	hideAllHome();
	window.document.getElementById("ihfeat3").style.display = "block";
}

function showActivityHome()
{
	hideAllHome();
	window.document.getElementById("ihfeat4").style.display = "block";
}

function showSocialHome()
{
	hideAllHome();
	window.document.getElementById("ihfeat5").style.display = "block";
}

function showMultiHome()
{
	hideAllHome();
	window.document.getElementById("ihfeat6").style.display = "block";
}

function showRemoteHome()
{
	hideAllHome();
	window.document.getElementById("ihfeat7").style.display = "block";
}

function hideAllHome()
{
	for(i=1; i<=7; i++)
	{
		window.document.getElementById("ihfeat"+i).style.display = "none";
	}
}

function showCentralPro()
{
	hideAllPro();
	window.document.getElementById("ipfeat1").style.display = "block";
}

function showMultiPro()
{
	hideAllPro();
	window.document.getElementById("ipfeat2").style.display = "block";
}

function showActivityPro()
{
	hideAllPro();
	window.document.getElementById("ipfeat3").style.display = "block";
}

function showProxyPro()
{
	hideAllPro();
	window.document.getElementById("ipfeat4").style.display = "block";
}

function hideAllPro()
{
	for(i=1; i<=4; i++)
	{
		window.document.getElementById("ipfeat"+i).style.display = "none";
	}
}

function showHideQuestion(id)
{
	var element = document.getElementById("answer" + id);
	var spacer = document.getElementById("qs" + id);
	if(element.style.display == 'none')
	{
		element.style.display = 'block';
		spacer.style.height = '0px';
	}
	else
	{
		element.style.display = 'none';
		spacer.style.height = '25px';
	}
}

function showHideSection(id)
{
	var element = document.getElementById("termsparagraph" + id);
	var spacer = document.getElementById("ts" + id);
	if(element.style.display == 'none')
	{
		element.style.display = 'block';
		spacer.style.height = '0px';
	}
	else
	{
		element.style.display = 'none';
		spacer.style.height = '25px';
	}
}

function loadFlash(name)
{
	if(GetSwfVer() >= 8.0)
	{
		window.document.getElementById("flashmov").innerHTML = "<object width='692' height='277' classid='clsid:D27CDB6E-AE6D-11cf-96B8-444553540000'><param name='movie' value='/flash/" + name + ".swf'><embed src='/flash/" + name + ".swf' width='692' height='277' type='application/x-shockwave-flash'></embed></object>";
	}
	else
	{
		window.document.getElementById("flashmov").innerHTML = "<object width='692' height='277' classid='clsid:D27CDB6E-AE6D-11cf-96B8-444553540000'><param name='movie' value='/flash/" + name + "5.swf'><embed src='/flash/" + name + "5.swf' width='692' height='277' type='application/x-shockwave-flash'></embed></object>";
	}
}

function updateTotal()
{
	var quantity = document.getElementById("menu1").value;
	var price = document.getElementById("priceeach").value;
	var total = price*quantity;
	total = total.toFixed(2);
	document.getElementById("totalvalue").innerHTML = "$" + total + " USD";
	document.getElementById("nQuantity").value = quantity;
}

function updateTotalAU()
{
	var quantity = document.getElementById("menu1").value;
	var price = document.getElementById("priceeach").value;
	var total = price*quantity;
	total = total.toFixed(2);
	document.getElementById("sTotalVal").value = "$" + total + " AUD";
	document.getElementById("totalvalue").innerHTML = "$" + total + " AUD";
	document.getElementById("nQuantity").value = quantity;
}

function validateform_sthoau(form){
	var firstname = form.firstname.value;
	var lastname = form.lastname.value;
	var email = form.emailaddr.value;
	if(firstname.length < 3){
		alert("Please enter a valid name.");
		return false;
	}
	if(lastname.length < 3){
		alert("Please enter a valid name.");
		return false;
	}
	if(email.length < 6){
		alert("Please enter a valid email address.");
		return false;
	}
	return true;
}

function validateform_rsho(form)
{
	if(form.rsun.value.length < 3)
	{
		alert("Please enter a valid username.");
		return false;
	}
	if(form.rspw.value.length < 3)
	{
		alert("Please enter a valid password.");
		return false;
	}
	if(form.firstname.value.length < 3)
	{
		alert("Please enter a valid name.");
		return false;
	}
	if(form.lastname.value.length < 3)
	{
		alert("Please enter a valid name.");
		return false;
	}
	if(form.emailaddr.value.length < 6)
	{
		alert("Please enter a valid email.");
		return false;
	}
	return true;
}