function menuLeft(i)
{
	document.write("<table width=\"100%\" height=\"100%\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\">");
	document.write("  <tr>");
	document.write("    <td valign=\"top\">");
	document.write("	<object classid=\"clsid:d27cdb6e-ae6d-11cf-96b8-444553540000\" codebase=\"http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0\" width=\"190\" height=\"520\" id=\"test\" align=\"middle\">");
	document.write("		<param name=\"allowScriptAccess\" value=\"sameDomain\" />");
	document.write("		<param name=\"movie\" value=\"Menu1.swf\" />");
	document.write("		<param name=\"quality\" value=\"high\" />");
	document.write("		<param name=\"wmode\" value=\"opaque\" />");
	document.write("		<param name=\"FlashVars\" value=\"a"+i+"=11\"/>");
	document.write("		<param name=\"bgcolor\" value=\"#5b5b5b\" />");
	document.write("		<embed src=\"Menu1.swf\" quality=\"high\" bgcolor=\"#5b5b5b\" width=\"190\" height=\"520\" name=\"test\" align=\"middle\" allowScriptAccess=\"sameDomain\" type=\"application/x-shockwave-flash\" pluginspage=\"http://www.macromedia.com/go/getflashplayer\" />");
	document.write("	</object></td>");
	document.write("  </tr>");
	document.write("  <tr>");
	document.write("    <td height=\"100%\" align=\"left\" valign=\"bottom\"><img src=\"Image/A05.jpg\" width=\"113\" height=\"119\"></td>");
	document.write("  </tr>");
	document.write("</table>");
}

function m1() //贝利集团
{
	path="/Structure.asp";
	document.all.Main.src=path;
}

function m1_1() //董事长致辞
{
	path="/Oration.asp";
	document.all.Main.src=path;
}

function m1_2() //集团简介
{
	path="/Introduction.asp";
	document.all.Main.src=path;
}

function m1_3() //大事记
{
	path="/bigevent.asp";
	document.all.Main.src=path;
}

function m1_4() //历年荣誉
{
	path="/honor.asp";
	document.all.Main.src=path;
}

function m2() //新闻中心
{
	path="/pele_news.asp";
	document.all.Main.src=path;
}

function m2_1() //集团新闻
{
	path="/pele_news.asp";
	document.all.Main.src=path;
}

function m2_2() //媒体聚集
{
	path="/other_news.asp";
	document.all.Main.src=path;
}

function m2_3() //楼盘广告
{
	path="/building_ad.asp";
	document.all.Main.src=path;
}

function m2_4() //视频新闻
{
	path="/video.asp";
	document.all.Main.src=path;
}

function m3() //贝利文化
{
	path="/Culture_list.asp";
	document.all.Main.src=path;
}

function m3_1() //企业文化
{
	path="/Culture_list.asp";
	document.all.Main.src=path;
}

function m3_2() //新城住宅文化
{
	path="/home_culture_paper.asp";
	document.all.Main.src=path;
}

function m3_3() //新城报刊
{
	path="/home_culture_magazine.asp";
	document.all.Main.src=path;
}

function m4() //新城房产
{
	path="/newcity_introduction.asp";
	document.all.Main.src=path;
}

function m4_1() //公司简介
{
	path="/newcity_introduction.asp";
	document.all.Main.src=path;
}

function m4_2() //项目快讯
{
	path="/Project.asp";
	document.all.Main.src=path;
}

function m4_3() //经典楼盘
{
	path="/newcity_building_all.asp";
	document.all.Main.src=path;
}

function m5() //人才招聘
{
	path="/pele_position.asp";
	document.all.Main.src=path;
}

function m5_1() //职业在贝利
{
	path="/pele_position.asp";
	document.all.Main.src=path;
}

function m5_2() //空缺岗位
{
	path="/position.asp";
	document.all.Main.src=path;
}

function m5_3() //应聘流程
{
	path="/Application_flow.asp";
	document.all.Main.src=path;
}

function m5_4() //联系人事
{
	path="/Contact_personnel.asp";
	document.all.Main.src=path;
}

function m6() //客户服务
{
	path="/Promise.asp";
	document.all.Main.src=path;
}

function m6_1() //服务承诺
{
	path="/Promise.asp";
	document.all.Main.src=path;
}

function m6_2() //联系方式
{
	path="/Contact.asp";
	document.all.Main.src=path;
}

function m6_3() //在线留言
{
	path="/Leaveword.asp";
	document.all.Main.src=path;
}

function m6_4() //相关链接
{
	path="/Web_Link.asp";
	document.all.Main.src=path;
}

function m7() //贝利产业
{
	path="/industry.asp";
	document.all.Main.src=path;
}
function m7_1() //贝利建设
{
	path="/pele_Industry4.asp";
	document.all.Main.src=path;
}
function m7_2() //民安物业
{
	path="/pele_Industry7.asp";
	document.all.Main.src=path;
}
function m7_3() //商务中心
{
	path="/pele_Industry8.asp";
	document.all.Main.src=path;
}
function m7_4() //新城房产
{
	path="/newcity_introduction.asp";
	document.all.Main.src=path;
}
function m7_5() //幼儿园
{
	path="http://www.gt61.com";
	//window.location.href=path;  当前窗口打开
	window.open(path);
}
function m7_6() //中家网
{
	path="http://www.hometexnet.com";
	window.open(path);
}




//----------------------------------------------------------------------------
function win_Mail(src)
{ 
	window.showModalDialog(src,window,"center:yes;status:no;scroll:no;help:0;dialogWidth:300px;dialogHeight:330px");
}

function show_time(ctrlobj)
{
	showx = event.screenX - event.offsetX - 4 - 210 ; // + deltaX;
	showy = event.screenY - event.offsetY + 18; // + deltaY;
	newWINwidth = 210 + 4 + 18;

	retval = window.showModalDialog("/js/CalendarDlg.htm", "", "dialogWidth:300px; dialogHeight:210px; dialogLeft:"+showx+"px; dialogTop:"+showy+"px; status:no; directories:yes;scrollbars:no;Resizable=no; "  );
	if( retval != null ) ctrlobj.value = retval;
}

function tourl(form,url)
{
	if ((window.event.srcElement.value == "Del") && (window.event.srcElement.value == "Delete"))
	{
		if (confirm("Are You Sure To Delete It?"))
		{
			form.action=url;
			form.submit()
		}
	}
}

function BrushOffAll() 
{
	for (var i=0;i<Page_Validators.length;i++)
		ValidatorEnable(Page_Validators[i],false);
}

function BrushOnAll() 
{
	for (var i=0;i<Page_Validators.length;i++)
		ValidatorEnable(Page_Validators[i],true);
}

function SummaryOffAll() 
{
	for (var sums = 0; sums < Page_ValidationSummaries.length; sums++)
			Page_ValidationSummaries[sums].showmessagebox = "False";
}

function SummaryOnAll() 
{
	for (var sums = 0; sums < Page_ValidationSummaries.length; sums++)
			Page_ValidationSummaries[sums].showmessagebox = "True";
}

function SummaryEnable(val,enable) 
{
	val.showmessagebox = enable ? "True" : "Flase";
}

function PageSelf() 
{
	for (var i=0;i<document.links.length;i++)
		if ((document.links[i].innerText == "Prev") || (document.links[i].innerText == "Next") || (document.links[i].innerText == "First") || (document.links[i].innerText == "Last")) document.links[i].href="javascript:document.forms[0].target='_self';"+document.links[i].href.substring(11);
	for (var m=0;m<document.forms[0].elements.length;m++)
	{
		if (document.forms[0].elements[m].type == "submit")
		{
			if (document.forms[0].elements[m].onclick != null)
				document.forms[0].elements[m].onclick += new Function("document.forms[0].target='_self'")
			else
				document.forms[0].elements[m].onclick = new Function("document.forms[0].target='_self'")
		}
	}
}

function AllSelect()
{
	if (document.form1.cb.length == undefined)
	{
		if (window.event.srcElement.n == "1")
		{
			document.form1.cb.checked = true;
			window.event.srcElement.innerText = "全不选"
			window.event.srcElement.n = "0";
		}
		else
		{
			document.form1.cb.checked = false;
			window.event.srcElement.innerText = "全选";
			window.event.srcElement.n = "1";
		}
			
	}
	else
	{
		if (window.event.srcElement.n == "1") //当前状态为非全选
		{
			for (var i = 0 ; i < document.form1.cb.length ; i++)
				document.form1.cb[i].checked = true;
	
			window.event.srcElement.innerText = "全不选"
			window.event.srcElement.n = "0";
		}
		else //当前状态为全选
		{
			for (var i = 0 ; i < document.form1.cb.length ; i++)
				document.form1.cb[i].checked = false;
	
			window.event.srcElement.innerText = "全选";
			window.event.srcElement.n = "1";
		}
	}
}

function AntiSelect()
{
	if (document.form1.cb.length == undefined)
		document.form1.cb.checked = document.form1.cb.checked ? false : true;
	else
	{
		for (var i = 0 ; i < document.form1.cb.length ; i++)
			document.form1.cb[i].checked = document.form1.cb[i].checked ? false : true;
	}
}

function BlackSelect(DeleteThis)
{
	for (var i = 0 ; i < document.forms[0].elements.length ; i++)
	{
		if (document.forms[0].elements[i].type=="RadioButton")
			document.forms[0].elements[i].checked == true ? document.forms[0].elements[i].checked = false : document.forms[0].elements[i].checked = true;
	}
}

function GetLength(str)
{
	var l=str.length;
	var n=l
	for (var i=0;i<l;i++)
	{
		if (str.charCodeAt(i)<0||str.charCodeAt(i)>255) n++;
	}
	return n;
}

function CheckLength4_14(source, arguments)
{
	if ((GetLength(arguments.Value)<=3) || (GetLength(arguments.Value)>14)) arguments.IsValid = false; else arguments.IsValid = true;
}

function CheckLength1_10(source, arguments)
{
	if ((GetLength(arguments.Value)<=0) || (GetLength(arguments.Value)>10)) arguments.IsValid = false; else arguments.IsValid = true;
}

function CheckLength1_20(source, arguments)
{
	if ((GetLength(arguments.Value)<=0) || (GetLength(arguments.Value)>20)) arguments.IsValid = false; else arguments.IsValid = true;
}

function CheckLength1_50(source, arguments)
{
	if ((GetLength(arguments.Value)<=0) || (GetLength(arguments.Value)>50)) arguments.IsValid = false; else arguments.IsValid = true;
}

function CheckLength1_15(source, arguments)
{
	if ((GetLength(arguments.Value)<=0) || (GetLength(arguments.Value)>15)) arguments.IsValid = false; else arguments.IsValid = true;
}

function CheckLength1_100(source, arguments)
{
	if ((GetLength(arguments.Value)<=0) || (GetLength(arguments.Value)>100)) arguments.IsValid = false; else arguments.IsValid = true;
}
function CheckLength1_200(source, arguments)
{
	if ((GetLength(arguments.Value)<=0) || (GetLength(arguments.Value)>200)) arguments.IsValid = false; else arguments.IsValid = true;
}
function CheckLength1_300(source, arguments)
{
	if ((GetLength(arguments.Value)<=0) || (GetLength(arguments.Value)>300)) arguments.IsValid = false; else arguments.IsValid = true;
}

function CheckLength1_500(source, arguments)
{
	if ((GetLength(arguments.Value)<=0) || (GetLength(arguments.Value)>500)) arguments.IsValid = false; else arguments.IsValid = true;
}
function CheckLength1_5000(source, arguments)
{
	if ((GetLength(arguments.Value)<=0) || (GetLength(arguments.Value)>5000)) arguments.IsValid = false; else arguments.IsValid = true;
}
