function sampleValidateLine(type)
{
	//  Prevents you from adding a service line item without specifying the service rep employee.
	
	if ( (nlapiGetCurrentLineItemValue('item', 'custcol_service_item') == 'T') &&
		(nlapiGetCurrentLineItemText('item', 'custcol_service_rep')) == '' )
	{
		alert("You must choose a Service Rep for this service item.");
		return false;
	}

	return true;
}
