<!--Begin 
var popwin = null;
function NewWindow(page,w,h) {
 self.name = "main";
 NewWindowClose();
 options = "toolbar=0,status=0,menubar=0,scrollbars=1,resizable=0,location=0,width=" + w + ",height=" + h + ",screenX=1,screenY=1,top=1,left=1";
 popwin = window.open(page,"",options);
 if (popwin == null || typeof(popwin) == "undefined") {
  document.location.href("/popupblocker.html");
 }
 popwin.document.close();
}
function NewWindowClose() {
 if (popwin != null && !popwin.closed) popwin.close();
}
//--End-->
<!--Begin
var imgwin = null;
function NewWindowImg(img,w,h,extra) {
 var extracontent = '';
 if (extra == 1) {
  extracontent = '<A class="nav" href="javascript:window.print()">Print<\/A> &nbsp; &nbsp; ';
 }
 NewWindowImgClose();
 contents = '<HTML>\n<HEAD>\n<LINK type="text/css" rel="stylesheet" href="/htstyle.css" />\n</HEAD>\n<BODY>\n' +
            '<DIV align="center">\n <IMG src="' + img + '" border="0">\n' +
            '<BR><BR>\n' + extracontent + '<A class="nav" href="javascript:window.close()">\n' +
            'Close window<\/A>\n <\/DIV>\n<\/BODY>\n<\/HTML>';
 options = "toolbar=0,status=0,menubar=0,scrollbars=1,resizable=0,location=0,width=" + w + ",height=" + h + ",screenX=1,screenY=1,top=1,left=1";
 imgwin = window.open("","",options);
 if (imgwin == null || typeof(imgwin) == "undefined") {
  document.location.href("/popupblocker.html");
 }
 imgwin.document.write(contents);
 imgwin.document.close();
}
function NewWindowImgClose() {
 if (imgwin != null && !imgwin.closed) imgwin.close();
}
//--End-->
<!--Begin
function SubmitChk() {
var team1 = document.fileupload.team[0];
var team2 = document.fileupload.team[1];
var team3 = document.fileupload.team[2];
var team4 = document.fileupload.team[3];
var year1 = document.fileupload.year[0];
var year2 = document.fileupload.year[1];
var year3 = document.fileupload.year[2];
  for (var i = 1; i <= 3; i++) {
   var picfile = eval("document.fileupload.userfile" + i + "");
   if (picfile.value != '') {
    if ((picfile.value.lastIndexOf(".jpg") == -1) && (picfile.value.lastIndexOf(".JPG") == -1)) {
     alert("The image file for 'Photo " + i + "' is not of the file format JPG with the '.jpg' extension. Please save your image in the JPG format and try again.");
     return false;
    }
   }
  }
  if (team1.checked == false && team2.checked == false && team3.checked == false && team4.checked == false) {
   alert("The team in which the photos are for is required.");
   return false;
  }
  if (year1.checked == false && year2.checked == false && year3.checked == false) {
   alert("The year in which the photos are for is required.");
   return false;
  }
  if (document.fileupload.userfile1.value == '') {
   alert("Please 'Browse' for a photo to upload starting with 'Photo 1'.");
   return false;
  }
  return true;
}
//--End-->
