var txtUserNameMsg= new Array('会员登录名由6-20个英文字母或数字组成(不支持中文)。一旦注册成功，不可修改；建议使用公司名的字母缩写。','<font color=red>您的填写有误。</font>会员登录名只能由6-20个英文字母或数字组成(不支持中文)。');
var txtPassWordMsg= new Array('密码由6-20个英文字母(不区分大小写)或数字组成，建议采用易记、难猜的英文数字组合。','<font color=red>您设置的密码有误。</font>密码由6-20个英文字母(不区分大小写)或数字组成');
var txtRePassWordMsg=new Array('请再输入一遍您上面填写的密码。','两次输入的密码不一致！请再输入一遍您上面填写的密码。');

var txtNameMsg=new Array('您的姓名。','请输入您的姓名。','联系人必须输入。');
var txtEmailMsg=new Array('请填写常用的电子邮箱，这也是客户联系您的首选方式！没有电子邮箱？点此免费获取：<a href=http://mail.163.com/ target=_blank><font color=red>网易邮箱</font></a> <a href=https://member.cn.yahoo.com/reg_alibaba/reginfo.html target=_blank><font color=red>雅虎邮箱</font></a>','电子邮件格式不正确，请输入正确的电子邮件地址。');

var txtQQMsg=new Array('重要！请填写您的QQ号码，方便与客户在线联系，如有多个QQ请依次填写，最多填写三个QQ号，如无QQ号您可以点此<a href=http://freeqq2.qq.com/ target=_blank><font color=red>免费申请</font></a>.','<font color=red>您的填写有误。</font>QQ号必须是5-10位的数字。');
var txtAliWWMsg=new Array('重要！请填写您的阿里旺旺号码，方便与客户在线联系，如有多个旺号请依次填写。');

var phone_countryMsg=new Array('','');
var phone_areaMsg=new Array('',''); 

var txtPhoneMsg=new Array('电话和手机号码必须输入一项！如果有多个电话号码，请使用\"\/\"分隔；分机号码请用\"-\"分隔，注意填写区号。','<font color=red>您的填写有误。</font>号码只能使用数字或"/","-" 。');
var txtMobileMsg=new Array('建议您填写，以便潜在客户及时与您取得联系！如果要输入多个号码，请使用\"\/\"分隔。','<font color=red>您的填写有误。</font>号码只能使用数字或"/","-" 。');

var txtFaxMsg=new Array('','区号必须是数字','<font color=red>您的填写有误。</font>电话号码只能使用数字或"/","-" 。');

var txtCompanyMsg=new Array('*请填写在工商局注册的企业名全称。<br>*无商号的个体经营者填写执照上的姓名，并标注个体经营。如：张三（个体经营）','含有非法字符。');
var txtAddressMsg=new Array('请在此填写公司主要经营地点或厂址。','输入错误，主营地址不能超过50个字符。');

var txtSellKeyMsg=new Array('请填写贵公司主营的产品（或服务）关键字，可以提高公司信息搜索机会；如有多个，请用逗号分隔。如：布料，拉链','<h1>关键字含有非法字符<\/h1>;');
var txtBuyKeyMsg=new Array('请填写贵公司要采购的产品关键字，如有多个，请用逗号分隔。','<h1>关键字含有非法字符<\/h1>;');

function ini_msg(temp,content)
{
	obj = document.getElementById(temp);
    obj.style.padding = '5px 5px 5px 5px';
    obj.style.background = '#ffffff';
	obj.style.color='#999999';
    obj.style.border = '#fff 0px solid';
    obj.innerHTML = content;
}

function show_msg(temp, content) {
    obj = document.getElementById(temp);
    obj.style.padding = '4px 4px 4px 4px';
    obj.style.background = '#F7FFDD';
	obj.style.color='#000000';
    obj.style.border = '#999999 1px solid';
    obj.innerHTML = content;
}

function showError(obj, content) {
	obj.style.padding = '4px 4px 4px 25px';
	obj.style.background = '#FFF5D8 url(images/icon_wrong.gif) 4px 4px no-repeat';
	obj.style.border = '#f60 1px solid';
	obj.style.color='#000000';
	obj.innerHTML = content;
	window.scrollTo(0, obj.offsetParent.offsetTop + obj.offsetParent.offsetParent.offsetTop + obj.offsetParent.offsetParent.offsetParent.offsetTop);
}

function showRight(obj,content)
{
	obj.style.padding = '4px 4px 4px 25px';
	obj.style.background = '#fff2e9 url(images/icon_right.gif) 4px 4px no-repeat';
	obj.style.border = '#f60 1px solid';
	obj.style.color='#000000';
	obj.innerHTML = content;
}