var win = null;function newWindow(mypage,myname,w,h,features) {  var winl = (screen.width-w)/2;  var wint = (screen.height-h)/2;  if (winl < 0) winl = 0;  if (wint < 0) wint = 0;  var settings = 'height=' + h + ',';  settings += 'width=' + w + ',';  settings += 'top=' + wint + ',';  settings += 'left=' + winl + ',';  settings += 'menubar=no,';  settings += features;  win = window.open(mypage,myname,settings);	if (window.focus) {win.focus()}  	win.document.write('<html><head>');	win.document.write('<title>' + myname + '</title>');	win.document.write('</head><body><div align="center">');	win.document.write('<p>The checkout function is currently unavailable. </p>');	win.document.write('<p><FORM>');	win.document.write('<INPUT TYPE="button" VALUE="Close" onClick="self.close()" align="center">');	win.document.write('</FORM></p>');  	win.document.write('</div></body></html>');	win.document.close();	return false;}