<!--
function editCat(catId) { 
  newwindow = window.open('edit_cat.php?catId='+catId,'editCat','toolbar=no,location=no,status=no,menubar=no,scrollbars=no,resizable=yes,top=30,left=50,width=450,height=490');
}
function delCat(catId) { 
  newwindow = window.open('del_cat.php?catId='+catId,'delCat','toolbar=no,location=no,status=no,menubar=no,scrollbars=no,resizable=yes,top=30,left=50,width=450,height=380');
}
function delProd(itemId) { 
  newwindow = window.open('del_item.php?itemId='+itemId,'delProd','toolbar=no,location=no,status=no,menubar=no,scrollbars=no,resizable=yes,top=30,left=50,width=450,height=440');
}
function delUser(username) { 
  newwindow = window.open('del_user.php?username='+username,'delUser','toolbar=no,location=no,status=no,menubar=no,scrollbars=no,resizable=yes,top=30,left=50,width=450,height=380');
}
function finalise(username,finalise) { 
  newwindow = window.open('admin_finalise_list.php?username='+username+'&final='+finalise,'finalise','toolbar=no,location=no,status=no,menubar=no,scrollbars=no,resizable=yes,top=30,left=50,width=450,height=440');
}
function finaliseList() { 
  newwindow = window.open('bg_finalise_list.php','finaliseList','toolbar=no,location=no,status=no,menubar=no,scrollbars=no,resizable=yes,top=30,left=50,width=450,height=440');
}
function closeList(username,closeList) { 
  newwindow = window.open('admin_close_list.php?username='+username+'&closed='+closeList,'closeList','toolbar=no,location=no,status=no,menubar=no,scrollbars=no,resizable=yes,top=30,left=50,width=450,height=440');
}
function openAdminItem(itemId) { 
  newwindow = window.open('admin_view_item.php?itemId='+itemId,'adminItem','toolbar=no,location=no,status=no,menubar=no,scrollbars=yes,resizable=yes,top=30,left=30,width=480,height=500');
}
function openSignOut() { 
  newwindow = window.open('sign_out.php','signout','toolbar=no,location=no,status=no,menubar=no,scrollbars=yes,resizable=yes,top=30,left=30,width=480,height=400');
}
function forgot() { 
  newwindow = window.open('forgot.php','forgot','toolbar=no,location=no,status=no,menubar=no,scrollbars=yes,resizable=yes,top=30,left=30,width=480,height=400');
}

function taLimit() {
	var taObj=event.srcElement;
	if (taObj.value.length==taObj.maxLength*1) return false;
}

function taCount(visCnt) { 
	var taObj=event.srcElement;
	if (taObj.value.length>taObj.maxLength*1) taObj.value=taObj.value.substring(0,taObj.maxLength*1);
	if (visCnt) visCnt.innerText=taObj.maxLength-taObj.value.length;
}

function MM_swapImgRestore() { //v3.0
  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}

function MM_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}

function MM_findObj(n, d) { //v4.01
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
}

function MM_swapImage() { //v3.0
  var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
   if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}

function MM_jumpMenu(targ,selObj,restore){ 
  eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");
  if (restore) selObj.selectedIndex=0;
}

function openBrWindow(theURL,winName,features) { //v2.0
  newwindow = window.open(theURL,winName,features);
}

function UpdateQty(item)
			{
				itemId = item.name;
				newQty = item.options[item.selectedIndex].text;
				
				document.location.href = 'cart.php?action=update_item&id='+itemId+'&qty='+newQty;
			}
//-->