// JavaScript Document

   
   COPYRIGHT = "&copy; Childmyths.com ";

   function writeCopyright()
   {
      document.write(COPYRIGHT, new Date().getFullYear(), ". All rights reserved.");
   }

// these 2 pop up scripts work similarly but this one centers the popup
function popUp(center,url,winTitle,width,height,features) {
  if (! window.focus) return true;
		if (center) {
			x = (640 - width)/2, y = (480 - height)/2;
			if (screen) {
				y = (screen.availHeight - height)/2;
				x = (screen.availWidth - width)/2;
			}
			if (screen.availWidth > 1800) { 
				x = ((screen.availWidth/2) - width)/2; 
			} 
		}
		/*var newWin = window.open(url,winTitle,'width='+width+',height='+height+',screenX='+x+',screenY='+y+',top='+y+',left='+x+','+features);
		newWin.focus();*/

window.open(url,winTitle,'width='+width+',height='+height+',screenX='+x+',screenY='+y+',top='+y+',left='+x+','+features);

return false;
}

// this one should be cross platform/browser friendly
function popup(mylink, windowname) {
	var width = 700;
	var height = 750;
  if (! window.focus) return true;
  
  var href;
  
  if (typeof(mylink) == 'string') href=mylink;
  
  else
  href=mylink.href;
  
  window.open(href, windowname, 'width='+width+',height='+height+',scrollbars=yes');
  return false;
}
