// JavaScript Document
function MM_jumpMenu(targ,selObj,restore){ //v3.0
  eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");
  if (restore) selObj.selectedIndex=0;
}
function confirmform(txtmsg,weburl){
	if (confirm(txtmsg)){		location.href=weburl;	}
}
function renamenow(renid,oldname,catid,web_url){
	var newname = prompt ("Please type in New Category Name",oldname);
	if (newname != null){		location.href=web_url+newname+"&renid="+renid+"&cat="+catid;	}		
}
function editproduct(id,catid){location.href="admin_updateprod.php?act=update&id="+id+"&cat="+catid;}
function popUp(URL) {
day = new Date();id = day.getTime();
eval("page" + id + " = window.open(URL, '" + id + "', 'toolbar=1,scrollbars=1,location=0,statusbar=0,menubar=1,resizable=1,width=1024,height=768,left = 0,top = 0');");
}
function popUpBackOrder(URL) {
day = new Date();id = day.getTime();
eval("page" + id + " = window.open(URL, '" + id + "', 'toolbar=0,scrollbars=0,location=0,statusbar=0,menubar=0,resizable=0,width=300,height=200,left = 200,top = 200');");
}
function popupWindow(url) {
  window.open(url,'popupWindow','toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=yes,copyhistory=no,width=550,height=400,screenX=150,screenY=150,top=150,left=150')
}
function textBoxLimitLength(_object,textlength){
if(_object.value.length>textlength){
	alert('You have exceeded the '+textlength+' character limit for a given	text field. Please delete some of the text.');
	_object.focus();
	return false;
}
return true;
}
