//==============This WebCode Is Written By York 2005.3======================
//==============ASP&JavaScript程序代码编写由York(周浩)完成,联系QQ:31741622====

	var divHeight = 308;
	var myMode = 0;		
	var theHtml = "";
	var checkflag="false";

	function check(field){
		if(field == null) return "全选本页";
		if(checkflag == "false"){
			for(i = 0;i < field.length;i++){
				field[i].checked = true;
			}
			checkflag = "true";
			return "取消选择";
		}else{
			for(i = 0;i < field.length;i++){
				field[i].checked = false;
			}
			checkflag = "false";
			return "全选本页";
		}
	}

	function showHideMe(me){
		if(me.innerText == ''){
			me.innerText = '\nNo Contents!';
		}
		if(me.style.display == 'none'){
			me.style.display = '';
		}else{
			me.style.display = 'none';
		}
	}

	function isIE6(){
		if(navigator.userAgent.indexOf("MSIE 6.0;") == -1){
			return false;
		}
		return true;
	/*	
		document.write(navigator.appName);
		document.write(navigator.appVersion);
		document.write(navigator.appCodeName);
		document.write(navigator.userAgent);
	*/	
	}

	function showMenu(){
		if(isIE6() == true){
			document.write("<div id='Menu'>");
			var Button = new Array(
				new Array('清除Word源码','word','pasteWord();'),
				new Array('撤消','undo','doIt("undo");'),
				new Array('恢复','redo','doIt("redo");'),
				new Array('减少缩进量','outdent','doIt("outdent");'),
				new Array('增加缩进量','indent','doIt("indent");'),
				new Array('字体颜色','forecolor','showColor(\"forecolor\");'),
				new Array('文字背景颜色','backColor','showColor(\"backColor\");'),
				new Array('编号','insertorderedlist','doIt("insertorderedlist");'),
				new Array('项目符号','insertunorderedlist','doIt("insertunorderedlist");'),
				new Array('插入超级连接','CreateLink','doIt("CreateLink");'),
				new Array('取消超级链接','unLink','doIt("unLink");'),
				new Array('插入图片','image','injoItImage();'),
				new Array('插入动画','flash','injoItFlash();'),
				new Array('插入媒体文件','mp','injoItMp();'),
				new Array('插入网页','htm','injoItIframe();'),
				new Array('插入当前日期与时间','time','doAdd(doTime())'),
				new Array('换行','br','doAdd("<br>");'),
				new Array('插入网页元素','injo','showIt(hiddenDiv);')
			);
			for(var i = 0;i < Button.length; i++){
				document.write("<button style='border:\"0px\"' class='ToolsBarButton' "
					+ "title='" + Button[i][0] + "' "
					+ "onClick='" + Button[i][2] + ";' "
					+ "onMouseover='this.style.border=\"1px outset buttonhighlight\"' "
					+ "onMousedown='this.style.border=\"1px inset buttonhighlight\"' "
					+ "onMouseout='this.style.border=\"0px none buttonface\"' "
					+ "onMouseup='this.style.border=\"0px none buttonface\"' "
					+ "onFocus='this.blur()' "
					+ "style='cursor: hand;'>"
					+ "<img src='images/Editor/" + Button[i][1] + ".gif'></button>"
					);
			}
			document.write("<select id='add' onchange='doAdd(this[this.selectedIndex].value);this.selectedIndex=0'>"
				+ "<option selected>符　号</option>"
				+ "<option value='<br>'>换行符</option>"
				+ "<option value='<p>{nextPage}</p>'>换页符</option>"
				+ "<option value='<hr>'>灰直线</option>"
				+ "<option value='&nbsp;'>空格</option>"
				+ "<option value='&#8212;'>&#8212;</option>"
				+ "<option value='&pound;'>&pound;</option>"
				+ "<option value='&#8364;'>&#8364;</option>"
				+ "<option value='&copy;'>&copy;</option>"
				+ "<option value='&reg;'>&reg;</option>"
				+ "<option value='&#8482;'>&#8482;</option>"
				+ "<option value='&#8240;'>&#8240;</option>"
				+ "</select>");
			document.write("</div><div id='Menu'>");
	
			document.write("<select ID='formatSelect' class='TBGen' onchange='selectDoIt(\"FormatBlock\",this[this.selectedIndex].value);this.selectedIndex=0'>"
				+ "<option selected>格　式</option>"
				+ "<option VALUE='&lt;P&gt;'>普　通</option>"
				+ "<option VALUE='&lt;PRE&gt;'>已编排</option>"
				+ "<option VALUE='&lt;H1&gt;'>标题一</option>"
				+ "<option VALUE='&lt;H2&gt;'>标题二</option>"
				+ "<option VALUE='&lt;H3&gt;'>标题三</option>"
				+ "<option VALUE='&lt;H4&gt;'>标题四</option>"
				+ "<option VALUE='&lt;H5&gt;'>标题五</option>"
				+ "<option VALUE='&lt;H6&gt;'>标题六</option>"
				+ "</select>");
			document.write("<select id='FontName' onchange='selectDoIt(\"fontname\",this[this.selectedIndex].value);this.selectedIndex=0'>"
				+ "<option selected>　　字　　体</option>"
				+ "<option value='宋体'>宋体</option>"
				+ "<option value='黑体'>黑体</option>"
				+ "<option value='楷体_GB2312'>楷体</option>"
				+ "<option value='仿宋_GB2312'>仿宋</option>"
				+ "<option value='隶书'>隶书</option>"
				+ "<option value='幼圆'>幼圆</option>"
				+ "<option value='Arial'>Arial</option>"
				+ "<option value='Arial Black'>Arial Black</option>"
				+ "<option value='Arial Narrow'>Arial Narrow</option>"
				+ "<option value='Brush Script	MT'>Brush Script MT</option>"
				+ "<option value='Century Gothic'>Century Gothic</option>"
				+ "<option value='Comic Sans MS'>Comic Sans MS</option>"
				+ "<option value='Courier'>Courier</option>"
				+ "<option value='Courier New'>Courier New</option>"
				+ "<option value='MS Sans Serif'>MS Sans Serif</option>"
				+ "<option value='Script'>Script</option>"
				+ "<option value='System'>System</option>"
				+ "<option value='Times New Roman'>Times New Roman</option>"
				+ "<option value='Verdana'>Verdana</option>"
				+ "<option value='Wide	Latin'>Wide Latin</option>"
				+ "<option value='Wingdings'>Wingdings</option>"
				+ "<option value='Wingdings 2'>Wingdings 2</option>"
				+ "</select><select id='FontSize' onchange='selectDoIt(\"fontsize\",this[this.selectedIndex].value);this.selectedIndex=0'>"
				+ "<option selected>字号</option>"
				+ "<option value='7'>一号</option>"
				+ "<option value='6'>二号</option>"
				+ "<option value='5'>三号</option>"
				+ "<option value='4'>四号</option>"
				+ "<option value='3'>五号</option>"
				+ "<option value='2'>六号</option>"
				+ "<option value='1'>七号</option>"
				+ "</select>");
			var Button = new Array(
				new Array('上标','superscript','doIt("superscript");'),
				new Array('下标','subscript','doIt("subscript");'),
				new Array('加粗','bold','doIt("bold")'),
				new Array('斜体','italic','doIt("italic")'),
				new Array('下划线','underline','doIt("underline")'),
				new Array('删除线','strikethrough','doIt("strikethrough")'),
				new Array('靠左','justifyleft','doIt("Justifyleft")'),
				new Array('居中','justifycenter','doIt("justifycenter")'),
				new Array('靠右','justifyright','doIt("justifyright")'),
				new Array('删除文字格式','RemoveFormat','doIt("RemoveFormat")')
			);
			for(var i = 0;i < Button.length; i++){
				document.write("<button style='border:\"0px\"' class='ToolsBarButton' "
					+ "title='" + Button[i][0] + "' "
					+ "onClick='" + Button[i][2] + ";' "
					+ "onMouseover='this.style.border=\"1px outset buttonhighlight\"' "
					+ "onMousedown='this.style.border=\"1px inset buttonhighlight\"' "
					+ "onMouseout='this.style.border=\"0px none buttonface\"' "
					+ "onMouseup='this.style.border=\"0px none buttonface\"' "
					+ "onFocus='this.blur()' "
					+ "style='cursor: hand;'>"
					+ "<img src='images/Editor/" + Button[i][1] + ".gif'></button>"
					);
			}
	//		document.write("</div><div id='Menu'>");
	
			document.write("</div>");
			document.write("<div id=contDiv class=div0 contenteditable></div>");
			document.write("<div id='Menu'>"
				+ "<button class='editMode' id='editMode' onClick='setMode(0);' title='编辑模式:视图' onMouseover='this.style.border=\"1px outset buttonhighlight\"' onMousedown='this.style.border=\"1px inset buttonhighlight\"' onMouseout='this.style.border=\"0px none buttonface\"' onMouseup='this.style.border=\"0px none buttonface\"'onFocus='this.blur()'>编辑</button>"
				+ "<button class='editMode' id='editMode' onClick='setMode(1);' title='编辑模式:源代码' onMouseover='this.style.border=\"1px outset buttonhighlight\"' onMousedown='this.style.border=\"1px inset buttonhighlight\"' onMouseout='this.style.border=\"0px none buttonface\"' onMouseup='this.style.border=\"0px none buttonface\"'onFocus='this.blur()'>代码</button>"
				+ "<button class='editMode' id='editMode' onClick='setMode(2);' title='编辑模式:预览' onMouseover='this.style.border=\"1px outset buttonhighlight\"' onMousedown='this.style.border=\"1px inset buttonhighlight\"' onMouseout='this.style.border=\"0px none buttonface\"' onMouseup='this.style.border=\"0px none buttonface\"'onFocus='this.blur()'>预览</button>"
				+ "<button class='editMode' id='editMode' onClick='showModalDialog(\"editHelp.htm\", \"\", \"dialogWidth:21em; dialogHeight:13em; help: no; scroll: no; status: no\");' title='查看帮助' onMouseover='this.style.border=\"1px outset buttonhighlight\"' onMousedown='this.style.border=\"1px inset buttonhighlight\"' onMouseout='this.style.border=\"0px none buttonface\"' onMouseup='this.style.border=\"0px none buttonface\"'onFocus='this.blur()'>帮助</button>"
				+ "<button class='editMode' id='editMode' onClick='contDiv.style.height=divHeight+=200;' title='增加编辑器大小' onMouseover='this.style.border=\"1px outset buttonhighlight\"' onMousedown='this.style.border=\"1px inset buttonhighlight\"' onMouseout='this.style.border=\"0px none buttonface\"' onMouseup='this.style.border=\"0px none buttonface\"'onFocus='this.blur()'>↓</button>"
				+ "<button class='editMode' id='editMode' onClick='if(divHeight>300){contDiv.style.height=divHeight-=200;};' title='减小编辑器大小' onMouseover='this.style.border=\"1px outset buttonhighlight\"' onMousedown='this.style.border=\"1px inset buttonhighlight\"' onMouseout='this.style.border=\"0px none buttonface\"' onMouseup='this.style.border=\"0px none buttonface\"'onFocus='this.blur()'>↑</button>"
				+ "<button class='editMode' id='editMode' onClick='this.value=writeType(this.value);' title='输入模式' onMouseover='this.style.border=\"1px outset buttonhighlight\"' onMousedown='this.style.border=\"1px inset buttonhighlight\"' onMouseout='this.style.border=\"0px none buttonface\"' onMouseup='this.style.border=\"0px none buttonface\"'onFocus='this.blur()'>插入</button>"
				+ "</div>");
			document.write("<div id='Menu'>指定顶部图片:"
				+ "<input name='topPic' type='text' id='topPic' size='30' maxlength='250'>"
				+ "<select name='picList' id='picList' onChange='topPic.value=this.value;'>"
				+ "<option selected>不指定首页图片</option>"
				+ "</select>"
				+ "</div>");
			document.write("<div id='hiddenDiv' style='position:absolute;z-index:1;display:none;background-color: #F0FFF0;border: 1px solid #999999;'><div style='border-bottom: 1px solid #afafaf;line-height:5px;background-color:#9879ff;'>&nbsp;</div>");
				var Button = new Array(
					new Array('插入图片','插入图片','InsertImage'),
					new Array('插入按钮','插入按钮','InsertButton'),
					new Array('插入方框','插入方框','InsertFieldset'),
					new Array('插入重置','插入重置','InsertInputReset'),
					new Array('插入提交','插入提交','InsertInputSubmit'),
					new Array('插入按钮框','插入按钮框','InsertInputButton'),
					new Array('插入复选框','插入复选框','InsertInputCheckbox'),
					new Array('插入隐藏域','插入隐藏域','InsertInputHidden'),
					new Array('插入图像域','插入图像域','InsertInputImage'),
					new Array('插入密码框','插入密码框','InsertInputPassword'),
					new Array('插入单选钮','插入单选钮','InsertInputRadio'),
					new Array('插入文本框','插入文本框','InsertInputText'),
					new Array('插入空字幕','插入空字幕','InsertMarquee'),
					new Array('插入下拉框','插入下拉框','InsertSelectDropdown'),
					new Array('插入列表框','插入列表框','InsertSelectListbox'),
					new Array('插入文件上传','插入文件上传','InsertInputFileUpload'),
					new Array('插入多行文本框','插入多行文本框','InsertTextArea'),
					new Array('插入水平线','插入水平线','InsertHorizontalRule'),
					new Array('插入内框架','插入内框架','InsertIFrame')
				);
				for(var i = 0;i < Button.length; i++){
					document.write("<div style='cursor: hand;' title='" + Button[i][0] + "' onClick='doIt(\"" + Button[i][2] + "\");showIt(hiddenDiv)'>&nbsp;" + Button[i][1] + "&nbsp;</div>");
				}
			document.write("</div>");
		}
	}

	function doIt(theAct){
		if(myMode != 0) return;
		contDiv.focus();
		contDiv.document.execCommand(theAct, true);
	}

	function selectDoIt(theAct, what){
		if(myMode != 0) return;
		contDiv.focus();
		contDiv.document.execCommand(theAct, true, what);
	}

	function doAdd(me){
		if(myMode != 0) return;
		contDiv.focus();
		var range = contDiv.document.selection.createRange();
		range.pasteHTML(me);
	}

	function doTime(){
		var d = new Date();
		return d.getYear()+"年"+(d.getMonth() + 1)+"月"+d.getDate() +"日  " + d.getHours() +":"+d.getMinutes()+":"+d.getSeconds();
	}

	function setMode(myId){
		if(myMode == 0 || myMode == 2)theHtml = contDiv.innerHTML;
		if(myMode == 1)theHtml = contDiv.innerText;
		if(myId == 1){
			contDiv.innerText = theHtml;
		}else{
			contDiv.innerHTML = theHtml;
		}
		myMode = myId;
		contDiv.className = "div" + myId;
		if(myId == 2){
			contDiv.contentEditable = false;
		}else{
			contDiv.contentEditable = true;
		}
	}

	function writeType(me){
		if(myMode != 0) return me;
		doIt("OverWrite");
		if(me == "插入"){
			return "修改";
		}else{
			return "插入";
		}
	}
/*
	eval(oldM).disabled = false;
	eval(m).disabled = true; 
*/
	function startIt(initHtml, initPic, me){
		if(isIE6() == true){
			contDiv.innerHTML = initHtml;
			contDiv.style.height = divHeight;
			contDiv.document.execCommand("LiveResize");
			if(initPic != ""){
				edit.topPic.value = initPic;
				edit.picList.options[edit.picList.length] = new Option(initPic,initPic);
				edit.picList.selectedIndex += 1;
			}
		}else{
			alert("您的浏览器版本过低,不能使用本编辑系统!请升级到IE6.0,或更高版本!");
			if(me == null){
				window.location = "?pageName=addArticle&isHtml=False";
			}
		}
	}

	function showColor(what){
		if(myMode != 0) return;
		contDiv.focus();
		var range = contDiv.document.selection.createRange();
		var str = showModalDialog("editSetColor.asp", "", "dialogWidth:18em; dialogHeight:15em; help: no; scroll: no; status: no");  
		if (str != null){
			selectDoIt(what, str);
		}
	}

	function isInt(){
		return ((event.keyCode >= 48) && (event.keyCode <= 57));
	}

	function showIt(me){
		if(me.style.display == "none"){
			me.style.display = "";
			with(me.style){
				pixelTop = 240;
				pixelLeft = event.x - 15;
			};
		}else{
			me.style.display = "none";
		}
	}

	// 添加到顶图
	function injoItImage(){
		if(myMode != 0) return;
		contDiv.focus();
		var range = contDiv.document.selection.createRange();
		var str = showModalDialog("editInjoPic.asp", "", "dialogWidth:23em; dialogHeight:13em; help: no; scroll: no; status: no");
		if (str != null){
			var sss = str.split("$$");
			range.pasteHTML("" + sss[0] + "");
			AddItem(sss[1]);
		}
	}
	function AddItem(strFileName){
		edit.topPic.value = strFileName;
		edit.picList.options[edit.picList.length] = new Option(strFileName,strFileName);
		edit.picList.selectedIndex += 1;
	//	edit.articleTitleImage.value = strFileName;
		edit.titlePicList.options[edit.titlePicList.length] = new Option(strFileName,strFileName);
	//	edit.titlePicList.selectedIndex += 1;
	}
	function injoPicOk(){
		var picUrl = document.formPic.url.value;
		if(picUrl == "" || picUrl == "http://"){
			alert("请先输入图片地址,或者上传图片!");
			document.formPic.url.focus();
			return;
		}else{
			thePicStr = "<img style='cursor: hand;' onclick=\"window.open('" + document.formPic.url.value + "')\" src='" + document.formPic.url.value + "'"
			if(document.formPic.altText.value != "")thePicStr += " alt='" + document.formPic.altText.value + "'";
			if(document.formPic.width.value != "" && document.formPic.width.value != "0")thePicStr += " width='" + document.formPic.width.value + "'";
			if(document.formPic.height.value != "" && document.formPic.height.value != "0")thePicStr += " height='" + document.formPic.height.value + "'";
			if(document.formPic.border.value != "")thePicStr += " border='" + document.formPic.border.value + "'";
			if(document.formPic.alignType.value != "")thePicStr += " align='" + document.formPic.alignType.value + "'";
			if(document.formPic.vspace.value != "")thePicStr += " vspace='" + document.formPic.vspace.value + "'";
			if(document.formPic.hspace.value != "")thePicStr += " hspace='" + document.formPic.hspace.value + "'";
			if(document.formPic.styleType.value != "")thePicStr += " style='" + document.formPic.styleType.value + "'";
			thePicStr += " onload='if(this.width>550)this.width=550;'>";
//			alert(thePicStr);
			window.returnValue = thePicStr + "$$" + document.formPic.url.value;
			window.close();
		}
	}

	function injoItFlash(){
		if(myMode != 0) return;
		contDiv.focus();
		var range = contDiv.document.selection.createRange();
		var str = showModalDialog("editInjoFlash.asp", "", "dialogWidth:23em; dialogHeight:5em; help: no; scroll: no; status: no");  
		if (str != null){
			range.pasteHTML("" + str + "");
		}
	}
	function injoFlashOk(){
		var FlashUrl = document.formFlash.url.value;
		if(FlashUrl == "" || FlashUrl == "http://"){
			alert("请先输入Flash地址!");
			document.formFlash.url.focus();
			return false;
		}else{
			theFlashStr = "<object classid='clsid:D27CDB6E-AE6D-11cf-96B8-444553540000' codebase='http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=5,0,0,0'"
			theFlashStr += " width="
			if(document.formFlash.width.value != ""){
				theFlashStr += "'" + document.formFlash.width.value + "'";
			}else{
				theFlashStr += "'500'";
			}
			theFlashStr += " height="
			if(document.formFlash.height.value != ""){
				theFlashStr += "'" + document.formFlash.height.value + "'";
			}else{
				theFlashStr += "'500'";
			}
			theFlashStr += "><param name=movie value=" + document.formFlash.url.value
			theFlashStr += "><param name=quality value=high><embed src='" + document.formFlash.url.value
			theFlashStr += "' pluginspage='http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash' type='application/x-shockwave-flash' "
			theFlashStr += " width="
			if(document.formFlash.width.value != ""){
				theFlashStr += "'" + document.formFlash.width.value + "'";
			}else{
				theFlashStr += "'500'";
			}
			theFlashStr += " height="
			if(document.formFlash.height.value != ""){
				theFlashStr += "'" + document.formFlash.height.value + "'";
			}else{
				theFlashStr += "'500'";
			}
			theFlashStr += "></embed></object>"
//			alert(theFlashStr);
			window.returnValue = theFlashStr;
			window.close();
		}
	}

	function injoItMp(){
		if(myMode != 0) return;
		contDiv.focus();
		var range = contDiv.document.selection.createRange();
		var str = showModalDialog("editInjoMp.asp", "", "dialogWidth:23em; dialogHeight:8em; help: no; scroll: no; status: no");  
		if (str != null){
			range.pasteHTML("" + str + "");
		}
	}
	function injoMpOk(){
		var mpUrl = document.formMp.url.value;
		if(mpUrl == "" || mpUrl == "http://"){
			alert("请先输入文件地址!");
			document.formMp.url.focus();
			return false;
		}else{
			theMpStr = "<embed src=" + document.formMp.url.value
			+ " width=" + document.formMp.width.value
			+ " height=" + document.formMp.height.value
			+ "></embed>"
			window.returnValue = theMpStr;
			window.close();
		}
	}

	function injoItIframe(){
		if(myMode != 0) return;
		contDiv.focus();
		var range = contDiv.document.selection.createRange();
		var str = showModalDialog("editInjoIframe.asp", "", "dialogWidth:23em; dialogHeight:9em; help: no; scroll: no; status: no");  
		if (str != null){
			range.pasteHTML("" + str + "");
		}
	}
	function injoIframeOk(){
		var iframeUrl = document.formIframe.url.value;
		if(iframeUrl == "" || iframeUrl == "http://"){
			alert("请先输入网页地址!");
			document.formIframe.url.focus();
			return false;
		}else{
			theIframeStr = "<iframe src='" + document.formIframe.url.value + "'"
			theIframeStr += " scrolling='" + document.formIframe.scrolling.value + "'"
			theIframeStr += " frameborder='" + document.formIframe.frameborder.value + "'"
			if(document.formIframe.marginwidth.value != ""){
				theIframeStr += " marginwidth='" + document.formIframe.marginwidth.value + "'";
			}
			if(document.formIframe.marginheight.value != ""){
				theIframeStr += " marginheight='" + document.formIframe.marginheight.value + "'";
			}
			if(document.formIframe.width.value != ""){
				theIframeStr += " width='" + document.formIframe.width.value + "'";
			}
			if(document.formIframe.height.value != ""){
				theIframeStr += " height='" + document.formIframe.height.value + "'";
			}
			theIframeStr += "></iframe>";
			window.returnValue = theIframeStr;
			window.close();
		}
	}

	function pasteWord(){
		if(myMode != 0) return;
		var editBody = contDiv;
		for(var intLoop = 0;intLoop < editBody.all.length;intLoop++){
			el = editBody.all[intLoop];
			el.removeAttribute("className","",0);
			el.removeAttribute("style","",0);
			el.removeAttribute("font","",0);
		}
		var html = contDiv.innerHTML;
		html = html.replace(/<o:p>&nbsp;<\/o:p>/g,"");
		html = html.replace(/o:/g,"");
		html = html.replace(/<font>/g, "");
		html = html.replace(/<FONT>/g, "");
		html = html.replace(/<span>/g, "");
		html = html.replace(/<SPAN>/g, "");
		html = html.replace(/<SPAN lang=EN-US>/g, "");
		html = html.replace(/<P>/g, "");
		html = html.replace(/<\/P>/g, "");
		html = html.replace(/<\/SPAN>/g, "");
		contDiv.innerHTML = html;
		doIt('selectall');
		doIt('RemoveFormat');
	}

	function submitIt(me){
		if(isIE6() == true){
			if(myMode == 1){
				theHtml = contDiv.innerText;
			}else{
				theHtml = contDiv.innerHTML;
			}
			me.content.value = theHtml;
		}
		if (me.content.value.length < 50){
			alert("文章内容过少(50B)!请添加!");
			return false;
		}
		if (me.content.value.length > 65536){
			alert("文章内容太长(64KB)!请分多次添加.");
			return false;
		}
		if (me.authorName.value == ""){
			alert("作者不能为空!请返回添加.");
			me.authorName.focus();
			return false;
		}
		if (me.listId.value == 0){
			alert("外链,关闭,与非最小分类不能添加!");
			me.listId.focus();
			return false;
		}
		if(me.articleTitle.value == ""){
			alert("标题不能为空!请返回添加.");
			me.articleTitle.focus();
			return false;
		}
		me.submit();
	}
