//显示flash
function CreateControl(DivID, ObjectID, URL, WIDTH, HEIGHT, BGCOLOR)
{
  var d = document.getElementById(DivID);
  d.innerHTML = '<object id="'+ObjectID+'" classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="player/8/swflash.cab#version=8,0,22,0" '+
				'width="'+WIDTH+'" height="'+HEIGHT+'" VIEWASTEXT>'+
				'<param name="movie" value="'+URL+'" /><param name="quality" value="high" /><param name="allowScriptAccess" value="sameDomain" />'+
				'<param name="loop" value="false" /><param name="menu" value="false">'+
				'<embed src="'+URL+'" quality="high" loop="false" width="'+WIDTH+'" height="'+HEIGHT+'" name="'+ObjectID+'" align="" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" /></object>';			
}

//创建日历//
function CreateDate(DivID, ObjectID, BtnAlign, Depth)
{
	var d = document.getElementById(DivID);
	d.innerHTML = '<object id="'+ObjectID+'" name="'+ObjectID+'" classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0" '+
		'width="206" height="215" style="width:18px;height:18px;position:absolute;Z-INDEX:'+Depth+';" onblur="closeChoseDate(this)" VIEWASTEXT>'+
		'<param name="movie" value="images/ChoseDate.swf?btnalign='+BtnAlign+'" /><param name="quality" value="high" /><param name="wmode" value="transparent" />'+
		'<param name="allowScriptAccess" value="sameDomain" /><param name="loop" value="false" /><param name="menu" value="false">'+
		'<embed id="'+ObjectID+'" src="images/ChoseDate.swf?btnalign='+BtnAlign+'" quality="high" loop="false" width="206" height="215" name="'+ObjectID+'" align="" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" /></object>';			
	d.children(0).mask = new Array();
	return d.children(0);	
}
//关闭日历//
function closeChoseDate(eventTarget) {
	eventTarget.GotoFrame(2);
	eventTarget.style.left = 0;
	eventTarget.style.width = 18;
	eventTarget.style.height = 18;
	if(eventTarget.mask != null && eventTarget.mask.length>0){
		for(i=0;i<eventTarget.mask.length;i++){
			eventTarget.mask[i].style.display = "";
		}
	}
}
//显示日历//
function showChoseDate(eventTarget, btnAlign) {
	eventTarget.style.width = 206;
	eventTarget.style.height = 215;
	if(btnAlign.toLowerCase() == "right"){
		eventTarget.style.left  = -188;
	}
	if(eventTarget.mask != null && eventTarget.mask.length>0){
		for(i=0;i<eventTarget.mask.length;i++){
			eventTarget.mask[i].style.display = "none";
		}
	}	
}
function showallcount(c){//显示搜统计数；
	document.all("realcount").innerHTML = "&nbsp;"+c+"&nbsp;";	
}
function __doOpenVote(aim)
{
	var dleft = 200,dtop = 0;
	pop = open(aim,"OpenDetail","width=600,height=550,status=no,toolbar=no,menubar=no,location=no,resizable=no,directories=no,top="+dtop+",left="+dleft+"","");
	pop.focus();
}