var ContactTemplate = {}; ContactTemplate.MapPopUp = function(PopUpTitle, Image, sWidth, sHeight) { var winl = (screen.width - sWidth) / 2; var wint = (screen.height - sHeight) / 2; win3 = window.open('', 'win3', 'width=' + sWidth + ',height=' + sHeight + ',top=' + wint + ',left=' + winl + 'scrollbars=auto'); sHeadContent = '' + PopUpTitle + ''; sHead = '' + sHeadContent + ''; sContent = ''; sStyle = 'style=\"margin:0px; text-align:center\" '; sBody = '' + sContent + ''; sHtml = '' + sHead + sBody + ''; win3.document.writeln(sHtml); }