	/****************************************************************************
	* Creation date :-> 27-02-2009 [dd-mm-yyyy]
	* Last update   :-> 27-02-2009 [dd-mm-yyyy]
	* Author        :-> Antonio Magdic  <antonio@eburza.hr>
	***/

	/***************************************************************************
	* Members Administration
	***/

	function UserEdit(uid) {
		document.myForm.action = "index.php?menu=100&action=12";
		document.myForm._action_.value = "user_edit";
		document.myForm.user_id.value = uid;
		document.myForm.submit();
	} // end of the 'UserEdit()' function
	
	function UserDelete(uid) {
		var is_confirmed = confirm(textDeleteMember);
		if(is_confirmed) {
			document.myForm.action = "include/trigger.php";
			document.myForm._action_.value = "user_delete";
			document.myForm.user_id.value = uid;
			document.myForm.submit();
		}
	} // end of the 'UserDelete()' function
	
	function UserPrivileges(uid) {
		document.myForm.action = "index.php?menu=100&action=13";
		document.myForm._action_.value = "user_privileges";
		document.myForm.user_id.value = uid;
		document.myForm.submit();
	} // end of the 'UserPrivileges()' function
	
	function UserActivate(uid) {
		document.myForm.action = "index.php?menu=100&action=15";
		document.myForm._action_.value = "user_activate";
		document.myForm.activate_user_id.value = uid;
		document.myForm.submit();
	} // end of the 'UserActivate()' function
	
	function NewsEdit(nid) {
		document.myForm.action = "index.php?menu=100&action=30";
		document.myForm._action_.value = "news_edit";
		document.myForm.news_id.value = nid;
		document.myForm.submit();
	} // end of the 'NewsEdit()' function
	
	function NewsDelete(nid) {
		var is_confirmed = confirm(textDeleteNews);
		if(is_confirmed) {
			document.myForm.action = "include/trigger.php";
			document.myForm._action_.value = "news_delete";
			document.myForm.news_id.value = nid;
			document.myForm.submit();
		}
	} // end of the 'NewsDelete()' function
	
	function PictureDelete(pid) {
		var is_confirmed = confirm(textDeletePicture);
		if(is_confirmed) {
			document.myForm.action = "include/trigger.php";
			document.myForm._action_.value = "picture_delete";
			document.myForm.picture_id.value = pid;
			document.myForm.submit();
		}
	} // end of the 'PictureDelete()' function
	
	function LinkEdit(lid) {
		document.myForm.action = "index.php?menu=100&action=40";
		document.myForm._action_.value = "link_edit";
		document.myForm.link_id.value = lid;
		document.myForm.submit();
	} // end of the 'LinkEdit()' function
	
	function LinkDelete(lid) {
		var is_confirmed = confirm(textDeleteLink);
		if(is_confirmed) {
			document.myForm.action = "include/trigger.php";
			document.myForm._action_.value = "link_delete";
			document.myForm.link_id.value = lid;
			document.myForm.submit();
		}
	} // end of the 'LinkDelete()' function
	
	function TextbookEdit(tid) {
		document.myForm.action = "index.php?menu=100&action=50";
		document.myForm._action_.value = "textbook_edit";
		document.myForm.textbook_id.value = tid;
		document.myForm.submit();
	} // end of the 'TextbookEdit()' function
	
	function TextbookDelete(tid) {
		var is_confirmed = confirm(textDeleteTextbooks);
		if(is_confirmed) {
			document.myForm.action = "include/trigger.php";
			document.myForm._action_.value = "textbook_delete";
			document.myForm.textbook_id.value = tid;
			document.myForm.submit();
		}
	} // end of the 'TextbookDelete()' function
	
	function ContentEdit(cid) {
		document.myForm.action = "index.php?menu=100&action=60";
		document.myForm._action_.value = "content_edit";
		document.myForm.content_id.value = cid;
		document.myForm.submit();
	} // end of the 'ContentEdit()' function
	
	function ContentDelete(cid) {
		var is_confirmed = confirm(textDeleteContent);
		if(is_confirmed) {
			document.myForm.action = "include/trigger.php";
			document.myForm._action_.value = "content_delete";
			document.myForm.content_id.value = cid;
			document.myForm.submit();
		}
	} // end of the 'ContentDelete()' function
	
	function BannerEdit(bid) {
		document.myForm.action = "index.php?menu=100&action=70";
		document.myForm._action_.value = "banner_edit";
		document.myForm.banner_id.value = bid;
		document.myForm.submit();
	} // end of the 'BannerEdit()' function
	
	function BannerDelete(bid) {
		var is_confirmed = confirm(textDeleteBanner);
		if(is_confirmed) {
			document.myForm.action = "include/trigger.php";
			document.myForm._action_.value = "banner_delete";
			document.myForm.banner_id.value = bid;
			document.myForm.submit();
		}
	} // end of the 'BannerDelete()' function
	
	function ShowHideBox(objID) {
		if($(objID).style.display == "none") { // show
			$(objID).style.display = "block";
		} else { // hide
			$(objID).style.display = "none";
		}
	} // end of the 'ShowHideBox()' function

	
