// JavaScript Document
function expandbox(elem)
{
	var element = elem;	
	var Children = element.childNodes;
	
	for(var i = 0; i < Children.length; i++)
	{
		if(Children.item(i).id == 'image')
		{
			Children.item(i).childNodes[0].width = "160";
			Children.item(i).childNodes[0].height = "125";
		}
	}
}

function contractbox(elem)
{
	var element = elem;	
	var Children = element.childNodes;

	for(var i = 0; i < Children.length; i++)
	{
		if(Children.item(i).id == 'image')
		{
			Children.item(i).childNodes[0].width = "133";
			Children.item(i).childNodes[0].height = "104";
		}
	}
}
function ajaxFunction(id)
{	
	var xmlhttp;
	var userId = id;
	
	if (window.XMLHttpRequest)
  	{
	  	// code for IE7+, Firefox, Chrome, Opera, Safari
	  	xmlhttp=new XMLHttpRequest();
	}
	else if (window.ActiveXObject)
  	{
  		// code for IE6, IE5
  		xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");
  	}
	else
  	{
  		alert("Your browser does not support XMLHTTP!");
  	}

	xmlhttp.onreadystatechange=function()
	{
		if(xmlhttp.readyState==4)
		{
		}
	}
	var params = "userid="+id;
	xmlhttp.open("POST","reset.php",true);
	xmlhttp.setRequestHeader("Content-type", "application/x-www-form-urlencoded");
	xmlhttp.setRequestHeader("Content-length", params.length);
	xmlhttp.setRequestHeader("Connection", "close");
	xmlhttp.send(params);
}

function displayCheckout()
{	
	document.getElementById("rightContent").style.width = "480px";
	document.getElementById("inner").style.width = "500px";
	document.getElementById("inner").style.padding = "0px";

	document.getElementById("checkout_main_title").style.margin = "0px 20px 20px 20px";
	document.getElementById("subtitle").style.margin = "-15px 20px 20px 20px";
	
	document.getElementById("apcoFrame").width = "480";
	document.getElementById("apcoFrame").height = "300";
	document.getElementById("apcoFrame").zindex = "300";
	document.getElementById("apcoFrame").position = "relative";
	document.getElementById("rightMenu").style.width = "0px";
	document.getElementById('details').style.width = "0px";
	document.getElementById('details').style.height = "0px";
	
	document.getElementById('details').style.visibility = "hidden";
}
