function doPopup(link,windowname){
  var winl = (screen.width-750)/2;
  var wint = (screen.height-536)/2;
  var settings  ='height='+536+',';
      settings +='width='+750+',';
      settings +='top='+wint+',';
      settings +='left='+winl+',';
      settings +='scrollbars=no,resizable=no';
  win=window.open(link, windowname, settings);
  if(parseInt(navigator.appVersion) >= 4){win.window.focus();}
}

function doClose(){
	window.close(); 
}

function openPDF(pdf){
	if (navigator.appVersion.indexOf("Mac")!=-1) {
		window.location = pdf;
	} else {
		window.open(pdf,'pdf','toolbar=yes,location=yes,directories=yes,status=yes,menubar=yes,scrollbars=yes,copyhistory=yes,resizable=yes');
	}
}

function newImage(image) {
	if (document.images) {
		myImage = new Image();
		myImage.src = image;
		return myImage;
	}
}

function preloadImages() {
	if (document.images) {
		enter01 = newImage("images/enter03.gif");
	}
}
