function clickArticles() {
	if(document.getElementById('myIMG').style.display=='none') {
		document.getElementById('myIMG').style.display='block';
		document.getElementById('form1').value='- Articles';
	} else {
		document.getElementById('myIMG').style.display='none';
		document.getElementById('form1').value='+ Articles';
	}
}

function navclick() {
	alert(document.getElementById('navform').action);
}

function initnav() {
	navs = document.getElementById('navform').navigation
	for ( i=0; i<navs.length; i++) {
	//	alert(navs[i].value);
		navs[i].onclick = function () { window.location.href = this.value }
	}
}

function CapImage(id,ck) {
	$("#"+id).load("/includes/cap.php", {'ck':ck} );
}

function aj_st_(fID) {
	forma = document.getElementById(fID); 
	forma_data = {};
	for ( i=0; i < forma.elements.length; i++ ) {
		if ( forma.elements[i].value && forma.elements[i].name ) {
			if ( forma.elements[i].type == 'radio' ) {
				if (forma.elements[i].checked) forma_data[forma.elements[i].name] = forma.elements[i].value;
			} else {
				forma_data[forma.elements[i].name] = forma.elements[i].value;
			}
		}
	}
	$('#'+fID+'-container').load("/includes/a.php",forma_data);
}

