function adinit()
					{
						var __objurl = "/Movie/Ajax/GetAd.aspx";
						var __pars = "&field=init&dtime=" + getRightNowTime();
						$("ad").innerHTML = "<div></div>";
						var newmyAjax = new Ajax.Request(
                            __objurl,
                            {method: 'get', parameters: __pars, onComplete:getData_ad }
                            ); 
					}
					function getData_ad(originalRequest)
					{ 
						$("ad").innerHTML = originalRequest.responseText;
						
					}
					function flvinit()
					{
						var __objurl = "/Movie/Ajax/GetFlv.aspx";
						var __moviename = document.all ? document.all['moviename'] : document.getElementById('moviename');
						var __pars = "&field=init&dtime=" + getRightNowTime()+"&moviename="+__moviename.value+"&url="+window.location.href;
						$("flash").innerHTML = "";
						var newmyAjax = new Ajax.Request(
                            __objurl,
                            {method: 'get', parameters: __pars, onComplete:getData_flv }
                            ); 
					}
					// tel_cnc=tel|cnc;
					function flvinitby_moviepathguid(moviepathguid,tel_cnc,jishu)
					{
						var __objurl = "/Movie/Ajax/GetFlv.aspx";
						var __moviename = document.all ? document.all['moviename'] : document.getElementById('moviename');
						var __pars = "&field=later&tel_cnc="+tel_cnc+"&jishu="+jishu+"&moviename="+__moviename.value+"&dtime=" + getRightNowTime()+"&moviepathguid="+moviepathguid+"&url="+window.location.href;
						$("flash").innerHTML = "";
						var newmyAjax = new Ajax.Request(
                            __objurl,
                            {method: 'get', parameters: __pars, onComplete:getData_flv }
                            ); 
					}
					function getData_flv(originalRequest)
					{ 
						$("flash").innerHTML = originalRequest.responseText;
						
					}
					function OpenWindow_WH(url,w,h)
					{
						window.open(url,'','toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=no,copyhistory=yes,width='+w+',height='+h+',left='+(screen.width-w)/2+',top='+(screen.height-h)/2);
						return false;
					}
					//投票
					function vote()
					{
						/*
						if (getCookie("JiangShiCookieAuth")== null||getCookie("JiangShiCookieAuth")== "")
						{
							if(confirm("您还没有登录，必须先登录后才能投票，现在就登录吗？"))
							{
								window.location.href = "/Login.aspx?ReturnUrl=" + window.location.href;
								return false;
							}
							return false;
						}
						*/
						alert("感谢您的支持！！！");
						var __drpVote = document.all ? document.all['drpVote'] : document.getElementById('drpVote');
						var __votevalue = __drpVote.options[__drpVote.selectedIndex].value;
						var __movieid = document.all?document.all["globalarmovieid"]:document.getElementById("globalarmovieid");
						var __objurl = "/Movie/Ajax/MovieVote.aspx";
						var __pars = "&field=submit&movieid="+__movieid.value+"&votevalue="+__votevalue+"&dtime=" + getRightNowTime();
						$("voteinfo").innerHTML = "";
						var newmyAjax = new Ajax.Request(
                            __objurl,
                            {method: 'get', parameters: __pars, onComplete:getData_Vote }
                            ); 
                            
					}
					function voteinit()
					{
						var __movieid = document.all?document.all["globalarmovieid"]:document.getElementById("globalarmovieid");
						var __objurl = "/Movie/Ajax/MovieVote.aspx";
						var __pars = "&field=init&movieid="+__movieid.value+"&dtime=" + getRightNowTime();
						$("voteinfo").innerHTML = "";
						var newmyAjax = new Ajax.Request(
                            __objurl,
                            {method: 'get', parameters: __pars, onComplete:getData_Vote }
                            ); 
					}
					//获取数据
					function getData_Vote(originalRequest)
					{ 
					$("voteinfo").innerHTML = originalRequest.responseText;
						//myAjax = null;
					}
					/////评论
					var _______validateresult;
					//验证码
					function getvalidatekey()
					{
						var __objurl = "/Movie/Ajax/GetValidateKey.aspx";
						var __pars = "&field=init&dtime=" + getRightNowTime();
						$("validatekey_submit").value = "000000";
						var newmyAjax = new Ajax.Request(
                            __objurl,
                            {method: 'get', parameters: __pars, onComplete:getData_getvalidatekey }
                            ); 
					}
					function getData_getvalidatekey(originalRequest)
					{ 
						var tbxValidatekey1 = document.all?document.all["tbxValidatekey"]:document.getElementById("tbxValidatekey");
						$("validatekey_submit").value = originalRequest.responseText;
						if(tbxValidatekey1.value != originalRequest.responseText)
						{
							_______validateresult = "no";
						}
						else
						{
							_______validateresult = "yes";
						}
					}
					//获取数据
					function showGetData_comment(originalRequest)
					{ 
						$('liuyancontent').innerHTML = originalRequest.responseText;
					}
					function getcomment(currentpage)
					{
						var __bokeid = document.all?document.all["globalarmovieid"]:document.getElementById("globalarmovieid");
						var pars = "&field=init&fieldvalue=" + __bokeid.value + "&currpage=" + currentpage+"&dtime=" + getRightNowTime();
						
						var newurl = '/Movie/Ajax/MovieDetailValidate.aspx';
			               
						$('liuyancontent').innerHTML = "<div>正在刷新...</div>";
						var newmyAjax = new Ajax.Request(
										newurl,
										{method: 'get', parameters: pars, onComplete:showGetData_comment }
										); 
					}
					function submitcomment()
					{
						var __bokeid = document.all?document.all["globalarmovieid"]:document.getElementById("globalarmovieid");
						//
						var txtComment1 = document.all?document.all["txtComment"]:document.getElementById("txtComment");
						var tbxValidatekey1 = document.all?document.all["tbxValidatekey"]:document.getElementById("tbxValidatekey");
						
						
						if (getCookie("JiangShiCookieAuth")== null||getCookie("JiangShiCookieAuth")== "")
						{
							if(confirm("您还没有登录，必须先登录才能操作，现在就登录吗？"))
							{
								window.location.href = "/Login.aspx?ReturnUrl=" + window.location.href;
								return false;
							}
							return false;
						}
						
						
						//验证码
						if(tbxValidatekey1.value == "")
						{
							alert("请重新输入验证码");
							tbxValidatekey1.value = "";
							tbxValidatekey1.focus();
							return false;
						}
						var validatekey_submit2 = document.all?document.all["validatekey_submit"]:document.getElementById("validatekey_submit");
						
						if(_______validateresult != "yes")//validatekey_submit2.value != tbxValidatekey1.value)
						{
							alert("验证码不正确，请重新输入");
							tbxValidatekey1.focus();
							return false;
						}
						
						//内容
						if(txtComment1.value == "")
						{
							alert("请输入留言内容");
							txtComment1.focus();
							return false;
						}
						if(txtComment1.value.length > 300)
						{
							alert("留言内容过长，请重新输入！");
							txtComment1.value = "";
							txtComment1.focus();
							return false;
						}
						var pars = "&field=submit&fieldvalue=" + __bokeid.value + "&currpage=1&comment=" + txtComment1.value;
						$('liuyancontent').innerHTML = "<img src='/images/indicator_medium.gif' border='0'>";
						//刷新评论
						var newmyAjax = new Ajax.Request(
										'/Movie/Ajax/MovieDetailValidate.aspx',
										{method: 'get', parameters: pars, onComplete:showGetData_comment }
										); 
						txtComment1.value = "";
						document.getElementById('Img_validate_P').src='/ValidationImageTwo.aspx?temp='+ (new Date().getTime().toString(36));
						_______validateresult = "no";
						return true;
					}
					//添加QQ形象代码
					function addqq(qqcode)
					{
						var txtComment1 = document.all?document.all["txtComment"]:document.getElementById("txtComment");
						if (document.selection)
						{
								txtComment1.focus();
								sel = document.selection.createRange();
								sel.text = qqcode;
								txtComment1.focus();
						}
						else if (myField.selectionStart || myField.selectionStart == '0')
						{
								var startPos = txtComment1.selectionStart;
								var endPos = txtComment1.selectionEnd;
								var cursorPos = endPos;
								txtComment1.value = txtComment1.value.substring(0, startPos)
														+ qqcode
														+ txtComment1.value.substring(endPos, txtComment1.value.length);
								cursorPos += qqcode.length;
								txtComment1.focus();
								txtComment1.selectionStart = cursorPos;
								txtComment1.selectionEnd = cursorPos;
						}
						else
						{
								txtComment1.value += qqcode;
								txtComment1.focus();
						}
					}
					//是否登录
					function userislogin()
					{ 
						if (getCookie("JiangShiCookieAuth")!= ""  && getCookie("JiangShiCookieAuth")!= null)
						{
							return true;
						}
						return false;
					}
					
					function tishi_detail_click(obj)
					{
						var txtComment1 = document.all?document.all["txtComment"]:document.getElementById("txtComment");
						obj.className = "tishi_detail_hide";
						txtComment1.focus();
					}
					function comment_onclick()
					{
						var id_tishi_detail2 = document.all?document.all["id_tishi_detail"]:document.getElementById("id_tishi_detail");
						id_tishi_detail2.className = "tishi_detail_hide";
					}
					function comment_init()
					{
						var txtComment2 = document.all?document.all["txtComment"]:document.getElementById("txtComment");
						txtComment2.value = "";
					}
					function gethitcount(typecode)
					{
						var __bokeid = document.all?document.all["globalarmovieguid"]:document.getElementById("globalarmovieguid");
						var pars = "&field=submit&movieguid=" + __bokeid.value + "&typecode=" + typecode+"&dtime=" + getRightNowTime();;
						$('detail_hitcount').innerHTML = "";
						var newmyAjax = new Ajax.Request(
										'/Movie/Ajax/Detail_GetHitCount.aspx',
										{method: 'get', parameters: pars, onComplete:showGetData_gethitcount }
										); 
						return true;
					}
					//获取数据
					function showGetData_gethitcount(originalRequest)
					{ 
						$('detail_hitcount').innerHTML = originalRequest.responseText;
					}
					
					function gettotalhitcount(typecode)
					{
						var __bokeid = document.all?document.all["globalarmovieguid"]:document.getElementById("globalarmovieguid");
						var pars = "&field=submit&movieguid=" + __bokeid.value + "&typecode=" + typecode+"&dtime=" + getRightNowTime();;
						$('totalhitcount').innerHTML = "";
						var newmyAjax = new Ajax.Request(
										'/Movie/Ajax/Detail_GetHitCount.aspx',
										{method: 'get', parameters: pars, onComplete:showGetData_gettotalhitcount }
										); 
						return true;
					}
					//获取数据
					function showGetData_gettotalhitcount(originalRequest)
					{ 
						$('totalhitcount').innerHTML = originalRequest.responseText;
					}
					
					function getvotecount(typecode)
					{
						var __bokeid = document.all?document.all["globalarmovieguid"]:document.getElementById("globalarmovieguid");
						var pars = "&field=submit&movieguid=" + __bokeid.value + "&typecode=" + typecode+"&dtime=" + getRightNowTime();;
						$('detail_votecount').innerHTML = "";
					
						var newmyAjax = new Ajax.Request(
										'/Movie/Ajax/Detail_GetHitCount.aspx',
										{method: 'get', parameters: pars, onComplete:showGetData_getvotecount }
										); 
						return true;
					}
					function showGetData_getvotecount(originalRequest)
					{ 
						$('detail_votecount').innerHTML = originalRequest.responseText;
					}
					function getcommentcount(typecode)
					{
						var __bokeid = document.all?document.all["globalarmovieguid"]:document.getElementById("globalarmovieguid");
						var pars = "&field=submit&movieguid=" + __bokeid.value + "&typecode=" + typecode+"&dtime=" + getRightNowTime();;
						$('detail_commentcount').innerHTML = "";
					
						var newmyAjax = new Ajax.Request(
										'/Movie/Ajax/Detail_GetHitCount.aspx',
										{method: 'get', parameters: pars, onComplete:showGetData_getcommentcount }
										); 
						return true;
					}
					function showGetData_getcommentcount(originalRequest)
					{ 
						$('detail_commentcount').innerHTML = originalRequest.responseText;
					}