			
function doOpenHTML(oLink, oName, oHeight, oWidth) {
	var sLink = (typeof(oLink.href) == 'undefined') ? oLink : oLink.href;
    if (sLink == '') {
		return false;
	}
	winDef = 'status=no, resizable=no, scrollbars=no, toolbar=no, location=no, fullscreen=no, titlebar=no, height='.concat(oHeight).concat(',').concat('width=').concat(oWidth).concat(',');
    winDef = winDef.concat('top=').concat((screen.height - oHeight)/2).concat(',');
    winDef = winDef.concat('left=').concat((screen.width - oWidth)/2);
    var oOpenWin = window.open(sLink, oName, winDef);
    if (typeof(oLink.href) != 'undefined') {
		return false;
    }
}

function doOpenTemplateHTML(oLink, oName, oHeight, oWidth) {
	var sLink = (typeof(oLink.href) == 'undefined') ? oLink : oLink.href;
    if (sLink == '') {
		return false;
	}
	winDef = 'status=yes, resizable=no, scrollbars=yes, toolbar=no, location=no, fullscreen=no, titlebar=no, height='.concat(oHeight).concat(',').concat('width=').concat(oWidth).concat(',');
    winDef = winDef.concat('top=').concat((screen.height - oHeight)/2).concat(',');
    winDef = winDef.concat('left=').concat((screen.width - oWidth)/2);
    var oOpenWin = window.open(sLink, oName, winDef);
    if (typeof(oLink.href) != 'undefined') {
		return false;
    }
}

function doOpenPreviewHTML(oLink, oName, oHeight, oWidth) {
	var sLink = (typeof(oLink.href) == 'undefined') ? oLink : oLink.href;
    if (sLink == '') {
		return false;
	}
	winDef = 'status=no, resizable=no, scrollbars=yes, toolbar=no, location=no, fullscreen=no, titlebar=no, height='.concat(oHeight).concat(',').concat('width=').concat(oWidth).concat(',');
    winDef = winDef.concat('top=').concat((screen.height - oHeight)/2).concat(',');
    winDef = winDef.concat('left=').concat((screen.width - oWidth)/2);
    var oOpenWin = window.open(sLink, oName, winDef);
    if (typeof(oLink.href) != 'undefined') {
		return false;
    }
}
function doOpenSMSImage(oLink, oName, oHeight, oWidth) {
	var sLink = (typeof(oLink.href) == 'undefined') ? oLink : oLink.href;
    if (sLink == '') {
		return false;
	}
	winDef = 'status=no, resizable=no, scrollbars=no, toolbar=no, location=no, fullscreen=no, titlebar=no, height='.concat(oHeight).concat(',').concat('width=').concat(oWidth).concat(',');
    winDef = winDef.concat('top=').concat((screen.height - oHeight)/2).concat(',');
    winDef = winDef.concat('left=').concat((screen.width - oWidth)/2);
    var oOpenWin = window.open(sLink, oName, winDef);
    if (typeof(oLink.href) != 'undefined') {
		return false;
    }
}