function reallyDeleteCart()
{
	tstr = "Do you really want to delete your shopping bag\n\nYou will loose all the items currently in it?"
	if(confirm(tstr))
	{
		return true
	}
	else
	{
		return false
	}
}


function reallyDeleteItem()
{
	tstr = "Do you really want to delete this item from your basket?"
	if(confirm(tstr))
	{
		return true
	}
	else
	{
		return false
	}
}

function openWin()
{
	_args=arguments
	if(_args[1])features=_args[1]; else features="width=800 height=600 scrollbars=yes toolbar=yes "
	oWin=window.open(_args[0], 'openWin' ,features)
	oWin.focus()
	
}


function setFocus()
{
	if(_W._sfObject)
	{
		_W._sfObject.focus()
	}
	else
	{
		if(arguments[0])arguments[0].focus()
	}
}

function isEmail(_email)
{
	var filter  = /^([a-zA-Z0-9_\.\-])+\@(([a-zA-Z0-9\-])+\.)+([a-zA-Z0-9]{2,4})+$/;
	if (filter.test(_email))return true; else return false
}

function checkFormEmail(_email)
{
	if(!isEmail(_email.value))
	{
		alert("Please enter a valid email address\n\n'"+_email.value+"' is not a valid address")
		_email.focus()
		return false
	}
	return true
}

function checkFormPassword(_pw)
{
	_pwlen=6
	if(_pw.value.length<_pwlen)
	{
		alert("Password must be at least "+_pwlen+" characters long");
		_pw.focus()
		return false
	}
	return true
}