function openNewWindow(URLtoOpen, windowName, windowFeatures) { 
	newWindow=window.open(
		URLtoOpen, windowName, windowFeatures
	); 
}
function popupchat(mylink, windowname) {
var winleft = (screen.width - 600) / 2;
var winUp = (screen.height - 150) / 2;
if (! window.focus)return true;
  var href;
  if(typeof(mylink) == 'string')
    href=mylink;
  else
    href=mylink.href;
    window.open(href, windowname, 'top='+((screen.height - 120) / 2)+',left='+((screen.width - 300) / 2)+'+,toolbar=0 status=1,resizable=0,Width=300,height=120,scrollbars=0');
}
function popuptemplatehelp(mylink, windowname) {
var winleft = (screen.width - 600) / 2;
var winUp = (screen.height - 150) / 2;
if (! window.focus)return true;
  var href;
  if(typeof(mylink) == 'string')
    href=mylink;
  else
    href=mylink.href;
    window.open(href, windowname, 'top='+((screen.height - 600) / 2)+',left='+((screen.width - 500) / 2)+'+,toolbar=0 status=1,resizable=0,Width=500,height=600,scrollbars=1');
}
function popuptemplatepricefaq(mylink, windowname) {
var winleft = (screen.width - 600) / 2;
var winUp = (screen.height - 150) / 2;
if (! window.focus)return true;
  var href;
  if(typeof(mylink) == 'string')
    href=mylink;
  else
    href=mylink.href;
    window.open(href, windowname, 'top='+((screen.height - 250) / 2)+',left='+((screen.width - 500) / 2)+'+,toolbar=0 status=1,resizable=0,Width=500,height=250,scrollbars=0');
}
function Popup2(url){
	window.open(
		url,
		'window',
		'width=800, height=600, resizable=yes, scrollbars=yes, location=no,  toolbar=no, menubar=no, status=no'
	);
}
// Hide "www.mytemplatestorage.com" from status bar
function HideStatus(){
	window.status = document.readyState!="complete" ?
		"Loading..." : window.defaultStatus;
}
document.onreadystatechange = HideStatus;

