function Collection1Total() {
   return 16;
}

function MalayTotal() {
   return 24;
}

function EnglishTotal() {
   return 10;
}

function ChineseTotal() {
   return 12;
}

function FancyTotal() {
   return 7;
}

function OthersTotal() {
   return 8;
}

function AllTotal() {
   return Collection1Total() + MalayTotal() + EnglishTotal() + ChineseTotal() + FancyTotal() + OthersTotal();
}

function GoLink(GoURL){
   if (GoURL != "none") {
      window.location = GoURL;
   }
}

function DisplayLinks() {
   document.write('<form name="selecter1">Visit Card2U Gallery: <select name="select1" size=1 onchange="GoLink(document.selecter1.select1.options[document.selecter1.select1.selectedIndex].value)">');
   document.write('<option value=none>Select a section');
   document.write('<option value=none>- - - - - - - - -');
   document.write('<option value="sample.htm">Main Gallery');
   document.write('<option value="coll1.htm">Latest Collection 1 (' + Collection1Total() + ' items)');
   document.write('<option value="malay.htm">Wedding Card - Malay (' + MalayTotal() + ' items)');
   document.write('<option value="english.htm">Wedding Card - English (' + EnglishTotal() + ' items)');
   document.write('<option value="chinese.htm">Wedding Card - Chinese (' + ChineseTotal() + ' items)');
   document.write('<option value="fancy.htm">Fancy Cards (' + FancyTotal() + ' items)');
   document.write('<option value="oproducts.htm">Gifts & Products (' + OthersTotal() + ' items)');
   document.write('<option value="contact.htm">Contact us for more');
   document.write('</select>');
   document.write('</form>');
}

/*
function Borderize(Img) {
   Img.border = 5;
}

function DeBorderize(Img) {
   Img.border = 0;
}
*/
