function openPhoto(url){
    var newWin = window.open(url,'photo','left=20,top=20,width=900,height=900,toolbar=0,resizable=0,scrollbars=1');
    if(window.focus) {newWin.focus();}
    return false;
}



function showPhoto(imgSrc,alt){
    var newWin = window.open("",'photo','left=20,top=20,width=900,height=900,toolbar=0,resizable=0,scrollbars=1');

    var page="<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.1//EN\" \n"+
"   \"http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd\">\n"+
"<html>\n"+
"<head>\n"+
"  <meta http-equiv=\"content-type\" content=\"text/html; charset=utf-8\" />\n"+
"  <title>"+alt+"</title>\n"+
"  <link href=\"css/default.css\" rel=\"stylesheet\" type=\"text/css\" />\n"+
"  <link href=\"css/style1024.css\" rel=\"stylesheet\" type=\"text/css\" />\n"+
"</head>\n"+
"<body>\n"+
"\n"+
"<div style=\"text-align: center;\">\n"+
"  <img src=\""+imgSrc+"\" alt=\""+alt+"\" />\n"+
"</div>\n"+
"\n"+
"</body>\n"+
"</html>\n";

    newWin.document.open();
    newWin.document.write(page);
    newWin.document.close();
    if(window.focus) {newWin.focus();}
    return false;
}
