//---定义客户端变量-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

var strReplyID = "";
var bolPromptUpdateTag = false;



//==============================================================================================================================
//***赠送好友Mini小屋道具*************//
function PresentProperty(intPropID)
{
	var objFriend = document.getElementById("selFriendID_"+intPropID);
	var intFriendID = objFriend.options(objFriend.selectedIndex).value;

	if(intFriendID==0)
	{
		alert("请先选择你要赠送的好友！");
	}
	else
	{
		var theSendURL = "/MySpace/AjaxProc/Ajax_PresentProperty.aspx";

		var ajax=new AJAXRequest();
		ajax.charset="GB2312";
		ajax.onexception=function Exception(obj){alert("出现异常，操作失败！");}
		ajax.post(
		// 将数据发送到getdata.asp
		theSendURL,
		// 发送的数据为“要发送的数据”
		"PropID="+intPropID+"&FriendID="+intFriendID,
		// 回调函数，用消息框显示服务端的返回内容
		function(obj) {alert(obj.responseText);location.reload();}	
		);
	}
}


//***使用我的Mini小屋道具*************//
function UseProperty(intPropID)
{
	var theSendURL = "/MySpace/AjaxProc/Ajax_UseProperty.aspx";

	var ajax=new AJAXRequest();
	ajax.charset="GB2312";
	ajax.onexception=function Exception(obj){alert("出现异常，操作失败！");}
	ajax.post(
	// 将数据发送到getdata.asp
	theSendURL,
	// 发送的数据为“要发送的数据”
	"PropID="+intPropID,
	// 回调函数，用消息框显示服务端的返回内容
	function(obj) {alert(obj.responseText);location.reload();}	
	);
}


//***获得Mini小屋提醒：是否进行学习计划的练习*************//
function GetPrompt()
{
	if($PromptTag==1)
	{
		var theSendURL = "/MySpace/AjaxProc/Ajax_GetMyPrompt.aspx";

		var ajax=new AJAXRequest();
		ajax.charset="GB2312";
		if(!bolPromptUpdateTag) 
		{
			bolPromptUpdateTag=ajax.update("divPrompt",theSendURL,300000);
		}
		//-------------------------------------------------------------------------------------------------------------
		//if(confirm('你今天的“学习计划”完成了吗? 现在是否要进行练习呢？'))
		//{
		//	window.open("/MySpace/MainFrame/Plan/MyPlan.ASPX?SpaceID="+$SpaceID);
		//}
	}
}


//***清除Mini小屋提醒*******************//
function ClearPrompt()
{
	document.getElementById("divPrompt").innerHTML="";
}



//***提取本月的Mini小屋道具*************//
function GetMonthTicket()
{
	if($TicketTag==1)
	{
		if(confirm('你本月的推荐票还没有领取，是否现在领取！'))
		{
			var theSendURL = "/MySpace/AjaxProc/Ajax_GetMyTicket.aspx";

			var ajax=new AJAXRequest();
			ajax.charset="GB2312";
			ajax.onexception=function Exception(obj){alert("出现异常，操作失败！");}
			ajax.post(
				// 将数据发送到getdata.asp
				theSendURL,
				// 发送的数据为“要发送的数据”
				null,
				// 回调函数，用消息框显示服务端的返回内容 
				function(obj) {alert(obj.responseText);}	
			);
		}
	}
}


//***金铲子功能：把好的作品挖到频道首页*************//
function DigProduction(intProductionID, intProductionType)
{
	var theSendURL = "/MySpace/AjaxProc/Ajax_DigProduction.aspx";

	var ajax=new AJAXRequest();
	ajax.charset="GB2312";
	ajax.onexception=function Exception(obj){alert("出现异常，操作失败！");}
	ajax.post(
		// 将数据发送到getdata.asp
		theSendURL,
		// 发送的数据为“要发送的数据”
		"ProductionID="+intProductionID+"&ProductionType="+intProductionType,
		// 回调函数，用消息框显示服务端的返回内容 
		function(obj) {alert(obj.responseText);}	
	);
}


//***作品投票推荐功能*************//
function VotingProduction(intProductionID, intProductionType, intVotingType)
{
	var theSendURL = "/MySpace/AjaxProc/Ajax_VotingProduction.aspx";

	var ajax=new AJAXRequest();
	ajax.charset="GB2312";
	ajax.onexception=function Exception(obj){alert("出现异常，操作失败！");}
	ajax.post(
		// 将数据发送到getdata.asp
		theSendURL,
		// 发送的数据为“要发送的数据”
		"ProductionID="+intProductionID+"&ProductionType="+intProductionType+"&VotingType="+intVotingType,
		// 回调函数，用消息框显示服务端的返回内容 
		function(obj) {alert(obj.responseText);}	
	);
}


//***Mini小屋投票推荐功能*************//
function VotingSpace(intSpaceID)
{
	var theSendURL = "/MySpace/AjaxProc/Ajax_VotingSpace.aspx";

	var ajax=new AJAXRequest();
	ajax.charset="GB2312";
	ajax.onexception=function Exception(obj){alert("出现异常，操作失败！");}
	ajax.post(
		// 将数据发送到getdata.asp
		theSendURL,
		// 发送的数据为“要发送的数据”
		"SpaceID="+intSpaceID,
		// 回调函数，用消息框显示服务端的返回内容 
		function(obj) {alert(obj.responseText);}	
	);
}


//***添加为Mini小屋好友功能*************//
function AddMyFriend(intFriendID)
{
	var theSendURL = "/MySpace/AjaxProc/Ajax_AddFriend.aspx";

	var ajax=new AJAXRequest();
	ajax.charset="GB2312";
	ajax.onexception=function Exception(obj){alert("出现异常，操作失败！");}
	ajax.post(
		// 将数据发送到getdata.asp
		theSendURL,
		// 发送的数据为“要发送的数据”
		"FriendID="+intFriendID,
		// 回调函数，用消息框显示服务端的返回内容 
		function(obj) {alert(obj.responseText);}	
	);
}



//***设置爱问－采纳标准答案*************//
function SetIAskStandardAnswer(intQuestionID,intAnswerID,intAnswerUserID)
{
	var theSendURL = "/MySpace/AjaxProc/Ajax_IAsk_SetStandardAnswer.aspx";

	var ajax=new AJAXRequest();
	ajax.charset="GB2312";
	ajax.onexception=function Exception(obj){alert("出现异常，操作失败！");}
	ajax.post(
		// 将数据发送到getdata.asp
		theSendURL,
		// 发送的数据为“要发送的数据”
		"QuestionID="+intQuestionID+"&AnswerID="+intAnswerID+"&AnswerUserID="+intAnswerUserID,
		// 回调函数，用消息框显示服务端的返回内容 
		function(obj) {alert(obj.responseText);location.reload();}	
	);
}



//***设置爱问－无答案（直接关闭问题）*************//
function SetIAskNoAnswer(intQuestionID)
{
	var theSendURL = "/MySpace/AjaxProc/Ajax_IAsk_SetNoAnswer.aspx";

	var ajax=new AJAXRequest();
	ajax.charset="GB2312";
	ajax.onexception=function Exception(obj){alert("出现异常，操作失败！");}
	ajax.post(
		// 将数据发送到getdata.asp
		theSendURL,
		// 发送的数据为“要发送的数据”
		"QuestionID="+intQuestionID,
		// 回调函数，用消息框显示服务端的返回内容 
		function(obj) {alert(obj.responseText);location.reload();}	
	);
}


//============================================================================================================================
//***AJAX主人回复功能（留言板、日记、作文、绘画书法、摄影）：显示回复框*************//
function SetReply(intID,intwidth,intChannelID)
{
	if(strReplyID=="")
	{
		var bolTag = false;
		var strHTMLValue = "";
		var strReplyText = "";
		var list = document.getElementById("divReply_"+intID);
		var ReplyList = list.getElementsByTagName('td')[2];

		if(ReplyList!=null){
			strReplyText = ReplyList.innerText;
			bolTag = true;
		}

		strHTMLValue += "							<table border='0' width='100%' cellspacing='1' height='49'>";
		strHTMLValue += "								<tr>";
		strHTMLValue += "									<td><img border='0' src='Images/Split_LWLine.jpg'></td>";
		strHTMLValue += "								</tr>";
		strHTMLValue += "								<tr>";
		strHTMLValue += "									<td  style='color:#FE3981;padding-left:5px;'><b>主人的回复</b></td>";
		strHTMLValue += "								</tr>";
		strHTMLValue += "								<tr>";
		strHTMLValue += "									<td style='color:#FE3981;padding-left:5px;width: "+intwidth+"px; word-wrap:break-word;'><textarea id='txtReply' name='txtReply' style='height:60px;width:100%;border:1px solid #E3DBBE;padding:5px;background-color:#F6F2DC;'>"+strReplyText+"</textarea></td>";
		strHTMLValue += "								</tr>";
		strHTMLValue += "								<tr>";
		strHTMLValue += "									<td align='right' style='color:#FE3981;padding-right:10px;'><img border='0' src='../../Common/Images/btnOK.gif' width='55' height='20' style='cursor:hand;' onclick='SendReply(this,"+intID+","+bolTag+","+intChannelID+");'>&nbsp; &nbsp;<img border='0' src='../../Common/Images/btnCancel.gif' width='55' height='20' style='cursor:hand;' onclick='CancelReply("+bolTag+");'></td>";
		strHTMLValue += "								</tr>";
		strHTMLValue += "							</table>";

		list.innerHTML = strHTMLValue;
		document.getElementById("txtReply").focus();

		strReplyID = "divReply_"+intID;
	}
	else{
	}
}


//***AJAX主人回复功能（留言板、日记、作文、绘画书法、摄影）：发送回复信息*************//
function SendReply(thisObj,intID,bolTag,intChannelID)
{
	if(strReplyID!="")
	{
		var theSendURL = "";
		var strHTMLValue = "";
		var thisValue = document.getElementById("txtReply").value;
		thisObj.disabled=true;

		switch(intChannelID)
		{
			case 1:
				theSendURL = "../../AjaxProc/Ajax_LeaveWord_MasterReply.aspx";
				break;
			case 2:
				theSendURL = "../../AjaxProc/Ajax_DiaryPost_MasterReply.aspx";
				break;
			case 3:
				theSendURL = "../../AjaxProc/Ajax_CompositionPost_MasterReply.aspx";
				break;
			case 4:
				theSendURL = "../../AjaxProc/Ajax_PaintingAndCalligraphyPost_MasterReply.aspx";
				break;
			case 5:
				theSendURL = "../../AjaxProc/Ajax_PhotographPost_MasterReply.aspx";
				break;
		}
	
		var ajax=new AJAXRequest();
		ajax.charset="GB2312";
		ajax.onexception=function Exception(obj){RemoveWaiting();}
		ajax.oncomplete=function Complete(obj){RemoveWaiting();}
		ajax.onrequestend=function Requestend(obj){RemoveWaiting();}
		ajax.onrequeststart=function Requeststart(obj){Waiting();}
		ajax.post(
			// 将数据发送到getdata.asp
			theSendURL,
			// 发送的数据为“要发送的数据”
			"txtReply="+escape(thisValue)+"&ID="+intID,
			// 回调函数，用消息框显示服务端的返回内容 //alert(obj.responseText);
			function(obj) { }	
		);


		strHTMLValue += "							<table border='0' width='100%' cellspacing='1' height='49'>";
		strHTMLValue += "								<tr>";
		strHTMLValue += "									<td><img border='0' src='Images/Split_LWLine.jpg'></td>";
		strHTMLValue += "								</tr>";
		strHTMLValue += "								<tr>";
		strHTMLValue += "									<td style='color:#FE3981;padding-left:5px;'><b>主人的回复</b></td>";
		strHTMLValue += "								</tr>";
		strHTMLValue += "								<tr>";
		strHTMLValue += "									<td style='color:#FE3981;padding-left:5px;width: 340px; word-wrap:break-word;'>"+thisValue+"</td>";
		strHTMLValue += "								</tr>";
		strHTMLValue += "							</table>";

		document.getElementById(strReplyID).innerHTML = strHTMLValue;

		strReplyID = "";
	}
}


//***AJAX主人回复功能（留言板、日记、作文、绘画书法、摄影）：取消回复框*************//
function CancelReply(bolTag)
{
	if(strReplyID!="")
	{
		var strHTMLValue = "";
		var thisValue = document.getElementById("txtReply").value;

		if(bolTag)
		{
			strHTMLValue += "							<table border='0' width='100%' cellspacing='1' height='49'>";
			strHTMLValue += "								<tr>";
			strHTMLValue += "									<td><img border='0' src='Image/Split_LWLine.jpg' height='4'></td>";
			strHTMLValue += "								</tr>";
			strHTMLValue += "								<tr>";
			strHTMLValue += "									<td style='color:#FE3981;padding-left:5px;'><b>主人的回复</b></td>";
			strHTMLValue += "								</tr>";
			strHTMLValue += "								<tr>";
			strHTMLValue += "									<td style='color:#FE3981;padding-left:5px;width: 340px; word-wrap:break-word;'>"+thisValue+"</td>";
			strHTMLValue += "								</tr>";
			strHTMLValue += "							</table>";
		}

		document.getElementById(strReplyID).innerHTML = strHTMLValue;

		strReplyID = "";
	}
}

//============================================================================================================================
//***爱问功能函数（补充问题描述、提高问题悬赏分）：显示操作框*************//
function SetIAskLayer(intQuestionID,intTypeID)
{
	var strHTMLValue = "";

	if(intTypeID==1)
	{
		var strSupplementIntro = document.getElementById("divSupplementIntro").innerText.replace(/'/g,"");

		strHTMLValue += "								<table height='49' cellSpacing='1' width='480' border='0' style='border: 1px dotted #CABB86;'>";
		strHTMLValue += "									<tr>";
		strHTMLValue += "										<td style='padding-left: 5px; width: 95px; color: #fe3981;'><b>补充问题描述：</b></td>";
		strHTMLValue += "										<td style='padding-left: 5px; width: 368px; color: #fe3981;'>";
		strHTMLValue += "											<textarea id='txtSupplementIntro' name='txtSupplementIntro' style='border-right: #e3dbbe 1px solid; padding-right: 5px; BORDER-TOP: #e3dbbe 1px solid; padding-left: 5px; padding-bottom: 5px; border-left: #e3dbbe 1px solid; width: 100%; padding-top: 5px; border-bottom: #e3dbbe 1px solid; height: 60px; background-color: #f6f2dc' rows='1' cols='20'>"+strSupplementIntro+"</textarea>";
		strHTMLValue += "										</td>";
		strHTMLValue += "									</tr>";
		strHTMLValue += "									<tr>";
		strHTMLValue += "										<td style='padding-right: 10px; color: #fe3981' align='right' colspan='2'>";
		strHTMLValue += "											<img style='cursor: hand' onclick='SendIAskLayer(this,"+intQuestionID+",1);' height='20' src='../../Common/Images/btnOK.gif' width='55' border='0'>&nbsp;&nbsp;&nbsp;";
		strHTMLValue += "											<img style='cursor: hand' onclick='CancelIAskLayer(\"divSupplementIntroArea\");' height='20' src='../../Common/Images/btnCancel.gif' width='55' border='0'>";
		strHTMLValue += "										</td>";
		strHTMLValue += "									</tr>";
		strHTMLValue += "								</table>";

		document.getElementById("divPointArea").innerHTML = "";		//先将问题描述区置空
		document.getElementById("divSupplementIntroArea").innerHTML = strHTMLValue;
		document.getElementById("txtSupplementIntro").focus();
	}
	else
	{
		strHTMLValue += "								<table height='49' cellSpacing='1' width='480' border='0' style='border: 1px dotted #CABB86;'>";
		strHTMLValue += "									<tr>";
		strHTMLValue += "										<td style='padding-left: 5px; color: #fe3981' width='95'><b>提高悬赏分：</b></td>";
		strHTMLValue += "										<td style='padding-left: 5px; color: #fe3981' width='223'>";
		strHTMLValue += "											<select id='selEnhancesPoint' name='selEnhancesPoint' size='1'>";
		strHTMLValue += "												<option value='3'>3分</option>";
		strHTMLValue += "												<option value='5'>5分</option>";
		strHTMLValue += "												<option value='10'>10分</option>";
		strHTMLValue += "												<option value='15'>15分</option>";
		strHTMLValue += "												<option value='20'>20分</option>";
		strHTMLValue += "												<option value='30'>30分</option>";
		strHTMLValue += "												<option value='50'>50分</option>";
		strHTMLValue += "											</select>";
		strHTMLValue += "										</td>";
		strHTMLValue += "										<td style='padding-left: 5px; color: #fe3981' width='136'>";
		strHTMLValue += "											<img style='cursor: hand' onclick='SendIAskLayer(this,"+intQuestionID+",2);' height='20' src='../../Common/Images/btnOK.gif' width='55' border='0'>&nbsp;&nbsp;&nbsp;";
		strHTMLValue += "											<img style='cursor: hand' onclick='CancelIAskLayer(\"divPointArea\");' height='20' src='../../Common/Images/btnCancel.gif' width='55' border='0'>";
		strHTMLValue += "										</td>";
		strHTMLValue += "									</tr>";
		strHTMLValue += "								</table>";

		document.getElementById("divSupplementIntroArea").innerHTML = "";	//先将问题悬赏区置空
		document.getElementById("divPointArea").innerHTML = strHTMLValue;
	}
}


//***爱问功能函数（补充问题描述、提高问题悬赏分）：发送处理信息*************//
function SendIAskLayer(thisObj,intQuestionID,intTypeID)
{
	var theSendURL = "";
	var thisValue = "";
	thisObj.disabled=true;

	switch(intTypeID)
	{
		case 1:
			thisValue = document.getElementById("txtSupplementIntro").value;
			theSendURL = "../../AjaxProc/Ajax_IAsk_QuestionSupplement.aspx";
			break;
		case 2:
			thisValue = document.getElementById("selEnhancesPoint").options[document.getElementById("selEnhancesPoint").selectedIndex].value;
			theSendURL = "../../AjaxProc/Ajax_IAsk_EnhancesPoint.aspx";
			break;
	}

	var ajax=new AJAXRequest();
	ajax.charset="GB2312";
	ajax.onexception=function Exception(obj){RemoveWaiting();alert("出现异常，操作失败！");}
	ajax.oncomplete=function Complete(obj){RemoveWaiting();}
	ajax.onrequestend=function Requestend(obj){RemoveWaiting();}
	ajax.onrequeststart=function Requeststart(obj){Waiting();}
	ajax.post(
		// 将数据发送到getdata.asp
		theSendURL,
		// 发送的数据为“要发送的数据”
		"txtValue="+escape(thisValue)+"&QuestionID="+intQuestionID,
		// 回调函数，用消息框显示服务端的返回内容
		function(obj) {alert(obj.responseText);location.reload();}	
	);
}


//***爱问功能函数（补充问题描述、提高问题悬赏分）：取消操作框*************//
function CancelIAskLayer(strObjID)
{
	document.getElementById(strObjID).innerHTML = "";
}
//============================================================================================================================


//***设置小屋内容框的标贴条*************//
function SetPasterClass(ClassName)
{
	var divObj = parent.document.getElementById("divPaster");
	switch(ClassName)
	{
		case "Production":
			divObj.style.cssText = "background:url(Template/Style1/Images/Paster.jpg) no-repeat 0px -76px";
			break;
		case "Visitor":
			divObj.style.cssText = "background:url(Template/Style1/Images/Paster.jpg) no-repeat 0px -152px";
			break;
		case "Paper":
			divObj.style.cssText = "background:url(Template/Style1/Images/Paster.jpg) no-repeat 0px -228px";
			break;
		case "Album":
			divObj.style.cssText = "background:url(Template/Style1/Images/Paster.jpg) no-repeat 0px -304px";
			break;
		case "IAsk":
			divObj.style.cssText = "background:url(Template/Style1/Images/Paster.jpg) no-repeat 0px -380px";
			break;
		case "Favorite":
			divObj.style.cssText = "background:url(Template/Style1/Images/Paster.jpg) no-repeat 0px -456px";
			break;
		case "Diary":
			divObj.style.cssText = "background:url(Template/Style1/Images/Paster.jpg) no-repeat 0px -532px";
			break;
		case "Friend":
			divObj.style.cssText = "background:url(Template/Style1/Images/Paster.jpg) no-repeat 0px -608px";
			break;
		case "Archives":
			divObj.style.cssText = "background:url(Template/Style1/Images/Paster.jpg) no-repeat 0px -684px";
			break;
		case "ValuableBox":
			divObj.style.cssText = "background:url(Template/Style1/Images/Paster.jpg) no-repeat 0px -760px";
			break;
		case "LeaveWord":
			divObj.style.cssText = "background:url(Template/Style1/Images/Paster.jpg) no-repeat 0px -836px";
			break;
		case "Login":
			divObj.style.cssText = "background:url(Template/Style1/Images/Paster.jpg) no-repeat 0px -912px";
			break;
		case "Help":
			divObj.style.cssText = "background:url(Template/Style1/Images/Paster.jpg) no-repeat 0px -988px";
			break;
	}
}

//***显示层*************//
function ShowLayer(objName){
	document.getElementById(objName).style.display='block';
}

//***隐藏层*************//
function HideLayer(objName){
	document.getElementById(objName).style.display='none';
}


function WindowOpen(Url, popName, popwidth, popheight){
	var height = screen.height;
	var width = screen.width;
	var left = 0;
	var top = 0;
	popheight = popheight + 27;
	window.open(Url, popName, "width="+popwidth+",height="+popheight+",scrollbars=no,toolbar=no,left="+left+",top="+top+"")
}

function WindowOpenNomargin(Url, popName, popwidth, popheight){
	var height = screen.height;
	var width = screen.width;
	popheight = popheight + 27;
	window.open(Url, popName, "width="+popwidth+",height="+popheight+",scrollbars=yes,toolbar=no,left=0,top=0")
}



 //displayTablePage页
function changeTb(tbName, tbCount, tbNum) {
	var divPage,divPageList;
	for(i=1;i<=tbCount;i++)
	{
		divPage		 = document.getElementById(tbName+i);
		divPageList	 = document.getElementById(tbName+"List"+i);

		if(i != tbNum) {
			divPage.background = 'images/left_page.gif';
			divPageList.style.display = 'block';
		}
		else {
			divPage.background = 'images/left_page_on.gif';
			divPageList.style.display = 'none';
		}
	}
}




//=====================================================================================================
// ActiveX Start //显示Flash（无激活框）

function flashMovie(fid,src,wid,hei,fvs,wmd) {
  this.fPrint = '';
  this.Id = document.getElementById(fid);
  this.Src = src;
  if(wid == 0){
    this.width = '100%';
  }
  else{
    this.width = wid;
  }
  if(hei == 0){
    this.height = '100%';
  }
  else{
    this.height = hei;
  }
  this.FlashVars = (fvs != undefined)? fvs :'';
  this.Wmod = (wmd != undefined)? wmd :'';
  if(isObject(Id)) {
    fPrint = '<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0"';
    fPrint += ' width="'+width+'"';
    fPrint += ' height="'+height+'">';
    fPrint += '<param name="allowScriptAccess" value="always">';
    fPrint += '<param name="movie" value="'+Src+'">';
    fPrint += '<param name="menu" value="false" />';
    fPrint += '<param name="quality" value="high">';
    fPrint += (FlashVars != null) ? '<param name="FlashVars" value="'+FlashVars+'">' : '';
    fPrint += '<param name="wmode" value="Transparent">';
    fPrint += '<embed';
    fPrint += ' src="'+Src+'"';
    fPrint += (FlashVars != null) ? ' FlashVars="'+FlashVars+'"' : '';
    fPrint += ' wmode="Transparent"' ;
    fPrint += ' quality="high"';
    fPrint += ' allowScriptAccess="always"';
    fPrint += ' pluginspage="http://www.macromedia.com/go/getflashplayer"';
    fPrint += ' type="application/x-shockwave-flash"';
    fPrint += ' width="'+width+'"';
    fPrint += ' height="'+height+'"';
    fPrint += '></embed>';
    fPrint += '</object>';
    Id.innerHTML = fPrint;
  }
}

function isObject(a) {
    return (a && typeof a == 'object');
}

// ActiveX End //
//=====================================================================================================

function Vouch(strVoteKey)
{
	ifmVouch			= document.createElement("iframe");    
	divVouch.appendChild(ifmVouch);
	ifmVouch.width	= 0;   
	ifmVouch.height	= 0;   
	ifmVouch.src		= "/common/inc/InitVote.ASPX?VoteKey="+strVoteKey;   
}


function Vouch(strVoteKey,intBackType)
{
	ifmVouch			= document.createElement("iframe");    
	divVouch.appendChild(ifmVouch);
	ifmVouch.width	= 0;   
	ifmVouch.height	= 0;   
	ifmVouch.src		= "/common/inc/InitVote.ASPX?VoteKey="+strVoteKey+"&BackType="+intBackType;   
}



