function check() {
  var ext = document.uploader.tempfile.value;
  ext = ext.substring(ext.length-3,ext.length);
  ext = ext.toLowerCase();
//this is where the warning goes
  if(ext != 'jpg') {
    alert('You selected a .'+ext+' file; please select a .jpg file instead');
//warning ends
    return false; }
else
    return true; 
}
//
function wait_for_it() {
          callcheck = check();
          //document.layers['loading'].visibility = 'visible';
	    document.all('loading').style.visibility = 'visible';	
}
//
//
function checktwo() {
  var ext = document.uploader.tempfile.value;
  ext = ext.substring(ext.length-3,ext.length);
  ext = ext.toLowerCase();
//this is where the warning goes
  if(ext != 'swf') {
    alert('You selected a .'+ext+' file; please select a .swf file instead');
//warning ends
    return false; }
else
    return true; 
}
//
function wait_for_it_two() {
          callcheck = checktwo();
          //document.layers['loading'].visibility = 'visible';
	    document.all('loading').style.visibility = 'visible';	
}
