function checkall(targetForm) {
  frm = document.forms[targetForm];
  for(n=0 ;n<frm.length;n++)
  { frm[n].checked = true; }
}
 
function notcheckall() {
  for(n=0 ;n<document.form.length;n++)
  { document.form[n].checked = false; }
}

function gotourl(path,targetForm) {
  frm = document.forms[targetForm];
  frm.action = path;
  frm.submit();
}

function popup(path,wTop,wLeft,wWidth,wHeight) {
  win = window.open(path,"","width="+wWidth+",height="+wHeight+",top="+wTop+",left="+wLeft);
  win.focus();
}

function popupwithstyle(path,wstyle) {
  win = window.open(path,"",wstyle);
  win.focus();
}

 function init_sliding_bar( slider_id, btnNext_id, btnPrev_id, visible_item, item_spacing ){
		$( slider_id ).jCarouselLite({
				btnNext: btnNext_id,
				btnPrev: btnPrev_id,
				visible: visible_item,
				circular: true,
				auto: null, // 2800
				spacing: item_spacing	
				/*This new attribute must set as same as the margin-left of the li tag in CSS
				Otherwise the item will not display corrrectly.*/
			});
	}//By Saxon 09 Feb, 09