// Ellis Whittam - JavaScript.

// Popup window function will be called from HTML page.


   function icbpopup(url, windowoptions, windowname) {
	   if (windowoptions==null)
	   { leftPos = (screen.width / 2) - 251;
           topPos = (screen.height / 2) - 230;
           windowoptions="width=500,height=500,toolbar=no,status=no,scrollbars=yes,resizable=yes,menubar=no,left="+leftPos+",top="+topPos;
	   }
	   if (windowname==null)
	   { windowname="icbpopup";
	   }
	    remote = window.open("",windowname,windowoptions); 
          remote.focus();
  	    remote.location.href=url;	

	}


	
   function icbpopup2(url, windowoptions, windowname) {
	   if (windowoptions==null)
	   { leftPos = (screen.width / 2) - 251;
           topPos = (screen.height / 2) - 230;
           windowoptions="width=625,height=400,toolbar=no,status=no,scrollbars=yes,resizable=yes,menubar=no,left="+leftPos+",top="+topPos;
	   }
	   if (windowname==null)
	   { windowname="icbpopup2";
	   }
	    remote = window.open("",windowname,windowoptions); 
          remote.focus();
  	    remote.location.href=url;	

	}



function EvalSound(soundobj) {
  var thissound= eval("document."+soundobj);
  try {
     thissound.Play();
  }
  catch (e) {
     thissound.DoPlay();
  }
}




