
var popwin;
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="wmode" value="transparent" /><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 __doOpenArticle(channelid, articleid)
{
	//var aim = "pop.aspx?cid="+channelid+"&id="+articleid;
	//var dleft = 100,dtop = 0;//window.screenTop + 100,window.screenLeft + ;
	//pop = open(aim,"OpenDetail","height=600,width=650,status=no,toolbar=no,menubar=no,location=no,resizable=no,directories=no,top="+dtop+",left="+dleft+"","");
	pop=window.open("jump.aspx?cid="+channelid+"&id="+articleid+"","_blank");
	pop.focus();
}

function __doOpenArticle2(channelid, articleid)
{
	var aim = "pop2.aspx?cid="+channelid+"&id="+articleid;
	pop = window.open(aim,"_blank");
	pop.focus();
}
function __doOpenArticlenews(channelid, articleid)
{
	var aim = "sub_10.aspx?cid="+channelid+"&id="+articleid;
	pop = window.open(aim,"_blank");
	pop.focus();
}
//´íÎóÐÅÏ¢´¦Àí
function errorHandler(message, url, line)
{
   //Alert(message);
   return true;
}

function MM_openBrWindow(theURL,winName,features) {
	var w=618;
	var h=536;
	LeftPosition = (screen.width) ? (screen.width-w)/2 : 0; 
	TopPosition = (screen.height) ? (screen.height-h)/2 : 0; 
  if (features=="")
  {
	  features = 'menubar=no,scrollbars=no,resizable=yes,top='+TopPosition+',left='+LeftPosition+',width='+w+',height='+h;
  } 
  window.open(theURL,winName,features);
}

function MM_openBrWindow2(theURL,winName,features) {
	var w=618;
	var h=536;
	LeftPosition = (screen.width) ? (screen.width-w)/2 : 0; 
	TopPosition = (screen.height) ? (screen.height-h)/2 : 0; 
  if (features=="")
  {
	  features = 'menubar=no,scrollbars=no,status=yes,resizable=yes,top='+TopPosition+',left='+LeftPosition+',width='+w+',height='+h;
  } 
  window.open(theURL,winName,features);
}


window.onerror = errorHandler;