function SendNews(strNewsID, intWidth, intHeight)
{
	if((typeof(intWidth) == "undefined")||(intWidth == null))
		intWidth = 600;

	if((typeof(intHeight) == "undefined")||(intHeight == null))
		intHeight = 400;

	var intLeft = (screen.width) ? (screen.width - intWidth) / 2 : 0;
	var intTop = (screen.height) ? (screen.height - intHeight) / 2 : 0;

	var OpenWindow;
	strAttrs = 'height=' + intHeight + ',width=' + intWidth + ',top=' + intTop + ',left=' + intLeft + ', resizable=yes, toolbar=yes , scrollbars=yes , status=no';

	OpenWindow = window.open("http://mgr.manager.co.th/asp-bin/SendNews.aspx?NewsID=" + strNewsID , "Send" , strAttrs);
	OpenWindow.focus();
}

function SendNewsIHT(strNewsID, intWidth, intHeight)
{
	if((typeof(intWidth) == "undefined")||(intWidth == null))
		intWidth = 600;

	if((typeof(intHeight) == "undefined")||(intHeight == null))
		intHeight = 400;

	var intLeft = (screen.width) ? (screen.width - intWidth) / 2 : 0;
	var intTop = (screen.height) ? (screen.height - intHeight) / 2 : 0;

	var OpenWindow;
	strAttrs = 'height=' + intHeight + ',width=' + intWidth + ',top=' + intTop + ',left=' + intLeft + ', resizable=yes, toolbar=yes , scrollbars=yes , status=no';

	OpenWindow = window.open("http://mgr.manager.co.th/asp-bin/SendNewsEn.aspx?NewsID=" + strNewsID , "Send" , strAttrs);
	OpenWindow.focus();
}

function PrintNews(strNewsID, intWidth, intHeight)
{
	if((typeof(intWidth) == "undefined")||(intWidth == null))
		intWidth = 600;

	if((typeof(intHeight) == "undefined")||(intHeight == null))
		intHeight = 400;

	var intLeft = (screen.width) ? (screen.width - intWidth) / 2 : 0;
	var intTop = (screen.height) ? (screen.height - intHeight) / 2 : 0;

	var OpenWindow;
	strAttrs = 'height=' + intHeight + ',width=' + intWidth + ',top=' + intTop + ',left=' + intLeft + ', resizable=yes, toolbar=yes , scrollbars=yes , status=no';

	OpenWindow = window.open("/asp-bin/PrintNews.aspx?NewsID=" + strNewsID , "Print" , strAttrs);
	OpenWindow.focus();
}

function PrintNewsIHT(strNewsID, intWidth, intHeight)
{
	if((typeof(intWidth) == "undefined")||(intWidth == null))
		intWidth = 600;

	if((typeof(intHeight) == "undefined")||(intHeight == null))
		intHeight = 400;

	var intLeft = (screen.width) ? (screen.width - intWidth) / 2 : 0;
	var intTop = (screen.height) ? (screen.height - intHeight) / 2 : 0;

	var OpenWindow;
	strAttrs = 'height=' + intHeight + ',width=' + intWidth + ',top=' + intTop + ',left=' + intLeft + ', resizable=yes, toolbar=yes , scrollbars=yes , status=no';

	OpenWindow = window.open("/asp-bin/PrintNewsEn.aspx?NewsID=" + strNewsID , "Print" , strAttrs);
	OpenWindow.focus();
}

function TopSentNews(intWidth, intHeight)
{
	if((typeof(intWidth) == "undefined")||(intWidth == null))
		intWidth = 600;

	if((typeof(intHeight) == "undefined")||(intHeight == null))
		intHeight = 400;

	var intLeft = (screen.width) ? (screen.width - intWidth) / 2 : 0;
	var intTop = (screen.height) ? (screen.height - intHeight) / 2 : 0;

	var OpenWindow;
	strAttrs = 'height=' + intHeight + ',width=' + intWidth + ',top=' + intTop + ',left=' + intLeft + ', resizable=yes, toolbar=yes , scrollbars=yes , status=no';

	OpenWindow = window.open("/asp-bin/TopSentNews.aspx", "TopSent", strAttrs);
	OpenWindow.focus();
}
