function OpenPopUp(whichPage, winWidth, winHeight) {
	winLeft = (screen.width) ? (screen.width-winWidth)/2 : 0;
	winTop = (screen.height) ? (screen.height-winHeight)/2 : 0;
	win = eval("window.open (\"" + whichPage + "\", \"_blank\", \"height=" + winHeight + ",width=" + winWidth + ",top=" + winTop + ",left=" + winLeft + ",resizable,scrollbars\")");
}


function ShowCard(whichGraphic, winWidth, winHeight) {
	winLeft = (screen.width) ? (screen.width-winWidth)/2 : 0;
	winTop = (screen.height) ? (screen.height-winHeight)/2 : 0;

	win = window.open("", "newwin", "height=" + winHeight + ", width=" + winWidth + ", top=" + winTop + ", left=" + winLeft + ", toolbar=no,scrollbars,resizable,menubar=no");
	win.document.write("<TITLE> </TITLE>")
	win.document.write("<BODY BGCOLOR=white>")
	win.document.write("<p align=center><img src='"+whichGraphic+"'></p>")
	win.document.write("</BODY>")
	win.document.write("</HTML>")
}		



function ViewCard(img,title){
  img1= new Image();
  img1.src=(img);
  //winWidth=img1.width+30;
  //winHeight=img1.height+30;
  winWidth=450;
  winHeight=450;
  winLeft = (screen.width) ? (screen.width-winWidth)/2 : 0;
  winTop = (screen.height) ? (screen.height-winHeight)/2 : 0;
  winParams="width="+winWidth+",height="+winHeight+",top="+winTop+",left="+winLeft+",resizable=yes,toolbar=no,menubar=no,scrollbars=yes,location=no,directories=no,status=no";
  win=window.open("","",winParams);
  win.document.writeln("<HTML>");
  win.document.writeln("<HEAD>");
  win.document.writeln("<TITLE>"+title+"</TITLE>");
  win.document.writeln("</HEAD>");
  win.document.writeln("<BODY BGCOLOR=white>");
  win.document.writeln("<DIV ALIGN=center>");
  win.document.writeln("<img src='"+img1.src+"'>");
  win.document.writeln("</DIV>");
  win.document.writeln("</BODY>");
  win.document.writeln("</HTML>");
  win.document.close();
}

