function validateForms(){
	$(':input').each( function(){
		var type = this.type;
		if(type != 'submit'){
			obj = this.value;
			$(this).removeClass('error');
			if(obj.length == 0){
				$(this).addClass('error');
				haserror = 1;
			}


		}
	})
	if(haserror == 1){
		haserror = 0;
		return false;
		
	} else{
		return true;
	}
}