function popuptop10() {
// set properties for the editace window
var browseid = document.formtop10.top10.value
var w = 500
var h = 500
var lp = (screen.width) ? (screen.width-w)/2 : 0;
var tp = (screen.height) ? (screen.height-h)/2 : 0;
var OpenWindow;
if (browseid != 0) {
attrs = 'height=500,width=500,top=' + tp + ',left=' + lp + ', resizable=yes, toolbar=no , scrollbars=yes , status=yes';
OpenWindow = window.open( "viewNewstop10.asp?browseid=" + browseid , "popuptop10", attrs);
OpenWindow.focus();
}
}
function popupClose() {
// set properties for the editace window

//var OpenWindow;
//attrs = 'height=' + h + ',width=' + w + ',top=' + tp + ',left=' + lp + ', resizable=yes, toolbar=no , scrollbars=no , status=no';
OpenWindow = window.open('','Video_Url',750,600);
OpenWindow.close();
}
function popupCenter(theURL,winName,w,h) {
// set properties for the editace window
var lp = (screen.width) ? (screen.width-w)/2 : 0;
var tp = (screen.height) ? (screen.height-h)/2 : 0;
var OpenWindow;
attrs = 'height=' + h + ',width=' + w + ',top=' + tp + ',left=' + lp + ', resizable=yes, toolbar=no , scrollbars=no , status=no';
OpenWindow = window.open( theURL , winName , attrs);
OpenWindow.focus();
}

function popupCenterTop(theURL,winName,w,h) {
// set properties for the editace window
var lp = (screen.width) ? (screen.width-w)/2 : 0;
var OpenWindow;
attrs = 'height=' + h + ',width=' + w + ',top=30,left=' + lp + ', resizable=no, toolbar=no , scrollbars=no , status=no';
OpenWindow = window.open( theURL , winName , attrs);
OpenWindow.focus();
}

function popupCenterScroll(theURL,winName,w,h) {
// set properties for the editace window
var lp = (screen.width) ? (screen.width-w)/2 : 0;
var tp = (screen.height) ? (screen.height-h)/2 : 0;
var OpenWindow;
attrs = 'height=' + h + ',width=' + w + ',top=' + tp + ',left=' + lp + ', resizable=yes, toolbar=no , scrollbars=yes , status=no';
OpenWindow = window.open( theURL , winName , attrs);
OpenWindow.focus();
}

function SendNews(longNewsID)
{
	var SendNewsWin;
	var strURL = "/asp-bin/QASendNews.asp?QAID=" + longNewsID.toString();
	var strName =  "SendNews" + longNewsID.toString();

	SendNewsWin = window.open(strURL, strName, "alwaysRaised=1,menuber=0,toolbar=0,location=0,directories=0,personalbar=0,scrollbars=0,status=1,resizable=1,width=500,height=300");

	return false;
}

function getDateTime()
{
	var strMonthNames = new Array("January", "February", "March", "April", "May", "June", "July", "August", "September", "Octorber", "November", "December");
	var dateNow = new Date();
	var strDateTime = strMonthNames[dateNow.getMonth().toString()] + " " + dateNow.getDate().toString() + ", " + dateNow.getUTCFullYear().toString() + " " + dateNow.getHours().toString() + ":" + dateNow.getMinutes().toString() + ":" + dateNow.getSeconds().toString();

	return strDateTime;
}
