function newPhotoWindow(PhotoLocation1,picWidth,picHeight,Text){
winWidth=picWidth+40
winHeight=picHeight+180
newWindow = window.open('','newWin','toolbar=no,location=no,scrollbars=no,status=no,menubar=no,resizable=yes,width=' + winWidth + ',height=' + winHeight + ',left=30,top=30')
newWindow.document.write
("<html><head><title><\/title><\/head><body style='background-color: rgb(204, 102, 0);' link='#000000' vlink='#000000' alink='#000000'><font face='arial'><b><center><img src='" + PhotoLocation1 + "' alt=''><p>" + Text + "<\/p><br><a href='javascript:window.close()'>CLOSE<\/a><\/center><\/b><\/font><\/body><\/html>")
newWindow.document.close();
newWindow.resizeTo(winWidth,winHeight);
newWindow.focus();
}

function newPhotoWindow2P(PhotoLocation1,PhotoLocation2,picWidth,picHeight,Text){
winWidth=2*picWidth+70
winHeight=picHeight+180
newWindow = window.open('','newWin','toolbar=no,location=no,scrollbars=no,status=no,menubar=no,resizable=yes,width=' + winWidth + ',height=' + winHeight + ',left=30,top=30')
newWindow.document.write
("<html><head><title><\/title><\/head><body style='background-color: rgb(204, 102, 0);' link='#000000' vlink='#000000' alink='#000000'><font face='arial'><b><center><img src='" + PhotoLocation1 + "'>&nbsp; &nbsp;<img src='" + PhotoLocation2 + "'><p>" + Text + "<\/p><br><a href='javascript:window.close()'>CLOSE<\/a><\/center><\/b><\/font><\/body><\/html>")
newWindow.document.close();
newWindow.resizeTo(winWidth,winHeight);
newWindow.focus();
}

function newPhotoWindow2L(PhotoLocation1,PhotoLocation2,picWidth,picHeight,Text){
winWidth=picWidth+40
winHeight=2*picHeight+195
newWindow = window.open('','newWin','toolbar=no,location=no,scrollbars=no,status=no,menubar=no,resizable=yes,width=' + winWidth + ',height=' + winHeight + ',left=30,top=30')
newWindow.document.write
("<html><head><title><\/title><\/head><body style='background-color: rgb(204, 102, 0);' link='#000000' vlink='#000000' alink='#000000'><font face='arial'><b><center><img src='" + PhotoLocation1 + "'><br><img src='..\/images\/spacer.jpg'><br><img src='" + PhotoLocation2 + "'><p>" + Text + "<\/p><br><a href='javascript:window.close()'>CLOSE<\/a><\/center><\/b><\/font><\/body><\/html>")
newWindow.document.close();
newWindow.resizeTo(winWidth,winHeight);
newWindow.focus();
}

function newCardWindow(PhotoLocation1,picWidth,picHeight,Text1,Text2,Text3,Text4,Text5){
winWidth=picWidth+40
winHeight=picHeight+250
newWindow = window.open('','newWin','toolbar=no,location=no,scrollbars=no,status=no,menubar=no,resizable=yes,width=' + winWidth + ',height=' + winHeight + ',left=30,top=30')
newWindow.document.write
("<html><head><title><\/title><\/head><body style='background-color: rgb(204, 102, 0);' link='#000000' vlink='#000000' alink='#000000'><font face='arial'><center><p><b>" + Text1 + "<\/b><br>" + Text2 + "<\/p><img src='" + PhotoLocation1 + "' alt=''><p><small>" + Text3 + "<br>" + Text4 + "<br>" + Text5 + "<\/small><\/p><b><a href='javascript:window.close()'>CLOSE<\/a><\/b><\/center><\/font><\/body><\/html>")
newWindow.document.close();
newWindow.resizeTo(winWidth,winHeight);
newWindow.focus();
}

function newCardWindow2P(PhotoLocation1,PhotoLocation2,picWidth,picHeight,Text1,Text2,Text3,Text4,Text5){
winWidth=2*picWidth+70
winHeight=picHeight+250
newWindow = window.open('','newWin','toolbar=no,location=no,scrollbars=no,status=no,menubar=no,resizable=yes,width=' + winWidth + ',height=' + winHeight + ',left=30,top=30')
newWindow.document.write
("<html><head><title><\/title><\/head><body style='background-color: rgb(204, 102, 0);' link='#000000' vlink='#000000' alink='#000000'><font face='arial'><center><p><b>" + Text1 + "<\/b><br>" + Text2 + "<\/p><img src='" + PhotoLocation1 + "'>&nbsp; &nbsp;<img src='" + PhotoLocation2 + "'><p><small>" + Text3 + "<br>" + Text4 + "<br>" + Text5 + "<\/small><\/p><b><a href='javascript:window.close()'>CLOSE<\/a><\/b><\/center><\/b><\/font><\/body><\/html>")
newWindow.document.close();
newWindow.resizeTo(winWidth,winHeight);
newWindow.focus();
}

function newCardWindow2L(PhotoLocation1,PhotoLocation2,picWidth,picHeight,Text1,Text2,Text3,Text4,Text5){
winWidth=picWidth+40
winHeight=2*picHeight+250
newWindow = window.open('','newWin','toolbar=no,location=no,scrollbars=no,status=no,menubar=no,resizable=yes,width=' + winWidth + ',height=' + winHeight + ',left=30,top=30')
newWindow.document.write
("<html><head><title><\/title><\/head><body style='background-color: rgb(204, 102, 0);' link='#000000' vlink='#000000' alink='#000000'><font face='arial'><center><p><b>" + Text1 + "<\/b><br>" + Text2 + "<\/p><img src='" + PhotoLocation1 + "'><br><br><img src='" + PhotoLocation2 + "'><p><small>" + Text3 + "<br>" + Text4 + "<br>" + Text5 + "<\/small><\/p><b><a href='javascript:window.close()'>CLOSE<\/a><\/b><\/center><\/b><\/font><\/body><\/html>")
newWindow.document.close();
newWindow.resizeTo(winWidth,winHeight);
newWindow.focus();
}

window.onunload = function(){newWindow.close()}