	function edit_object(id,path,section_id,sectionType) {
		window.open(path + "?id=" + id + "&section_id=" + section_id + "&sectionType=" + sectionType,'Edit','width=500,height=350,resizable=no');
	}

	function delete_object(id,question,submitPath,returnPath) {
		if (confirm(question)) {
			document.location.href=submitPath + "?id=" + id + "&returnPath=" + escape(returnPath);
		}
	}

	function admin_delete_object(idName,id,question,submitPath, search) {
		if (confirm(question)) {
			document.location.href=submitPath + "?action=delete&" + idName + "=" + id + "&search=" + search;
		}
	}

	function archive_object(id,question,submitPath,returnPath,online) {
		if (confirm(question)) {
			document.location.href=submitPath + "?id=" + id + "&online=" + online + "&returnPath=" + escape(returnPath);
		}
	}

	function openpage(location) {
		self.opener.document.location.href=location;
		self.close();
	}

	function close_refresh() {
		/*
		var text = self.opener.document.location.href;
		var theIndex = text.indexOf('?');

		if (theIndex > -1) {
			text = text.substring(0,theIndex);
		}

		theIndex = text.indexOf('#');

		if (theIndex > -1) {
			text = text.substring(0,theIndex);
		}

		//alert('refreshing ' + text);

		self.opener.document.location.href=text;
		*/
		self.opener.location.reload(true);
		self.close();
	}

	function manage_content(id,keywords) {
		window.open('http://edcllc.com/admin/edit_content.jsp?content_id=' + id + "&keywords=" + keywords, 'edit content', 'toolbar=no,status=no,menubar=no,location=no,directories=no,resizable=no,scrollbars=yes,width=800,height=750,top=0,left=0');
	}
	
	function manage_menu() {
		window.open('http://edcllc.com/admin/edit_menu.jsp', 'edit menu', 'toolbar=no,status=no,menubar=no,location=no,directories=no,resizable=no,scrollbars=yes,width=800,height=750,top=0,left=0');
	}
	
	function manage_submenu(id) {
		window.open('http://edcglobal.dev.arishi.com/admin/edit_submenu.jsp?parentCategory_id=' + id, 'edit submenu', 'toolbar=no,status=no,menubar=no,location=no,directories=no,resizable=no,scrollbars=yes,width=800,height=750,top=0,left=0');
	}

	function file_upload(fileItem_id) {
		window.open('http://edcllc.com/upload/index.jsp?fileItem_id=' + fileItem_id + "&parentCategory_id=" + parentCategory_id, 'file upload', 'toolbar=no,status=no,menubar=no,location=no,directories=no,resizable=no,scrollbars=yes,width=550,height=500,top=0,left=0');
	}
	
	function file_upload2(fileItem_id,parentCategory_id) {
		window.open('http://edcllc.com/upload/index2.jsp?fileItem_id=' + fileItem_id + "&parentCategory_id=" + parentCategory_id, 'file upload', 'toolbar=no,status=no,menubar=no,location=no,directories=no,resizable=no,scrollbars=yes,width=550,height=500,top=0,left=0');
	}
	
	function file_upload3(fileItem_id,parentCategory_id) {
		window.open('http://edcllc.com/upload/index3.jsp?fileItem_id=' + fileItem_id + "&parentCategory_id=" + parentCategory_id, 'file upload', 'toolbar=no,status=no,menubar=no,location=no,directories=no,resizable=no,scrollbars=yes,width=550,height=500,top=0,left=0');
	}
	
	function show_subscribed_email() {
		window.open('http://edcllc.com/admin/subscribed_email.jsp', 'show subscribed email', 'toolbar=no,status=no,menubar=no,location=no,directories=no,resizable=no,scrollbars=yes,width=550,height=500,top=0,left=0');
	}
	
	function show_subscribed_mail() {
		window.open('http://edcllc.com/admin/subscribed_mail.jsp', 'show subscribed mail', 'toolbar=no,status=no,menubar=no,location=no,directories=no,resizable=no,scrollbars=yes,width=550,height=500,top=0,left=0');
	}

	function uploadpic() {
		window.open('http://edcllc.com/members/uploadpic.jsp', 'upload_pic', 'toolbar=no,status=no,menubar=no,location=no,directories=no,resizable=no,scrollbars=yes,width=450,height=400,top=0,left=0');
	}

	function toggle(ele_id) {
		document.getElementById('red').style.display = 'none';
		document.getElementById('green').style.display = 'none';
		document.getElementById('blue').style.display = 'none';

		var element = document.getElementById(ele_id);

		if (element.style.display == 'none') {
			element.style.display = 'block';
		}
	}

