function imgview(filed) {
	if (!document.getElementById("imgwindow"))
	{
		var imgpanel = new Ext.Panel({
			id          : 'tabspane2',
			region    : 'center',
			split       : true,
			width       : 1000,
			html        : '<iframe id="addIFrame2" src="./manage_admin_img.html?filed='+filed+'" width="100%" height="350" scrolling="no" frameborder="0"></iframe>',
			margins     : '3 0 3 3',
			cmargins    : '3 3 3 3'
		});

		var win2 = new Ext.Window({
			title    : 'Layout Window',
			id		 : 'imgwindow',
			closable : true,
			width    : 900,
			height   : 400,
			plain    : true,
			layout   : 'border',
			items    : [imgpanel]
		});

		win2.show();
	}
}
function imgview2(filed) {
	if (!document.getElementById("imgwindow"))
	{
		var imgpanel = new Ext.Panel({
			id          : 'tabspane2',
			region    : 'center',
			split       : true,
			width       : 1000,
			html        : '<iframe id="addIFrame2" src="./manage_admin_img2.html?filed='+filed+'" width="100%" height="350" scrolling="no" frameborder="0"></iframe>',
			margins     : '3 0 3 3',
			cmargins    : '3 3 3 3'
		});

		var win2 = new Ext.Window({
			title    : 'Layout Window',
			id		 : 'imgwindow',
			closable : true,
			width    : 900,
			height   : 400,
			plain    : true,
			layout   : 'border',
			items    : [imgpanel]
		});

		win2.show();
	}
}
function close2() {
	Ext.getCmp("tabspane2").destroy();
	Ext.getCmp("imgwindow").destroy();
}

function calview(filed,style) {
	if (!document.getElementById("calwindow"))
	{
		var calpanel = new Ext.Panel({
			id          : 'tabspane3',
			region    : 'center',
			split       : true,
			width       : 1000,
			html        : '<iframe id="addIFrame3" src="./sd_calendar.html?filed='+filed+'&style='+style+'" width="100%" height="400" scrolling="no" frameborder="0"></iframe>',
			margins     : '3 0 3 3',
			cmargins    : '3 3 3 3'
		});

		var win3 = new Ext.Window({
			title    : 'Layout Window',
			id		 : 'calwindow',
			closable : true,
			width    : 400,
			height   : 430,
			plain    : true,
			layout   : 'border',
			items    : [calpanel]
		});
		win3.show();
	}
}


function calview2(filed,style) {
	if (!document.getElementById("calwindow"))
	{
		var calpanel = new Ext.Panel({
			id          : 'tabspane3',
			region    : 'center',
			split       : true,
			width       : 1000,
			html        : '<iframe id="addIFrame3" src="../manage/admin/sd_calendar2.html?filed='+filed+'&style='+style+'" width="100%" height="400" scrolling="no" frameborder="0"></iframe>',
			margins     : '3 0 3 3',
			cmargins    : '3 3 3 3'
		});

		var win3 = new Ext.Window({
			title    : 'Layout Window',
			id		 : 'calwindow',
			closable : true,
			width    : 400,
			height   : 430,
			plain    : true,
			layout   : 'border',
			items    : [calpanel]
		});
		win3.show();
	}
}



function calview3(filed,style) {
	if (!document.getElementById("calwindow"))
	{
		var calpanel = new Ext.Panel({
			id          : 'tabspane3',
			region    : 'center',
			split       : true,
			width       : 1000,
			html        : '<iframe id="addIFrame3" src="../modules/manage/admin/sd_calendar3.html?filed='+filed+'&style='+style+'" width="100%" height="400" scrolling="no" frameborder="0"></iframe>',
			margins     : '3 0 3 3',
			cmargins    : '3 3 3 3'
		});

		var win3 = new Ext.Window({
			title    : 'Layout Window',
			id		 : 'calwindow',
			closable : true,
			width    : 400,
			height   : 430,
			plain    : true,
			layout   : 'border',
			items    : [calpanel]
		});
		win3.show();
	}
}

function close3() {
	Ext.getCmp("calwindow").destroy();
}
