function clearInp(obj, text)
{
	if(!obj)
		return;
	(obj.value == text)? obj.value='': obj.select();
}

function setInp(obj, text)
{
	if(!obj)
		return;

	if((!obj.value) || (obj.value == ' '))
		obj.value = text;
}


function getObj(objID)
{
	return document.getElementById(objID)? document.getElementById(objID): false;
}

function addToCart(obj)
{
	var wid = 300;
	var hei = 130;
	var start_left = (screen.width  - wid) / 2;
	var start_top  = (screen.height - hei) / 2;

	window.open(obj.href,"addToCart", "width=" + wid + ", height=" + hei + ", top=" + start_top + ", left=" + start_left).focus();
	return false;
}