function validation(){
var status=true;
//nge-validate title
/*bgFxName = new Fx.Color($("titleme"), 'background-color', {wait: false});
if($("titleme").value.length<3){
	bgFxName.toColor('#BBE6FF');
	$("titleme").setStyle('color', '#000000');
	$("titleme_salah").setHTML('* title field is mandatory, you must select').setStyle('color', '#FF0000');
	status=false;
}else{
	$("titleme").setStyle('color', '#000000');
	bgFxName.toColor('#EEEEEE');
	$("titleme_salah").setHTML('')
}*/

//nge-validate name
bgFxName = new Fx.Color($("nameme"), 'background-color', {wait: false});
if($("nameme").value.length<3){
	bgFxName.toColor('#BBE6FF');
	$("nameme").setStyle('color', '#000000');
	$("nameme_salah").setHTML('* name field is mandatory (at least 3 chars)').setStyle('color', '#FF0000');
	status=false;
}else{
	$("nameme").setStyle('color', '#000000');
	bgFxName.toColor('#EEEEEE');
	$("nameme_salah").setHTML('')
}

//nge-validate email
bgFxEmail = new Fx.Color($("emailme"), 'background-color', {wait: false});
if( ($("emailme").value.length<5) || ($("emailme").value.search(/^\w+((-\w+)|(\.\w+))*\@\w+((\.|-)\w+)*\.\w+$/) == -1) ){
	bgFxEmail.toColor('#BBE6FF');
	$("emailme").setStyle('color', '#000000');
	$("emailme_salah").setHTML('* email field is mandatory, will not be published').setStyle('color', '#FF0000');
	status=false;
}else{
	$("emailme").setStyle('color', '#000000');
	bgFxEmail.toColor('#EEEEEE');
	$("emailme_salah").setHTML('')
}


//nge-validate company
bgFxCompany = new Fx.Color($("companyme"), 'background-color', {wait: false});
if($("companyme").value.length<6){
	bgFxCompany.toColor('#BBE6FF');
	$("companyme").setStyle('color', '#000000');
	$("companyme_salah").setHTML('* company field is mandatory (at least 6 chars)').setStyle('color', '#FF0000');
	status=false;
}else{
	$("companyme").setStyle('color', '#000000');
	bgFxCompany.toColor('#EEEEEE');
	$("companyme_salah").setHTML('')
}

//nge-validate company address
bgFxAddress = new Fx.Color($("addressme"), 'background-color', {wait: false});
if($("addressme").value.length<10){
	bgFxAddress.toColor('#BBE6FF');
	$("addressme").setStyle('color', '#000000');
	$("addressme_salah").setHTML('* address field is mandatory (at least 10 chars)').setStyle('color', '#FF0000');
	status=false;
}else{
	$("addressme").setStyle('color', '#000000');
	bgFxAddress.toColor('#EEEEEE');
	$("addressme_salah").setHTML('')
}

//nge-validate phone
bgFxPhone = new Fx.Color($("phoneme"), 'background-color', {wait: false});
if($("phoneme").value.length<7){
	bgFxPhone.toColor('#BBE6FF');
	$("phoneme").setStyle('color', '#000000');
	$("phoneme_salah").setHTML('* phone field is mandatory (at least 7 chars)').setStyle('color', '#FF0000');
	status=false;
}else{
	$("phoneme").setStyle('color', '#000000');
	bgFxPhone.toColor('#EEEEEE');
	$("phoneme_salah").setHTML('')
}


//nge-validate komen
bgFxComm= new Fx.Color($("commentme"), 'background-color', {wait: false});
if(($("commentme").value.length<20)){
	bgFxComm.toColor('#BBE6FF');
	$("commentme").setStyle('color', '#000000');
	$("commentme_salah").setHTML('* you have no comment? (at least 20 chars)').setStyle('color', '#FF0000');
	status=false;
}else{
	$("commentme").setStyle('color', '#000000');
	bgFxComm.toColor('#EEEEEE');
	$("commentme_salah").setHTML('')
}

if(status==false){return false;}
}