function Big(me)
{
me.width *= 2;
}
function Small(me)
{
me.width /= 2;
}
function ShowBigPic() 
{
window.document.getElementById("PRODPIC").style.visibility="visible";
}
function HideBigPic() 
{
window.document.getElementById("PRODPIC").style.visibility="hidden";
}
function ShowText1() 
{
window.document.getElementById("Icon1").style.visibility="hidden";
window.document.getElementById("Text1").style.visibility="visible";
}
function ShowIcon1() 
{
window.document.getElementById("Icon1").style.visibility="visible";
window.document.getElementById("Text1").style.visibility="hidden";
}
function imposeMaxLength(Object, MaxLen)
{
return (Object.value.length <= MaxLen);
}
function mm_addToFavorites()
{
  if (window.external)
  { 
    if (arguments.length < 1)
      window.external.AddFavorite(location.href, document.title);
    if (arguments.length == 1)
      window.external.AddFavorite(location.href, arguments[0]);
    if (arguments.length == 2)
      window.external.AddFavorite(arguments[0], arguments[1]);
  }
  else
    alert("Sorry, your browser doesn't support automated bookmarks.\nPlease add to favoutites manually.");
}
function startList(ListID) {
if (document.all&&document.getElementById) {
navRoot = document.getElementById(ListID);
for (i=0; i<navRoot.childNodes.length; i++) {
node = navRoot.childNodes[i];
if (node.nodeName=="LI") {
node.onmouseover=function() {
this.className+=" over";
  }
  node.onmouseout=function() {
  this.className=this.className.replace(" over", "");
   }
   }
  }
 }
}
function startList1() {
if (document.all&&document.getElementById) {
navRoot = document.getElementById("nav1");
for (i=0; i<navRoot.childNodes.length; i++) {
node = navRoot.childNodes[i];
if (node.nodeName=="LI") {
node.onmouseover=function() {
this.className+=" over";
  }
  node.onmouseout=function() {
  this.className=this.className.replace(" over", "");
   }
   }
  }
 }
}
function startList2() {
if (document.all&&document.getElementById) {
navRoot = document.getElementById("nav2");
for (i=0; i<navRoot.childNodes.length; i++) {
node = navRoot.childNodes[i];
if (node.nodeName=="LI") {
node.onmouseover=function() {
this.className+=" over";
  }
  node.onmouseout=function() {
  this.className=this.className.replace(" over", "");
   }
   }
  }
 }
}
function startList3() {
if (document.all&&document.getElementById) {
navRoot = document.getElementById("nav3");
for (i=0; i<navRoot.childNodes.length; i++) {
node = navRoot.childNodes[i];
if (node.nodeName=="LI") {
node.onmouseover=function() {
this.className+=" over";
  }
  node.onmouseout=function() {
  this.className=this.className.replace(" over", "");
   }
   }
  }
 }
}
function changeURLRecipient(value,LinkID,NbrLinks) {
var i=1;
for (i=1;i<=NbrLinks;i++)
	{
	URL = document.getElementById(LinkID+i).href;
	URL = URL.replace(/RcpntNbr=[0-9][0-9][0-9][0-9][0-9][0-9]/, "RcpntNbr="+value);
	document.getElementById(LinkID+i).href = URL;
	}
}
function changeURLQuantity(value,LinkID,LinkNbr) {
URL = document.getElementById(LinkID+LinkNbr).href;
URL = URL.replace(/Qty=[0-9][0-9][0-9]/, "Qty="+zeroPad(value,3));
document.getElementById(LinkID+LinkNbr).href = URL;
}
function zeroPad(num,count)
{ 
var numZeropad = num + '';
while(numZeropad.length < count) {

numZeropad = "0" + numZeropad; 
}
return numZeropad;
}
function openwindow(pagename,width,height) {
	window.open ("./"+pagename,"openwindowname","width="+width+",height="+height+",scrollbars=no,resizable=no,toolbar=no,location=no,directories=no,status=no,menu  bar=no,copyhistory=no,");
}
function parentReload(){  
window.opener.location.reload()
} 
function parentReloadCloseChild(){  
window.opener.location.reload()
window.close();
}