function validateQuotesGenForm(theForm) {
 
  if (!validateTextbox(theForm.fullname)) {
      alert("Enter your name");
	  theForm.fullname.focus();
      return false;
  }

  if (!validateTextbox(theForm.phone) && !validateTextbox(theForm.email)) {
	  alert("Enter phone number or email address");
	  theForm.phone.focus();
	  return false;
  }
	
  if (validateTextbox(theForm.email) && !isValidEmail(theForm.email.value)) {
      alert("Enter a valid email address");
      theForm.email.focus();
	  return false;
  }

  if (!validateTextbox(theForm.description)) {
      alert("Enter a description");
	  theForm.description.focus();
      return false;
  }
	
  if (!validateTextbox(theForm.quantity)) {
      alert("Enter the required quantity");
	  theForm.quantity.focus();
      return false;
  }

  if (theForm.style.value=="none") {
      alert("Select the engraving style");
	  theForm.style.focus();
      return false;
  }

  if (theForm.style.value=="other" && !validateTextbox(theForm.styleOther)) {
      alert("Enter the engraving style");
	  theForm.styleOther.focus();
      return false;
  }

  if (theForm.digitalArtwork[0].checked && !validateTextbox(theForm.artworkFile1)) {
      alert("Enter the name and location of the artwork file");
	  theForm.artworkFile1.focus();
      return false;
  }

  if ((!theForm.hand.checked) && (!theForm.machine.checked) && (!theForm.seal.checked)) {
      alert("Select an engraving method");
	  theForm.machine.focus();
      return false;
  }

  if (theForm.stopsNeeded[0].checked && !(theForm.stops[0].checked || theForm.stops[1].checked)) {
      alert("Enter where the full stops should appear");
	  theForm.stops[0].focus();
      return false;
  }

  if (!validateTextbox(theForm.comments)) {
      alert("Enter the engraving details");
	  theForm.comments.focus();
      return false;
  }
	 
  if (!validateTextbox(theForm.required)) {
      alert("When is the work required by?");
	  theForm.required.focus();
      return false;
  }
	 
  return true;
}

function validateQuotesSignsForm(theForm) {
  if (!validateTextbox(theForm.fullname)) {
      alert("Enter your name");
	  theForm.fullname.focus();
      return false;
  }

  if (!validateTextbox(theForm.phone) && !validateTextbox(theForm.email)) {
	  alert("Enter phone number or email address");
	  theForm.phone.focus();
	  return false;
  }
	
  if (validateTextbox(theForm.email) && !isValidEmail(theForm.email.value)) {
      alert("Enter a valid email address");
      theForm.email.focus();
	  return false;
  }
	
  if (!validateTextbox(theForm.quantity)) {
      alert("Enter the required quantity");
	  theForm.quantity.focus();
      return false;
  }

  if (!validateTextbox(theForm.size)) {
      alert("Enter the size of the item");
	  theForm.size.focus();
      return false;
  }

  if (theForm.digitalArtwork[0].checked && !validateTextbox(theForm.artworkFile1)) {
      alert("Enter the name and location of the artwork file");
	  theForm.artworkFile1.focus();
      return false;
  }

  if (theForm.material.value=="none") {
      alert("Select the type of material");
	  theForm.material.focus();
      return false;
  }

  if (theForm.material.value=="other" && !validateTextbox(theForm.materialOther)) {
      alert("Enter the type of material");
	  theForm.materialOther.focus();
      return false;
  }

  if (theForm.colourInfill[0].checked && !validateTextbox(theForm.numberColours)) {
      alert("Enter the number of colours");
	  theForm.numberColours.focus();
      return false;
  }

  if (theForm.holesNeeded[0].checked && !(theForm.holes[0].checked || theForm.holes[1].checked)) {
      alert("Enter the number of holes");
	  theForm.holes[0].focus();
      return false;
  }

  if (theForm.backBoard[0].checked && theForm.backBoardType.selectedIndex==0) {
      alert("Select the required type of backboard");
	  theForm.backBoardType.focus();
      return false;
  }

  if (theForm.fitNeeded[0].checked && !validateTextbox(theForm.fitPostcode)) {
      alert("Enter the postcode where the sign will be fitted");
	  theForm.fitPostcode.focus();
      return false;
  }
	 
  if (!validateTextbox(theForm.comments)) {
      alert("Enter the engraving details");
	  theForm.comments.focus();
      return false;
  }
	 
  if (!validateTextbox(theForm.required)) {
      alert("When is the work required by?");
	  theForm.required.focus();
      return false;
  }
	 
  return true;
}

function validateContactForm(theForm) {
  if (!validateTextbox(theForm.fullname)) {
      alert("Enter your name");
	  theForm.fullname.focus();
      return false;
  }

  if (!validateTextbox(theForm.phone) && !validateTextbox(theForm.email)) {
	  alert("Enter phone number or email address");
	  theForm.phone.focus();
	  return false;
  }
	
  if (validateTextbox(theForm.email) && !isValidEmail(theForm.email.value)) {
      alert("Enter a valid email address");
      theForm.email.focus();
	  return false;
  }
	
  if (!validateTextbox(theForm.comments)) {
      alert("Enter your comments or question");
	  theForm.comments.focus();
      return false;
  }

  return true;
}

function validateTellForm(theForm) {
  if (!validateTextbox(theForm.fullname)) {
      alert("Enter your name");
	  theForm.fullname.focus();
      return false;
  }

  if (!validateTextbox(theForm.email) || !isValidEmail(theForm.email.value)) {
      alert("Enter a valid email address");
      theForm.email.focus();
	  return false;
  }
	
  if (!validateTextbox(theForm.fullname1)) {
      alert("Enter name for friend 1");
	  theForm.fullname1.focus();
      return false;
  }

  if (!validateTextbox(theForm.email1) || !isValidEmail(theForm.email1.value)) {
      alert("Enter a valid email address for friend 1");
      theForm.email1.focus();
	  return false;
  }

  if (!validateTextbox(theForm.fullname2) && validateTextbox(theForm.email2)) {
      alert("Enter name for friend 2");
      theForm.fullname2.focus();
	  return false;
  }

  if (validateTextbox(theForm.fullname2) && !validateTextbox(theForm.email2)) {
      alert("Enter a valid email address for friend 2");
      theForm.email2.focus();
	  return false;
  }

  if (validateTextbox(theForm.email2) && !isValidEmail(theForm.email2.value)) {
      alert("Enter a valid email address for friend 2");
      theForm.email2.focus();
	  return false;
  }

  return true;
}

function validateTextbox(control) {
  if (isEmpty(control)) {
    return false;
  }
  else {
    return true;
  }
}

function materialChange() {
//  if (quotes.material.options[quotes.material.selectedIndex].value=="other") {
  if (quotes.material.value=="other") {
    quotes.materialOther.disabled=false;
	quotes.materialOther.focus();
  }
  else { 
    quotes.materialOther.disabled=true;
	quotes.materialOther.value='';
  }
}

function setHoles(value) {
	quotes.holes[0].disabled = value;
	quotes.holes[1].disabled = value;
}

function styleChange(theForm) {
  if (theForm.style.value=="other") {
    theForm.styleOther.disabled=false;
	theForm.styleOther.focus();
  }
  else { 
    theForm.styleOther.disabled=true;
	theForm.styleOther.value='';
  }
}

function setStops(theForm, value) {
	theForm.stops[0].disabled = value;
	theForm.stops[1].disabled = value;
}

function validateShopForm2(theForm) {
  if (theForm.items.selectedIndex==-1) {
      alert("Select the required item(s)");
	  theForm.items.focus();
      return false;
  }
  
  itemnames = new Array(); 
  itemamounts = new Array(); 
//  itemqtys = new Array();

  for (var i = 0; i < theForm.items.length; i++) {
    if (theForm.items[i].selected) {
	  var str = theForm.items.options[i].text;
   	  str = str.substr(0,str.indexOf(" at"));

      itemnames.push(str);
      itemamounts.push(theForm.items[i].value);
//      itemqtys.push(1);
	}
  }

  if (itemnames.length > 5) {
    alert("Only select up to 5 items");
	theForm.items.focus();
	return false;

  }

  for (var j = 0; j < itemnames.length; j++) {
	switch(j) {
	  case 0:
  		theForm.item_name_1.value = itemnames[0];
  		theForm.amount_1.value = itemamounts[0];
//  		quantity_1 = itemqtys[0];
  		break;    
	  case 1:
  		theForm.item_name_2.value = itemnames[1];
  		theForm.amount_2.value = itemamounts[1];
//  		quantity_2 = itemqtys[1];
  		break;    
	  case 2:
  		theForm.item_name_3.value = itemnames[2];
  		theForm.amount_3.value = itemamounts[2];
//  		quantity_3 = itemqtys[2];
  		break;    
	  case 3:
  		theForm.item_name_4.value = itemnames[3];
  		theForm.amount_4.value = itemamounts[3];
//  		quantity_4 = itemqtys[3];
  		break;    
	  case 4:
  		theForm.item_name_5.value = itemnames[4];
  		theForm.amount_5.value = itemamounts[4];
//  		quantity_5 = itemqtys[4];
  		break;    
	  default:
	}  
  }
  
  alert(theForm.item_name_1.value);  
  alert(theForm.amount_1.value);  
  
  return true;
}

/*function validateShopForm(theForm) {
  if (theForm.amount.value=="none") {
      alert("Select the required item");
	  theForm.amount.focus();
      return false;
  }

  var str = theForm.amount.options[theForm.amount.selectedIndex].text;
  str = str.substr(0,str.indexOf(" at"));
  theForm.item_name.value = str;

  theForm.amount.value = theForm.items.options[theForm.items.selectedIndex].value;

  return true;
}*/

var choice=false;

function validateShopForm(theForm) {
  if (choice==false) {
  // submit button
    if (theForm.items.value=="none") {
      alert("Select the required item");
	  theForm.items.focus();
      return false;
	} 
	var str = theForm.items.options[theForm.items.selectedIndex].text;
    str = str.substr(0,str.indexOf(" at"));
    theForm.item_name.value = str;
    theForm.amount.value = theForm.items.options[theForm.items.selectedIndex].value;
  }
  
  choice=false;
  return true;
}

function setEngr(value) {
	engravingDetails.style.disabled=value;
	engravingDetails.chars[0].disabled = value;
	engravingDetails.chars[1].disabled = value;
	engravingDetails.chars[2].disabled = value;
	engravingDetails.type[0].disabled = value;
	engravingDetails.type[1].disabled = value;
	engravingDetails.stopsNeeded[0].disabled = value;
	engravingDetails.stopsNeeded[1].disabled = value;
	engravingDetails.comments.disabled=value;
	engravingDetails.required.disabled=value;
}

function validateCreditCardsForm(theForm) {
  if (!validateTextbox(theForm.fullname)) {
      alert("Enter name");
	  theForm.fullname.focus();
      return false;
  }

  if (!validateTextbox(theForm.phone) && !validateTextbox(theForm.email)) {
	  alert("Enter phone number or email address");
	  theForm.phone.focus();
	  return false;
  }
	
  if (validateTextbox(theForm.email) && !isValidEmail(theForm.email.value)) {
      alert("Enter a valid email address");
      theForm.email.focus();
	  return false;
  }
	
  if (!validateAmount(theForm.amount)) {
    return false;
  }

  if (!validateTextbox(theForm.item_name)) {
      alert("Enter item description");
	  theForm.item_name.focus();
      return false;
  }

  return true;
}

function validateAmount(control) {
  decallowed = 2;  // how many decimals are allowed?

  if (isNaN(control.value) || control.value == "") {
    alert("Amount entered is not valid");
     control.select();
     control.focus();
     return false;
   }
 
  if (control.value == "0.00") {
    alert("Enter amount");
     control.select();
     control.focus();
     return false;
   }
 
  if (control.value.indexOf('.') == -1) {
	control.value += ".";
  }
  
  dectext = control.value.substring(control.value.indexOf('.')+1, control.value.length);

  if (dectext.length != decallowed) {
    alert ("Enter a number with " + decallowed + " decimal places.");
    control.select();
    control.focus();
    return false;
  }

  return true;
}

function formatAmount(control) {
  control = control.toString();
  if (isNaN(control)) {
    control = "0";
  }
  sign = (control == (control = Math.abs(control)));
  control = Math.floor(control*100+0.50000000001);
  pence = control%100;
  control = Math.floor(control/100).toString();
  if (pence<10) {
    pence = "0" + pence;
  }
  for (var i = 0; i < Math.floor((control.length-(1+i))/3); i++) {
    control = control.substring(0, control.length-(4*i+3))+', '+ control.substring(control.length-(4*i+3));
  }
  return (((sign)?'':'-') + control + '.' + pence);
}

recordNo=0;
fieldNo=0;

function clickFirstContact() {
  recordNo=0;
  displayFieldsContact();
}

function clickLastContact() {
  recordNo=scriptAr.length-1;
  displayFieldsContact();
}

function clickPreviousContact() {
  recordNo--;
  displayFieldsContact();
}

function clickNextContact() {
  recordNo++;
  displayFieldsContact();
}

function displayFieldsContact() {
  if (recordNo==-1) {
    displayRecordCount();
	contact.firstButton.disabled=true;
	contact.previousButton.disabled=true;	
  } else if (recordNo==0) {
	contact.firstButton.disabled=true;
	contact.previousButton.disabled=true;
  } else {
	contact.firstButton.disabled=false;
	contact.previousButton.disabled=false;
  }
	
  if (recordNo==scriptAr.length-1) {
	contact.lastButton.disabled=true;
	contact.nextButton.disabled=true;
  } else {
	contact.lastButton.disabled=false;
	contact.nextButton.disabled=false;
  }
	
  contact.date.value=scriptAr[recordNo][6];
  contact.fullname.value=scriptAr[recordNo][0];
  contact.company.value=scriptAr[recordNo][1];
  contact.phone.value=scriptAr[recordNo][2];
  contact.email.value=scriptAr[recordNo][3];
  contact.through.value=scriptAr[recordNo][4];
  contact.comments.value=scriptAr[recordNo][5];
  
  displayRecordCount();
}

function clickFirstEngr() {
  recordNo=0;
  displayFieldsEngr();
}

function clickLastEngr() {
  recordNo=scriptAr.length-1;
  displayFieldsEngr();
}

function clickPreviousEngr() {
  recordNo--;
  displayFieldsEngr();
}

function clickNextEngr() {
  recordNo++;
  displayFieldsEngr();
}

function displayFieldsEngr() {
  if (recordNo==-1) {
    displayRecordCount();
	quotesGen.firstButton.disabled=true;
	quotesGen.previousButton.disabled=true;
  } else if (recordNo==0) {
	quotesGen.firstButton.disabled=true;
	quotesGen.previousButton.disabled=true;
  } else {
	quotesGen.firstButton.disabled=false;
	quotesGen.previousButton.disabled=false;
  }
	
  if (recordNo==scriptAr.length-1) {
	quotesGen.lastButton.disabled=true;
	quotesGen.nextButton.disabled=true;
  } else {
	quotesGen.lastButton.disabled=false;
	quotesGen.nextButton.disabled=false;
  }
	
  quotesGen.date.value=scriptAr[recordNo][6];
  quotesGen.fullname.value=scriptAr[recordNo][0];
  quotesGen.company.value=scriptAr[recordNo][1];
  quotesGen.phone.value=scriptAr[recordNo][2];
  quotesGen.email.value=scriptAr[recordNo][3];
  quotesGen.through.value=scriptAr[recordNo][4];
  quotesGen.comments.value=scriptAr[recordNo][5];
  quotesGen.address1.value=scriptAr[recordNo][7];
  quotesGen.address2.value=scriptAr[recordNo][8];
  quotesGen.address3.value=scriptAr[recordNo][9];
  quotesGen.address4.value=scriptAr[recordNo][10];
  quotesGen.postcode.value=scriptAr[recordNo][11];
  quotesGen.description.value=scriptAr[recordNo][12];
  quotesGen.quantity.value=scriptAr[recordNo][13];
  quotesGen.style.value=scriptAr[recordNo][14];
  quotesGen.required.value=scriptAr[recordNo][15];

  switch (scriptAr[recordNo][16]) {
    case "b":
      quotesGen.chars[0].checked=true;
      break;
    case "u":
      quotesGen.chars[1].checked=true;
      break;
    case "l":
      quotesGen.chars[2].checked=true;
      break;
    default:
      quotesGen.chars[0].checked=false;
      quotesGen.chars[1].checked=false;
      quotesGen.chars[2].checked=false;
  }
 
  switch (scriptAr[recordNo][17]) {
    case "h":
      quotesGen.type[0].checked=true;
      break;
    case "m":
      quotesGen.type[1].checked=true;
      break;
    case "b":
      quotesGen.type[2].checked=true;
      break;
    default:
      quotesGen.type[0].checked=false;
      quotesGen.type[1].checked=false;
      quotesGen.type[2].checked=false;
  }
 
  switch (scriptAr[recordNo][18]) {
    case "y":
      quotesGen.stopsNeeded[0].checked=true;
      break;
    case "n":
      quotesGen.stopsNeeded[1].checked=true;
      break;
    default:
      quotesGen.stopsNeeded[0].checked=false;
      quotesGen.stopsNeeded[1].checked=false;
  }
 
  switch (scriptAr[recordNo][19]) {
    case "m":
      quotesGen.stops[0].checked=true;
      break;
    case "b":
      quotesGen.stops[1].checked=true;
      break;
    default:
      quotesGen.stops[0].checked=false;
      quotesGen.stops[1].checked=false;
  }
  
  displayRecordCount();
}

function clickFirstSign() {
  recordNo=0;
  displayFieldsSign();
}

function clickLastSign() {
  recordNo=scriptAr.length-1;
  displayFieldsSign();
}

function clickPreviousSign() {
  recordNo--;
  displayFieldsSign();
}

function clickNextSign() {
  recordNo++;
  displayFieldsSign();
}

function displayFieldsSign() {
  if (recordNo==-1) {
    displayRecordCount();
	quotesGen.firstButton.disabled=true;
	quotesGen.previousButton.disabled=true;
  } else if (recordNo==0) {
	quotesGen.firstButton.disabled=true;
	quotesGen.previousButton.disabled=true;
  } else {
	quotesGen.firstButton.disabled=false;
	quotesGen.previousButton.disabled=false;
  }
	
  if (recordNo==scriptAr.length-1) {
	quotesGen.lastButton.disabled=true;
	quotesGen.nextButton.disabled=true;
  } else {
	quotesGen.lastButton.disabled=false;
	quotesGen.nextButton.disabled=false;
  }
	
  quotesGen.date.value=scriptAr[recordNo][6];
  quotesGen.fullname.value=scriptAr[recordNo][0];
  quotesGen.company.value=scriptAr[recordNo][1];
  quotesGen.phone.value=scriptAr[recordNo][2];
  quotesGen.email.value=scriptAr[recordNo][3];
  quotesGen.through.value=scriptAr[recordNo][4];
  quotesGen.comments.value=scriptAr[recordNo][5];
  quotesGen.address1.value=scriptAr[recordNo][7];
  quotesGen.address2.value=scriptAr[recordNo][8];
  quotesGen.address3.value=scriptAr[recordNo][9];
  quotesGen.address4.value=scriptAr[recordNo][10];
  quotesGen.postcode.value=scriptAr[recordNo][11];
  quotesGen.quantity.value=scriptAr[recordNo][12];
  quotesGen.size.value=scriptAr[recordNo][13];
  quotesGen.measure.value=scriptAr[recordNo][14];

  switch (scriptAr[recordNo][15]) {
    case "y":
      quotesGen.digitalArtwork[0].checked=true;
      break;
    case "n":
      quotesGen.digitalArtwork[1].checked=true;
      break;
    default:
      quotesGen.digitalArtwork[0].checked=false;
      quotesGen.digitalArtwork[1].checked=false;
  }
 
  quotesGen.material.value=scriptAr[recordNo][16];

  switch (scriptAr[recordNo][17]) {
    case "m":
      quotesGen.finish[0].checked=true;
      break;
    case "b":
      quotesGen.finish[1].checked=true;
      break;
    default:
      quotesGen.finish[0].checked=false;
      quotesGen.finish[1].checked=false;
  }
 
  switch (scriptAr[recordNo][18]) {
    case "y":
      quotesGen.lacquer[0].checked=true;
      break;
    case "n":
      quotesGen.lacquer[1].checked=true;
      break;
    default:
      quotesGen.lacquer[0].checked=false;
      quotesGen.lacquer[1].checked=false;
  }
 
  switch (scriptAr[recordNo][19]) {
    case "y":
      quotesGen.colourInfill[0].checked=true;
      break;
    case "n":
      quotesGen.colourInfill[1].checked=true;
      break;
    default:
      quotesGen.colourInfill[0].checked=false;
      quotesGen.colourInfill[1].checked=false;
  }
 
  quotesGen.numberColours.value=scriptAr[recordNo][20];

  switch (scriptAr[recordNo][21]) {
    case "y":
      quotesGen.holesNeeded[0].checked=true;
      break;
    case "n":
      quotesGen.holesNeeded[1].checked=true;
      break;
    default:
      quotesGen.holesNeeded[0].checked=false;
      quotesGen.holesNeeded[1].checked=false;
  }
 
  switch (scriptAr[recordNo][22]) {
    case "2":
      quotesGen.holes[0].checked=true;
      break;
    case "4":
      quotesGen.holes[1].checked=true;
      break;
    default:
      quotesGen.holes[0].checked=false;
      quotesGen.holes[1].checked=false;
  }
 
  quotesGen.fixingSpec.value=scriptAr[recordNo][23];

  switch (scriptAr[recordNo][24]) {
    case "y":
      quotesGen.backBoard[0].checked=true;
      break;
    case "n":
      quotesGen.backBoard[1].checked=true;
      break;
    default:
      quotesGen.backBoard[0].checked=false;
      quotesGen.backBoard[1].checked=false;
  }
 
  quotesGen.backBoardType.value=scriptAr[recordNo][25];

  switch (scriptAr[recordNo][26]) {
    case "y":
      quotesGen.fitNeeded[0].checked=true;
      break;
    case "n":
      quotesGen.fitNeeded[1].checked=true;
      break;
    default:
      quotesGen.fitNeeded[0].checked=false;
      quotesGen.fitNeeded[1].checked=false;
  }
 
  quotesGen.fitPostcode.value=scriptAr[recordNo][27];
  quotesGen.required.value=scriptAr[recordNo][28];
  
  displayRecordCount();
}

function displayRecordCount() {
//  var recText_out = "Record " + recordNo + " of " + (scriptAr.length)-1; 
  if (scriptAr.length==0) {
    var recText_out = "No records"; 
  } else {
    var recText_out = "Record " + (recordNo+1) + " of " + scriptAr.length; 
  }

  if (document.all) recordCount.innerHTML = recText_out; 
  if (document.layers) { document.recordCount.document.write(recText_out); document.recordCount.document.close(); } 
}

function validateKidsFramesForm(theForm) {
 
  if (!validateTextbox(theForm.fullname)) {
      alert("Enter your name");
	  theForm.fullname.focus();
      return false;
  }

  if (!validateTextbox(theForm.phone) && !validateTextbox(theForm.email)) {
	  alert("Enter phone number or email address");
	  theForm.phone.focus();
	  return false;
  }

  if (validateTextbox(theForm.email) && !isValidEmail(theForm.email.value)) {
      alert("Enter a valid email address");
      theForm.email.focus();
	  return false;
  }

  if (!validateTextbox(theForm.address1)) {
      alert("Enter your address");
	  theForm.address1.focus();
      return false;
  }

  if (!validateTextbox(theForm.address2)) {
      alert("Enter your address");
	  theForm.address2.focus();
      return false;
  }

  if (!validateTextbox(theForm.postcode)) {
      alert("Enter your postcode");
	  theForm.postcode.focus();
      return false;
  }
	
  if (theForm.digitalArtwork[0].checked && !validateTextbox(theForm.artworkFile1)) {
      alert("Enter the name and location of the artwork file");
	  theForm.artworkFile1.focus();
      return false;
  }
  
  if ((!theForm.bottom.checked) && (!theForm.top.checked) && (!theForm.sides.checked)) {
      alert("Select an engraving position");
	  theForm.bottom.focus();
      return false;
  }

  if (!validateTextbox(theForm.quantity)) {
      alert("Enter the required quantity");
	  theForm.quantity.focus();

      return false;
  }

  if (!validateTextbox(theForm.required)) {
      alert("When is the work required by?");
	  theForm.required.focus();
      return false;
  }
	 
  return true;
}

function setFiles(theForm, value) {
	theForm.artworkFile1.disabled = value;
	theForm.artworkFile2.disabled = value;
	theForm.artworkFile3.disabled = value;
	theForm.artworkFile4.disabled = value;
	theForm.artworkFile5.disabled = value;
	
	if (value == true) {
		theForm.artworkFile1.value = "";
		theForm.artworkFile2.value = "";
		theForm.artworkFile3.value = "";
		theForm.artworkFile4.value = "";
		theForm.artworkFile5.value = "";
	}
}

