function popUp(url, width, height)
{
	day = new Date();
	id = day.getTime();
	eval("page" + id + " = window.open(url, '" + id + "', 'toolbar=0,scrollbars=0,location=0,statusbar=0,menubar=0,resizable=1,width=" + width + ",height=" + height + "');");
}

function checkAllBox(x)
{
	check = document.getElementsByTagName("input");

	for(i = 0; i < check.length; i++)
	{
		if(check[i].getAttribute("type") == "checkbox")
			check[i].checked = x.checked;
	}
}

function isValidRegisterInfo()
{
	alert(document.registerForm);

	info = document.registerForm;

	//alert(info.seller_email.value);
	error = "";

	if(info.seller_email.value == "")
		error += "\n- Email address cannot be blank";

	if(info.seller_email.value != info.confirm_email.value)
		error += "\n- Confirm email address not match";

	if(info.seller_name.value == "")
		error += "\n- Name cannot be blank";

	if(error != "")
	{
		alert("Following error must be fixed in order to proceed:" + error);
		return false;
	}

	return true;
}
