function clearInput(text, inputObj) 
{
	if (inputObj.value == text)
		inputObj.value = '';
}

function filterProductGroups(groupType)
{
	jQuery("#productGroup option").remove();

	jQuery("#productGroupHidden option").each(function()
	{
		if(groupType == "VKTuote")
		{
			var option = jQuery("<option></option>")
				.attr("value", jQuery(this).attr("value"))
				.html(jQuery(this).html());
				
			if(jQuery(this).attr("type") !== "sk")
			{
				jQuery("#productGroup").append(jQuery(option));
			}
		}
		else if(groupType == "SKTuote")
		{
			var option = jQuery("<option></option>")
				.attr("value", jQuery(this).attr("value"))
				.html(jQuery(this).html());
			
			if(jQuery(this).attr("type") !== "vk")
			{
				jQuery("#productGroup").append(jQuery(option));
			}
		}
		else
		{
			jQuery("#productGroup").append(jQuery(this));
		}
		
	});
}
