////////////////////////////////////////////
function frmChng(menuId,val)
{
	//var drpElmt=document.getElementById(menuId); 
	if( $("#"+menuId).containsOption(val) ) { 
		$("#"+menuId).selectOptions(val, true);
	}
}

/////////////////////////////////////
function formSubmit(formName)
{
document.getElementById(formName).submit();
initVals();
}   
function reloadImage(arg)
{
   img = document.getElementById('itemImage');
   img.src = '../imgItem300.php?item='+arg+"&j=" + Math.random();
   
}

function initSelMul(arrList,selId)
{
  selDom = document.getElementById(selId);
  for (i=0;i<arrList.length;i++)
    {
		for (j=0;j<selDom.length;j++)
		{
			if(selDom.options[j].value==arrList[i])selDom.options[j].selected=true;
		}
    }
}




function initCalendar()
{
$($.date_input.initialize);
 $("#tbDateDlvry").date_input();;
}
