//CMT弹出框相关函数开始
//弹框主函数
function cmt_showMsgBox(title, content, jump_url)
{	
	cmt_closeInfoWnd('cmt_alertInfoBox');
	
	if (!title) title = '信息';
	if (!content) content = '成功';
	var width = 450;
	
	var cmt_div = document.createElement('div');
	cmt_div.id = 'cmt_alertInfoBox';
	cmt_div.style.zIndex = '999';
	cmt_div.style.left = (document.documentElement.scrollWidth-width)/2+'px';
	var tmp_scrollTop = document.body.scrollTop == 0 ? document.documentElement.scrollTop : document.body.scrollTop;
	cmt_div.style.top = tmp_scrollTop+150+'px';
	cmt_div.className = 'cmt_infoBox';
	cmt_div.style.position = 'absolute';
	
	var imgUrl;
	var imgHtml = '';
	var autoRunCmd = '';
	
	imgUrl='http://my.poco.cn/images/ico_infoSucc.gif';
	
	if(imgUrl) imgHtml = '<img src="'+imgUrl+'" border=0 align=absmiddle>';
/*
	var html = '<div id="circle" style="width:'+width+'px;">\
            <table width="100%" border="0" cellspacing="0" cellpadding="0" class="mypoco_tbl1"  style="border:1px #CCCCCC solid; font-weight:bold; color:BF6800; bgcolor=#FFFFFF ">\
            <tr><th nowrap="nowrap" align="left" height="18" bgcolor="#EBEBEB"><span>&nbsp;'+title+'</span></th></tr>\
            <tr><td style="padding:20px;" align="center" valigm="bottom" bgcolor="#FFFFFF"><strong style="color:#000; font-size:14px;">'+content+'<BR>广告：<a style="color:#000; font-size:14px;" href="http://server1.adpolestar.net/ADPolestar/lgs/way/;er=&mv=710&pu=cav&ad=0689010?http://www.pepsi.poco.cn" target="_blank">百事 全民上罐</a></strong>';
	
	if (jump_url != '')
	{
		html+= '<br><input type="image" src="http://img1.poco.cn/a/20080125/20080125_181342.jpg" width=61 height=25 border=0 onclick="cmt_closeInfoWnd(\'cmt_alertInfoBox\'); top.location=\'' + jump_url + '\';" style="margin-top:9px;"></td></tr>';
	}
	else
	{
		html+= '<br><input type="image" src="http://img1.poco.cn/a/20080125/20080125_181342.jpg" width=61 height=25 border=0 onclick="cmt_closeInfoWnd(\'cmt_alertInfoBox\');" style="margin-top:9px;"></td></tr>';
    }
	html+= '</table></div>';
*/


	var html = '<div id="circle" style=" position:relative; width:'+width+'px;">\
            <table width="100%" border="0" cellspacing="0" cellpadding="0" class="mypoco_tbl1"  style="border:1px #CCCCCC solid; font-weight:bold; color:BF6800; bgcolor=#FFFFFF ">\
            <tr><th nowrap="nowrap" align="left" height="18" bgcolor="#EBEBEB"><span>&nbsp;'+title+'</span></th></tr>\
            <tr><td style="padding:20px;" align="center" valigm="bottom" bgcolor="#FFFFFF"><strong style="color:#000; font-size:14px;">'+content;

/*	
	html+='<BR>广告：<a style="color:#000; font-size:14px;" href="http://server1.adpolestar.net/ADPolestar/lgs/way/;er=&mv=710&pu=cav&ad=0679015?http://a.energysource-cn.com/adclick.php?&bannerid=4324&zoneid=&source=&dest=http%3A%2F%2Finnew.touranchina.com%2F" target="_blank">途安 品智新地标</a></strong>';
*/
	
	if (jump_url != '')
	{
		html+= '<br><input type="button" value="确定" src1="http://img1.poco.cn/a/20080125/20080125_181342.jpg" width=61 height=25 border=0 onclick="cmt_closeInfoWnd(\'cmt_alertInfoBox\'); top.location=\'' + jump_url + '\';" style="margin-top:9px;"></td></tr>';
	}
	else
	{
		html+= '<br><input type="button" value="确定" src1="http://img1.poco.cn/a/20080125/20080125_181342.jpg" width=61 height=25 border=0 onclick="cmt_closeInfoWnd(\'cmt_alertInfoBox\');" style="margin-top:9px;"></td></tr>';
    }
	html+= '</table><iframe scrolling="no" frameborder="0" width="100%" style="position:absolute; left:0px; top:5px; height:125px; width:450px; z-index:-1"></iframe></div>';



	cmt_div.innerHTML = html;
	document.body.appendChild(cmt_div);
	try
	{
		document.getElementById('common_affirm_btn_0').focus();
	}
	catch (err)
	{
	}
}

//关闭弹框
function cmt_closeInfoWnd(name) 
{
	try 
	{
		var cmt_div = document.getElementById(name);
		if (cmt_div) 
		{
			if(document.getElementById('cmt_top_content_div'))
			{
				document.getElementById('cmt_top_content_div').removeChild(cmt_div);
			}
			else
			{
				document.body.removeChild(cmt_div);
			}
			delete cmt_div;
			cmt_div = null;
		}	
	} catch(E) {}
}
//CMT弹出框相关函数结束