// JavaScript Document
//发送彩信，依赖于ui.dialog



$(function(){
	   	$("<div id='sendBox' title='发送彩信'></div>").appendTo($("body"));
		var html = "<div id='sendTitle'></div><div id='sendContent'><iframe src='' id='sendIframe' width='100%' height='260' frameborder='0' scrolling='no'></iframe></div>";	
		$("#sendBox").html(html).dialog({ width: 440,height:310,modal: true,autoOpen:false ,close:function(){ $("#playDiv").show();}});
});


function sendMMS(vid,pid,rid,tid,gid){
	if (!vid) vid = 0;
	if (!pid) pid = 0;
	if (!rid) rid = 0;
	if (!tid) tid = 0;
	if (!gid) gid = 0;
	//$("#playDiv").hide();
	var url = "/send/sendMMS.do?vid=" + vid + "&pid=" + pid + "&rid="+rid+"&tid="+tid+"&gid="+gid;	
	$("#sendIframe").attr("src",url);
	//$("#sendContent").load(url);
	$("#sendBox").dialog("open");
}
function closeMMS(){
	$("#sendBox").dialog("close");
}
