﻿document.write ('<script language="javascript" type="text/javascript" src="/PublicBin/js/jquery.boxy.js"></script>');

var allDialogs = [];
var seq = 0;
var closetxt=jsLanguageTag('close');
var bottomclose = '<div class="boxy_bottom"><a onclick="Boxy.get(this).hide(); return false" class="close">'+closetxt+'</a></div>';


function iframe(url,w,h)
{
	return '<iframe id="Dialog-iframe" frameborder="0" src="'+url+'" style="width: '+w+'px; height: '+h+'px;"></iframe>';
}


function CreateBoxy(tit,cnt,options)
{
	options = $.extend({title: tit}, options || {});
	var dialog = new Boxy(cnt, options);
	allDialogs.push(dialog);
	return false;
}



function ShowIFrame(title,url,w,h,closeplace)
{
	var options;
	var cnt = iframe(url,w,h);
	if(closeplace=='top')
	{
		options = {fixed: false,modal: true}
	}
	else if(closeplace=='bottom')
	{
		options = {fixed: false,modal: true,closeable: false}
		cnt = cnt + bottomclose;
	}
	else
	{
		options = {fixed: false,modal: true,closeable: false}
	}
	return CreateBoxy(title,cnt,options);
}

//打开发送邮件窗口
function ShowSendMail()
{
	return ShowIFrame('','/forms/sendmail.aspx',610,510,'bottom');
}

//onclick='return create({fixed: false,modal: true,closeable: false});'
