var _popup_param = 'location=no,statusbar=no,menubar=no,width=580,height=530,resizeable=yes';
function isUndefined(v)
{
	var undef;
	return v===undef;
}
function raw_popup(url, target, features)
{
	if (isUndefined(features))
	{
		features = _popup_param;
	}
	if (isUndefined(target))
	{
		target = '_blank';
	}
	var theWindow = window.open(url, target, features);
	theWindow.focus();
	return theWindow;
}
function link_popup(src, features)
{
	return raw_popup(src.getAttribute('href'), src.getAttribute('target'), features);
}
function switchDate(num)
{
	document.cart.model[num].checked = true;
}