<!--

function MailCheckAll() {
	for( i = 0; i < document.email.elements.length; i ++ ) {
		if( document.email.elements[i].type == "checkbox" ) {
			document.email.elements[i].checked = true;
		}
	}
}

function MailUncheckAll() {
	for( i = 0; i < document.email.elements.length; i ++ ) {
		if( document.email.elements[i].type == "checkbox" ) {
			document.email.elements[i].checked = false;
		}
	}
}

function warna1( obj ){
	/*obj.style.backgroundColor='#8B008B';*/
	obj.style.backgroundColor='#FFFFAA';
}

function warna2( obj ){
	obj.style.backgroundColor='#FFFFFF';
}

function warna3( obj ){
	obj.style.backgroundColor='#EDEDED';
}

function ChangePageSearch( value, comp, sort, order ) {
	obj = document.getElementsByName(comp);
	obj = obj[0];
	document.location="?content=result&page=" + obj.value + "&sort=" + sort + "&order=" + order;
}

function ChangePageSearch1( value, comp, sort, order ) {
	obj = document.getElementsByName(comp);
	obj = obj[0];
	document.location="?content=result&type=" + value + "&page=" + obj.value + "&sort=" + sort + "&order=" + order;
}

function ChangePageSearch2( value, comp, sort, order ) {
	obj = document.getElementsByName(comp);
	obj = obj[0];
	document.location="?content=result&menu=" + value + "&page=" + obj.value + "&sort=" + sort + "&order=" + order;
}

function ChangePageSearch3( value, comp, sort, order ) {
	obj = document.getElementsByName(comp);
	obj = obj[0];
	document.location="?content=result&rest=" + value + "&page=" + obj.value + "&sort=" + sort + "&order=" + order;
}

function ChangePageSearch4( value, comp, sort, order ) {
	obj = document.getElementsByName(comp);
	obj = obj[0];
	document.location="?content=result&area=" + value + "&page=" + obj.value + "&sort=" + sort + "&order=" + order;
}

function ChangePageSearch5( value, comp, sort, order ) {
	obj = document.getElementsByName(comp);
	obj = obj[0];
	document.location="?content=result&location=" + value + "&page=" + obj.value + "&sort=" + sort + "&order=" + order;
}

function EditNoAnchor( content, id ) {
	document.location="?content=" + content + "&action=edit&id=" + id + "";
}

function Edit( content, id ) {
	document.location="?content=" + content + "&action=edit&id=" + id + "#aedit";
}

function EditMeta( id ) {
	document.location="?action=edit&id=" + id + "#aedit";
}

function View( content, id ) {
	document.location="?content=" + content + "&action=view&id=" + id;
}

function ViewMeta( id ) {
	document.location="?content=" + id;
}

function previewCode() {
	var obj = document.getElementById("divpreview");
	var code = document.getElementsByName("Code");
	code = code[0];
	obj.innerHTML = code.value;
	
}

function ChangeGroup( content, id ) {
	document.location="?content=" + content + "&action=cgroup&id=" + id;
}

-->