function zixunchk(){

	if (document.zixunform.zixunemail.value==""){
	alert('请输入Email');
	document.zixunform.zixunemail.focus();
	return false;
	}

	var zc = (document.zixunform.zixuncontent.value).length;

	if (document.zixunform.zixuncontent.value==""){
	alert('请输入咨询内容!');
	document.zixunform.zixuncontent.focus();
	return false;
	}

	if (zc>100){
	alert('咨询内容不能超过100个字!');
	document.zixunform.zixuncontent.focus();
	return false;
	}



}

function view_order(){

	if (document.orders.num_get.value==""){
	alert('请输入成人数!');
	document.orders.num_get.focus();
	return false;
	}

	if (checknumber(document.orders.num_get.value)){
	alert('成人数只允许是数字！');
	document.orders.num_get.focus();
	return false;
	}

	if (document.orders.cnum_get.value==""){
	alert('儿童人数不能为空!没有请输入数字0');
	document.orders.cnum_get.focus();
	return false;
	}

	if (checknumber(document.orders.cnum_get.value)){
	alert('儿童人数只允许是数字！');
	document.orders.cnum_get.focus();
	return false;
	}
	
	document.orders.submit();

}

function checknumber(String)
{
    var Letters = "1234567890";
    var i;
    var c;
    for (i = 0; i < String.length; i ++)
    {
        c = String.charAt(i);
        if (Letters.indexOf(c) == -1)
        {
            return true;
        }
    }
    return false;
}
