function CheckInput (thisform){ 
    var errors = 0;                             //error count
    var duditem = "";                           //remember where it failed!
    var message = "\n";                         //error message
		
 if (! Validcustomer (thisform.team, false) )
        { errors ++;
          message += "Please select your Image X Team!\n"; 
        };
 
if (! Validcustomer (thisform.File1, false) )
        { errors ++;
          duditem = thisform.File1;
          message += "Please browse to a file to upload!\n"; 
        };
		
  if (errors == 0)
     { 
	    winstyle="height=210,width=775,status=no,toolbar=no,menubar=no,location=no";
		window.open("progress.asp?progressid=<%=intProgressID%>","Progress",winstyle);
		document.upload.action="uploadnow.asp?progressid=<%=intProgressID%>";
	 
     } else
     { message += "\nPlease FIX THIS AND RETRY\n(Click on OK, fix errors)!";
       if (errors == 1)
           { alert  ("There was an error in your submission\n"
                     + message);
           } else
           { alert ("There were errors in your form\n" + message);
           };
       duditem.select();
       duditem.focus();
     };
 
  if (errors != 0) return (false);
  return (true);      
  }
 
function startupload() {
		winstyle="height=210,width=775,status=no,toolbar=no,menubar=no,location=no";
		window.open("progress.asp?progressid=<%=intProgressID%>","Progress",winstyle);
		document.upload.action="uploadnow.asp?progressid=<%=intProgressID%>";
		
}
 
function jumpto(x){
 
	if (document.upload.team.value != "null") {
	// ** To Open in same window **
		//document.location.href = x;
	// ** To Open in new window **
		window.open(x);
	}
}
