function setFont(value){
	$('body').setStyle('font-size',value+'px');
	$('body').setStyle('line-height',(value+6)+'px');
}

function easyAjax(url,notify){
	var html = "Harap menunggu .... ";
	$(notify).innerHTML=html;
	_show(notify);
	new Ajax(url,{
		method : 'get',
		update : notify
	}).request();
}

function _hide(id){
	$(id).setStyle('display','none');
}

function _show(id){
	$(id).setStyle('display','block');
}

function _toggle(id){
	if($(id).style.display=='block')
		_hide(id);
	else
		_show(id);
}

function loadAjax(url,notify){
	if($(notify).style.display=='block'){
		_hide(notify);
	} else {
		_hide('selector_city');
		_hide('selector_edu');
		_hide('selector_exp');
		_hide('selector_major');
		
		html = $(notify).innerHTML;
		if(html==""){
			easyAjax(url,notify);
		} else {
			_show(notify);
		}
	}
}

function selectValue(fmobj,field,update){
	a = "";
	for (var i=0;i<fmobj.elements.length;i++){
		e = fmobj.elements[i];
		if (e.type=='checkbox'&&e.name==field&&e.checked==true){
			lid = e.id+"_label";
			lhtml = $(lid).innerHTML;
			a = a + lhtml + ", ";
		}
	}
	
	if(a=="") 
		a = "Pilih Semua";
	
	$(update).innerHTML = a;
}

function sumbitWithAjaxNotify(formID,update){
	var options = {};
	$(update).setStyle('display','block');
	$(update).setHTML('<div class="loading">Harap menunggu ...</div>');
	options['evalScripts'] 	= true;
	options['update'] 		= update;
	$(formID).send(options);
}
