function YP_getClassText(v_class)
{
	if (v_class == "1000")
	{
		return "列名会员";
	}
	if (v_class == "2000")
	{
		return "黄页版";
	}
	if (v_class == "3000")
	{
		return "普通会员服务";
	}
	if (v_class == "4000")
	{
		return "商务会员服务";
	}
	if (v_class == "5000")
	{
		return "明星会员服务";
	}
	return "等待批准";
}

function YP_getClassImage(v_class)
{
	if (v_class == "2000")
	{
		return "<img src=http://yp.sina.net/images/20.gif width=25 height=24>";
	}
	if (v_class == "3000")
	{
		return "<img src=http://yp.sina.net/images/news.gif width=25 height=24>";
	}
	if (v_class == "4000")
	{
		return "<img src=http://yp.sina.net/images/adv_I.gif width=25 height=24>";
	}
	if (v_class == "5000")
	{
		return "<img src=http://yp.sina.net/images/adv_II.gif width=25 height=24>";
	}
	return "<img src=http://yp.sina.net/images/free.gif width=25 height=24>";
}

function YP_getClassPrice(v_class)
{
	if (v_class == "1000")
	{
		return "0";
	}
	if (v_class == "2000")
	{
		return "880";
	}
	if (v_class == "3000")
	{
		return "980";
	}
	if (v_class == "4000")
	{
		return "2200";
	}
	if (v_class == "5000")
	{
		return "5800";
	}
	return "0";
}

function YP_getNewsTypeText(v_type)
{
	if (v_type == "2000")
	{
		return "采购";
	}
	if (v_type == "3000")
	{
		return "合作";
	}
	if (v_type == "4000")
	{
		return "代理";
	}
	return "销售";
}

function YP_getNewsTypeColor(v_type)
{
	if (v_type == "2000")
	{
		return "7902FE";
	}
	if (v_type == "3000")
	{
		return "097A11";
	}
	if (v_type == "4000")
	{
		return "D42B03";
	}
	return "00169C";
}

function YP_getMsgText(v_type)
{
	if (v_type == "1000")
	{
		return "商情留言";
	}
	if (v_type == "2000")
	{
		return "产品留言";
	}
	return "公司留言";
}


